farbfeld

suckless image format with conversion tools
git clone git://git.suckless.org/farbfeld
Log | Files | Refs | README | LICENSE

commit 315e95cfadbb68028e20eebd7627e912fff4a1c2
parent 8a993db22b18c8fab9d326fe730d96c9d86fb340
Author: Laslo Hunhold <dev@frign.de>
Date:   Fri,  4 Aug 2017 15:42:01 +0200

arg.h: Rename argparsed to argused

We do not really parse anything, we just use/devour something.

Diffstat:
Marg.h | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/arg.h b/arg.h @@ -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 { \ @@ -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)) \ ) \