[hackers] [st] arg.h: remove unused macros

From: Quentin Rameau <quinq+hackers_AT_fifth.space>
Date: Sun, 8 Nov 2015 17:14:58 +0100

ARGUM isn't used and ARGNUMF uses estrtol() that isn't defined anywhere.
Those were probably copied from sbase arg.h.
---
 arg.h | 15 ---------------
 1 file changed, 15 deletions(-)
diff --git a/arg.h b/arg.h
index 4df77a7..a94e6b5 100644
--- a/arg.h
+++ b/arg.h
_AT_@ -28,26 +28,11 @@ extern char *argv0;
 						break;\
 					argc_ = argv[0][0];\
 					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 ARGC()		argc_
 
-#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')?\
-- 
2.6.2
Received on Sun Nov 08 2015 - 17:14:58 CET

This archive was generated by hypermail 2.3.0 : Sun Nov 08 2015 - 17:24:11 CET