aboutsummaryrefslogtreecommitdiffstats
path: root/arg.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--arg.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/arg.h b/arg.h
index 971fc79..4f35620 100644
--- a/arg.h
+++ b/arg.h
@@ -9,7 +9,7 @@
extern char *argv0;
/* use main(int argc, char *argv[]) */
-#define ARGBEGIN for (argv0 = *argv, argv++, argc--;\
+#define ARGBEGIN do { for (argv0 = *argv, argv++, argc--;\
argv[0] && argv[0][0] && argv[0][1];\
argc--, argv++) {\
char argc_;\
@@ -55,7 +55,7 @@ extern char *argv0;
} else {\
break;\
}\
- }
+ } } while (0)
#define ARGC() argc_