--- arg.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arg.h b/arg.h index 35cc7cc..5444aad 100644 --- a/arg.h +++ b/arg.h _AT_@ -23,7 +23,8 @@ extern char *argv0; /* int main(int argc, char *argv[]) */ #define ARGBEGIN for (argv0 = *argv, *argv ? (argc--, argv++) : ((void *)0); \ - *argv && (*argv)[0] == '-' && (*argv)[1]; argc--, argv++) { \ + *argv && (*argv)[0] == '-' && (*argv)[1]; argc--, argv++) \ + { \ int i_, argused_; \ if ((*argv)[1] == '-' && !(*argv)[2]) { \ argc--, argv++; \ _AT_@ -31,6 +32,7 @@ extern char *argv0; } \ for (i_ = 1, argused_ = 0; (*argv)[i_]; i_++) { \ switch((*argv)[i_]) + #define ARGEND if (argused_) { \ if ((*argv)[i_ + 1]) { \ break; \ -- 2.31.1Received on Sun Jul 04 2021 - 17:54:53 CEST
This archive was generated by hypermail 2.3.0 : Sun Jul 04 2021 - 18:12:30 CEST