Mercurial > hg > Applications > mh
view miscellany/less-177/mkfuncs.awk @ 0:bce86c4163a3
Initial revision
author | kono |
---|---|
date | Mon, 18 Apr 2005 23:46:02 +0900 |
parents | |
children |
line wrap: on
line source
BEGIN { FS="("; state = 0 } /^ public/ { ftype = $0; state = 1 } { if (state == 1) state = 2 else if (state == 2) { print ftype,$1,"();"; state = 0 } }