commit 7add068ade75040aee0512a7c8452832a4dbbbd0
parent 3f9e501f6b8bd747ac8127ca56e34db0409e03d1
Author: sin <sin@2f30.org>
Date: Mon, 11 Nov 2013 20:25:30 +0000
Rename `brk' to `_brk' to avoid polluting the namespace
Diffstat:
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/arg.h b/arg.h
@@ -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])))