1
0
mirror of git://git.suckless.org/sbase synced 2024-12-24 16:02:54 +00:00

Rename brk' to _brk' to avoid polluting the namespace

This commit is contained in:
sin 2013-11-11 20:25:30 +00:00
parent 3f9e501f6b
commit 7add068ade

12
arg.h
View File

@ -15,14 +15,14 @@ extern char *argv0;
argc--, argv++) {\
char _argc;\
char **_argv;\
int brk;\
int _brk;\
if (argv[0][1] == '-' && argv[0][2] == '\0') {\
argv++;\
argc--;\
break;\
}\
for (brk = 0, argv[0]++, _argv = argv;\
argv[0][0] && !brk;\
for (_brk = 0, argv[0]++, _argv = argv;\
argv[0][0] && !_brk;\
argv[0]++) {\
if (_argv != argv)\
break;\
@ -46,17 +46,17 @@ extern char *argv0;
#define ARGC() _argc
#define ARGNUMF(base) (brk = 1, estrtol(argv[0], (base)))
#define ARGNUMF(base) (_brk = 1, estrtol(argv[0], (base)))
#define EARGF(x) ((argv[0][1] == '\0' && argv[1] == NULL)?\
((x), abort(), (char *)0) :\
(brk = 1, (argv[0][1] != '\0')?\
(_brk = 1, (argv[0][1] != '\0')?\
(&argv[0][1]) :\
(argc--, argv++, argv[0])))
#define ARGF() ((argv[0][1] == '\0' && argv[1] == NULL)?\
(char *)0 :\
(brk = 1, (argv[0][1] != '\0')?\
(_brk = 1, (argv[0][1] != '\0')?\
(&argv[0][1]) :\
(argc--, argv++, argv[0])))