diff options
author | Biswakalyan Bhuyan <biswa@surgot.in> | 2022-04-24 22:27:42 +0530 |
---|---|---|
committer | Biswakalyan Bhuyan <biswa@surgot.in> | 2022-04-24 22:27:42 +0530 |
commit | 5d0383d0f874348cc3e0f363bd5d42aa273a4551 (patch) | |
tree | fa660649b1fd1b48320e0fe5b969e508929ce2bc /bkp/arg.h | |
parent | 23f008aa94cadca3b2db7ce963a1d1b23f0733e5 (diff) | |
download | dmenu-5d0383d0f874348cc3e0f363bd5d42aa273a4551.tar.gz dmenu-5d0383d0f874348cc3e0f363bd5d42aa273a4551.tar.bz2 dmenu-5d0383d0f874348cc3e0f363bd5d42aa273a4551.zip |
Patched Dmenu
Diffstat (limited to 'bkp/arg.h')
-rw-r--r-- | bkp/arg.h | 61 |
1 files changed, 0 insertions, 61 deletions
diff --git a/bkp/arg.h b/bkp/arg.h deleted file mode 100644 index 10054e7..0000000 --- a/bkp/arg.h +++ /dev/null @@ -1,61 +0,0 @@ -/* -// . . . -// | | | . -// ,-. ,-. |-. ,-. . ,-. | ,_, ,-. ,-. |-. ,-,-. . |- ,_, -// | | ,-| | | | | |-' | / `-. | | | | | | | | / -// `-| `-^ ^-' ' ' `-' `' '"' `-' `-' ' ' ' ' ' ' `' '"' -// ,| -// `' -// GITHUB:https://github.com/gabrielzschmitz -// INSTAGRAM:https://www.instagram.com/gabrielz.schmitz/ -// DOTFILES:https://github.com/gabrielzschmitz/dotfiles/ -*/ -/* - * Copy me if you can. - * by 20h - */ - -#ifndef ARG_H__ -#define ARG_H__ - -extern char *argv0; - -/* use main(int argc, char *argv[]) */ -#define ARGBEGIN for (argv0 = *argv, argv++, argc--;\ - argv[0] && argv[0][0] == '-'\ - && argv[0][1];\ - argc--, argv++) {\ - char argc_;\ - char **argv_;\ - int brk_;\ - if (argv[0][1] == '-' && argv[0][2] == '\0') {\ - argv++;\ - argc--;\ - break;\ - }\ - for (brk_ = 0, argv[0]++, argv_ = argv;\ - argv[0][0] && !brk_;\ - argv[0]++) {\ - if (argv_ != argv)\ - break;\ - argc_ = argv[0][0];\ - switch (argc_) - -#define ARGEND }\ - } - -#define ARGC() argc_ - -#define EARGF(x) ((argv[0][1] == '\0' && argv[1] == NULL)?\ - ((x), abort(), (char *)0) :\ - (brk_ = 1, (argv[0][1] != '\0')?\ - (&argv[0][1]) :\ - (argc--, argv++, argv[0]))) - -#define ARGF() ((argv[0][1] == '\0' && argv[1] == NULL)?\ - (char *)0 :\ - (brk_ = 1, (argv[0][1] != '\0')?\ - (&argv[0][1]) :\ - (argc--, argv++, argv[0]))) - -#endif |