diff options
Diffstat (limited to 'contrib/less/mkfuncs.awk')
-rw-r--r-- | contrib/less/mkfuncs.awk | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/contrib/less/mkfuncs.awk b/contrib/less/mkfuncs.awk new file mode 100644 index 0000000..dea28ac --- /dev/null +++ b/contrib/less/mkfuncs.awk @@ -0,0 +1,9 @@ +BEGIN { FS="("; state = 0 } + +/^ public/ { ftype = $0; state = 1 } + +{ if (state == 1) + state = 2 + else if (state == 2) + { print ftype,$1,"();"; state = 0 } +} |