argpar.c: add error enumerators to `enum parse_orig_arg_opt_ret`
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Tue, 1 Jun 2021 13:49:13 +0000 (09:49 -0400)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Thu, 3 Jun 2021 17:41:01 +0000 (13:41 -0400)
commit871eba329ad77b01051cd29ec372f8ae5a401882
treed5a950414d1393089e7b7258e06f0617f54ec931
parent37bb2b1fe8e07b4c2cb9c31d4f2c4ffdb56e3e10
argpar.c: add error enumerators to `enum parse_orig_arg_opt_ret`

This patch changes `enum parse_orig_arg_opt_ret` to add

* `PARSE_ORIG_ARG_OPT_RET_ERROR_MISSING_OPT_ARG`
* `PARSE_ORIG_ARG_OPT_RET_ERROR_INVALID_OPT`
* `PARSE_ORIG_ARG_OPT_RET_ERROR_UNEXPECTED_OPT_ARG`
* `PARSE_ORIG_ARG_OPT_RET_ERROR_MEMORY`

and remove the general `PARSE_ORIG_ARG_OPT_RET_ERROR`.

No functional changes intended.

This will make it easier to switch to rich error reporting instead of
a formatted error string.

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Change-Id: I2e68bea8b14ea1c0b16433df0cb8c01c1252283d
argpar/argpar.c
This page took 0.022187 seconds and 4 git commands to generate.