From: Philippe Proulx Date: Tue, 1 Jun 2021 13:49:13 +0000 (-0400) Subject: argpar.c: add error enumerators to `enum parse_orig_arg_opt_ret` X-Git-Url: http://git.efficios.com/?p=argpar.git;a=commitdiff_plain;h=871eba329ad77b01051cd29ec372f8ae5a401882;hp=871eba329ad77b01051cd29ec372f8ae5a401882 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 Change-Id: I2e68bea8b14ea1c0b16433df0cb8c01c1252283d ---