ref: b8e4e7db10724ef2fd64ccc21dad5e4a2f3fb811
dir: /plan9/inline/
#!/bin/rc awk ' / inline / { inlining = 1; striptypes = 1; printf "#define "; next } /^}$/ && inlining { inlining = 0; print; next } inlining { if(striptypes) gsub(/[a-zA-Z_0-9]+ [*]?/, "") striptypes = 0 printf "%s\\\n", $0 next } !inlining { print } ' $*