cli: Refactor handling of negative numbers
This patch breaks out the code that reads a number just after having
read the minus sign introducing a negative number.
Instead of keeping a state in the parser, and going through a new
iteration, we call the new function which returns a bt_value directly.
This enables the following patch to do a similar change, but for the
parsing of all values (which includes the parsing of negative numbers).
In turn, this will allow parsing values recursively, which is needed to
support array values. Orthogonally, I think the code is easier to
follow this way.
No functional changes intended.
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
This page took 0.024604 seconds and 4 git commands to generate.