Add macro for parsing numeric command arguments.
authorZachary T Welch <zw@superlucidity.net>
Thu, 22 Oct 2009 14:44:54 +0000 (07:44 -0700)
committerZachary T Welch <zw@superlucidity.net>
Fri, 6 Nov 2009 01:27:25 +0000 (17:27 -0800)
commit36a3646c2205474345482188c8c05e50d1f67e44
tree28e687c4ef383f98be76467ed6e5a86dbaa00e74
parent68785af4da7727238c86dcf8858e0b5975bc988e
Add macro for parsing numeric command arguments.

This helper eliminates significant amount of redundant code in command
handler functions throughout the system.  It wraps the lower-level
parse_* macros to implement a policy for reporting parse errors to the
active command context (cmd_ctx).  If errors do occur, this macro causes
the calling function to abort with the proper return code.
src/helper/command.h