mirror of https://github.com/0intro/wmii
Unbreak arg parsing.
This commit is contained in:
parent
8e079b8628
commit
c941881c40
|
@ -54,11 +54,11 @@ int __i;
|
||||||
|
|
||||||
#define ARGF() ((_inargv && _argv[_argi]) ? \
|
#define ARGF() ((_inargv && _argv[_argi]) ? \
|
||||||
(_argtmp=_argi, _argi=strlen(_argv), __i=_argi,_argv+_argtmp) \
|
(_argtmp=_argi, _argi=strlen(_argv), __i=_argi,_argv+_argtmp) \
|
||||||
: ((argc > 0) ? (--argc, ++argv, __i=argc, __p=argv, (*argv-1)) : ((char*)0)))
|
: ((argc > 0) ? (--argc, ++argv, __i=argc, __p=argv, *(argv-1)) : ((char*)0)))
|
||||||
|
|
||||||
#define EARGF(f) ((_inargv && _argv[_argi]) ? \
|
#define EARGF(f) ((_inargv && _argv[_argi]) ? \
|
||||||
(_argtmp=_argi, _argi=strlen(_argv), __i=_argi, _argv+_argtmp) \
|
(_argtmp=_argi, _argi=strlen(_argv), __i=_argi, _argv+_argtmp) \
|
||||||
: ((argc > 0) ? (--argc, ++argv, __i=argc, __p=argv, (*argv-1)) : ((f), (char*)0)))
|
: ((argc > 0) ? (--argc, ++argv, __i=argc, __p=argv, *(argv-1)) : ((f), (char*)0)))
|
||||||
|
|
||||||
#ifndef KENC
|
#ifndef KENC
|
||||||
# undef USED
|
# undef USED
|
||||||
|
|
Loading…
Reference in New Issue