--- arg.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arg.h b/arg.h index 5444aad..d983ebf 100644 --- a/arg.h +++ b/arg.h _AT_@ -22,7 +22,7 @@ extern char *argv0; /* int main(int argc, char *argv[]) */ -#define ARGBEGIN for (argv0 = *argv, *argv ? (argc--, argv++) : ((void *)0); \ +#define ARGBEGIN for (argv0 = *argv, *argv ? (argc--, argv++) : (NULL); \ *argv && (*argv)[0] == '-' && (*argv)[1]; argc--, argv++) \ { \ int i_, argused_; \ _AT_@ -46,7 +46,7 @@ extern char *argv0; #define ARGC() ((*argv)[i_]) #define ARGF_(x) (((*argv)[i_ + 1]) ? (argused_ = 1, &((*argv)[i_ + 1])) : \ (*(argv + 1)) ? (argused_ = 1, *(argv + 1)) : (x)) -#define EARGF(x) ARGF_(((x), exit(1), (char *)0)) -#define ARGF() ARGF_((char *)0) +#define EARGF(x) ARGF_(((x), exit(1), NULL)) +#define ARGF() ARGF_(NULL) #endif -- 2.31.1Received on Sun Jul 04 2021 - 17:54:54 CEST
This archive was generated by hypermail 2.3.0 : Sun Jul 04 2021 - 23:48:32 CEST