[hackers] [farbfeld] arg.h: Rename argparsed to argused || Laslo Hunhold

From: <git_AT_suckless.org>
Date: Fri, 4 Aug 2017 15:42:36 +0200 (CEST)

commit 315e95cfadbb68028e20eebd7627e912fff4a1c2
Author: Laslo Hunhold <dev_AT_frign.de>
AuthorDate: Fri Aug 4 15:42:01 2017 +0200
Commit: Laslo Hunhold <dev_AT_frign.de>
CommitDate: Fri Aug 4 15:42:01 2017 +0200

    arg.h: Rename argparsed to argused
    
    We do not really parse anything, we just use/devour something.

diff --git a/arg.h b/arg.h
index cf30d65..2ac48ea 100644
--- a/arg.h
+++ b/arg.h
_AT_@ -24,14 +24,14 @@ extern char *argv0;
 /* int main(int argc, char *argv[]) */
 #define ARGBEGIN for (argv0 = *argv, *argv ? (argc--, argv++) : ((void *)0); \
                       *argv && (*argv)[0] == '-' && (*argv)[1]; argc--, argv++) { \
- int argparsed; \
+ int argused; \
                          if ((*argv)[1] == '-' && (*argv)[2] == '\0') { \
                                  argc--, argv++; \
                                  break; \
                          } \
- for (argparsed = 0, (*argv)++; (*argv)[0]; (*argv)++) { \
+ for (argused = 0, (*argv)++; (*argv)[0]; (*argv)++) { \
                                  switch((*argv)[0])
-#define ARGEND if (argparsed) { \
+#define ARGEND if (argused) { \
                                          if ((*argv)[1] != '\0') { \
                                                  break; \
                                          } else { \
_AT_@ -44,7 +44,7 @@ extern char *argv0;
 #define ARGC() *argv[0]
 #define ARGF_(x) (((*argv)[1] == '\0' && !*(argv + 1)) ? \
                          (x) : \
- (argparsed = 1, ((*argv)[1] != '\0') ? \
+ (argused = 1, ((*argv)[1] != '\0') ? \
                                  (&(*argv)[1]) : \
                                  (*(argv + 1)) \
                          ) \
Received on Fri Aug 04 2017 - 15:42:36 CEST

This archive was generated by hypermail 2.3.0 : Fri Aug 04 2017 - 15:49:07 CEST