From 5d0383d0f874348cc3e0f363bd5d42aa273a4551 Mon Sep 17 00:00:00 2001 From: Biswakalyan Bhuyan Date: Sun, 24 Apr 2022 22:27:42 +0530 Subject: Patched Dmenu --- bkp/arg.h | 61 ------------------------------------------------------------- 1 file changed, 61 deletions(-) delete mode 100644 bkp/arg.h (limited to 'bkp/arg.h') 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 -- cgit v1.2.3-59-g8ed1b