This series of patches addresses the "problems" with the parse_number
helpers in command.c, eliminating redundant code, adding signed variants,
and otherwise proactively pacifying the pedants.

For review only: I will commit these myself (unless they are rejected).

1/6	Improve definitions of parse_ulong and parse_ullong:
2/6	Update parse_type macro definitions to allow re-use with signed types.
3/6	Add improved support for parsing signed integers.
4/6	Convert core parse_type implementations to check for underflow errors.
5/6	Move definition of parse_type helpers to command.c:
6/6	Add argument parsing errors in command.h, use in parse_type routines.
---
Summary of Patches 1-6:
 command.c |   62 ++++++++++++++++++++++++++++++++++++++++++++++++--------------
 command.h |   30 ++++++++++++++++++------------
 2 files changed, 66 insertions(+), 26 deletions(-)
_______________________________________________
Openocd-development mailing list
Openocd-development@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to