mirror of git://git.suckless.org/sbase
No need to use USED() in arg.h for sbase
Tested on Linux and OpenBSD (with gcc and pcc).
This commit is contained in:
parent
41769b976a
commit
a4b84fbe83
7
arg.h
7
arg.h
|
@ -8,8 +8,6 @@
|
||||||
|
|
||||||
extern char *argv0;
|
extern char *argv0;
|
||||||
|
|
||||||
#define USED(x) ((void)(x))
|
|
||||||
|
|
||||||
/* use main(int argc, char *argv[]) */
|
/* use main(int argc, char *argv[]) */
|
||||||
#define ARGBEGIN for (argv0 = *argv, argv++, argc--;\
|
#define ARGBEGIN for (argv0 = *argv, argv++, argc--;\
|
||||||
argv[0] && argv[0][1]\
|
argv[0] && argv[0][1]\
|
||||||
|
@ -32,10 +30,7 @@ extern char *argv0;
|
||||||
switch (_argc)
|
switch (_argc)
|
||||||
|
|
||||||
#define ARGEND }\
|
#define ARGEND }\
|
||||||
USED(_argc);\
|
}
|
||||||
}\
|
|
||||||
USED(argv);\
|
|
||||||
USED(argc);
|
|
||||||
|
|
||||||
#define ARGC() _argc
|
#define ARGC() _argc
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue