Browse Source

arg.h: remove unused ARGNUM* macros

master
Hiltjo Posthuma 9 years ago
parent
commit
32f2564dbb
1 changed files with 0 additions and 14 deletions
  1. +0
    -14
      arg.h

+ 0
- 14
arg.h View File

@ -29,25 +29,11 @@ extern char *argv0;
argc_ = argv[0][0];\ argc_ = argv[0][0];\
switch (argc_) switch (argc_)
/* Handles obsolete -NUM syntax */
#define ARGNUM case '0':\
case '1':\
case '2':\
case '3':\
case '4':\
case '5':\
case '6':\
case '7':\
case '8':\
case '9'
#define ARGEND }\ #define ARGEND }\
} }
#define ARGC() argc_ #define ARGC() argc_
#define ARGNUMF(base) (brk_ = 1, estrtol(argv[0], (base)))
#define EARGF(x) ((argv[0][1] == '\0' && argv[1] == NULL)?\ #define EARGF(x) ((argv[0][1] == '\0' && argv[1] == NULL)?\
((x), abort(), (char *)0) :\ ((x), abort(), (char *)0) :\
(brk_ = 1, (argv[0][1] != '\0')?\ (brk_ = 1, (argv[0][1] != '\0')?\


Loading…
Cancel
Save