aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiltjo Posthuma <hiltjo@codemadness.org>2015-11-08 23:37:47 +0100
committerHiltjo Posthuma <hiltjo@codemadness.org>2015-11-08 23:37:47 +0100
commit32f2564dbbbf5aeafb7190a3d35066142f34448f (patch)
tree534758ed1ec49de1488f4e96943a343540258e7e
parentcc596365ac9c522beb8978cfca741d23d3bf83ae (diff)
arg.h: remove unused ARGNUM* macros
-rw-r--r--arg.h14
1 files changed, 0 insertions, 14 deletions
diff --git a/arg.h b/arg.h
index 4df77a7..ff1fd13 100644
--- a/arg.h
+++ b/arg.h
@@ -29,25 +29,11 @@ extern char *argv0;
29 argc_ = argv[0][0];\ 29 argc_ = argv[0][0];\
30 switch (argc_) 30 switch (argc_)
31 31
32/* Handles obsolete -NUM syntax */
33#define ARGNUM case '0':\
34 case '1':\
35 case '2':\
36 case '3':\
37 case '4':\
38 case '5':\
39 case '6':\
40 case '7':\
41 case '8':\
42 case '9'
43
44#define ARGEND }\ 32#define ARGEND }\
45 } 33 }
46 34
47#define ARGC() argc_ 35#define ARGC() argc_
48 36
49#define ARGNUMF(base) (brk_ = 1, estrtol(argv[0], (base)))
50
51#define EARGF(x) ((argv[0][1] == '\0' && argv[1] == NULL)?\ 37#define EARGF(x) ((argv[0][1] == '\0' && argv[1] == NULL)?\
52 ((x), abort(), (char *)0) :\ 38 ((x), abort(), (char *)0) :\
53 (brk_ = 1, (argv[0][1] != '\0')?\ 39 (brk_ = 1, (argv[0][1] != '\0')?\