ref: d400e426eb04cfc4cb78fa82e7bcdc20150f3305
parent: 1f1e48bc86e1d10e30546e0328d779422676a0a4
author: kvik <kvik@a-b.xyz>
date: Mon May 4 16:38:24 EDT 2020
c: switch argument parsing to aux/getflags
--- a/bin/c
+++ b/bin/c
@@ -44,8 +44,8 @@
op = 'struct'
identifier = '[a-zA-Z_0-9]*'
-flagfmt = 'f,s'; args = '[regexp] [searchpath]'
-if(! eval `''{aux/getflags $*}) aux/usage
+flagfmt = 'e,f,s'; args = '[regexp] [searchpath]'
+eval `{aux/getflags $*} || exec aux/usage
if(~ $flagf 1) op = 'function'
if(~ $flags 1) op = 'struct'
if(! isatty){