~mcf/cproc

347b7d0aaaf790df992340525cae076d35d3f27e — Michael Forney 1 year, 6 months ago d5e382d
Minor tweaks to arg.h

Make sure EARGF() has type `char *` (rather than `void *`).

Only advance opt_ when there is more left in the argument.
1 files changed, 1 insertions(+), 1 deletions(-)

M arg.h
M arg.h => arg.h +1 -1
@@ 15,4 15,4 @@
	}

#define EARGF(x) \
	(done_ = 1, *++opt_ ? opt_ : argv[1] ? --argc, *++argv : ((x), abort(), (void *)0))
	(done_ = 1, opt_[1] ? ++opt_ : argv[1] ? --argc, *++argv : ((x), abort(), (char *)0))