[hackers] [quark][PATCH 5/7] arg.h: uncluttering

From: Nikita Zlobin <nick87720z_AT_gmail.com>
Date: Sun, 4 Jul 2021 20:54:57 +0500

---
 arg.h | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/arg.h b/arg.h
index 1c2757f..47d4afb 100644
--- a/arg.h
+++ b/arg.h
_AT_@ -45,9 +45,9 @@ extern char *argv0;
                  	}                                                         \
                  }
 #define ARGC()   ((*argv)[i_])
-#define ARGF_(x) (((*argv)[i_ + 1]) ? (argused_ = 1, &((*argv)[i_ + 1])) :        \
-                  (argv[1])     ? (argused_ = 1, argv[1])        : (x))
-#define EARGF(x) ARGF_(((x), exit(1), NULL))
+#define ARGF_(x) ((*argv)[i_ + 1] ? (argused_ = 1, *argv + i_ + 1) :              \
+                  argv[1]         ? (argused_ = 1, argv[1]       ) : (x))
+#define EARGF(x) ARGF_(( (x), exit(1), NULL))
 #define ARGF()   ARGF_(NULL)
 
 #endif
-- 
2.31.1
Received on Sun Jul 04 2021 - 17:54:57 CEST

This archive was generated by hypermail 2.3.0 : Sun Jul 04 2021 - 20:36:35 CEST