File: mkfuncs.awk

package info (click to toggle)
jless 332iso242-2
  • links: PTS
  • area: main
  • in suites: potato, slink
  • size: 1,152 kB
  • ctags: 1,384
  • sloc: ansic: 16,157; sh: 203; makefile: 110; awk: 7
file content (9 lines) | stat: -rw-r--r-- 158 bytes parent folder | download | duplicates (21)
1
2
3
4
5
6
7
8
9
BEGIN { FS="("; state = 0 }

/^	public/ { ftype = $0; state = 1 }

{ if (state == 1)
	state = 2
  else if (state == 2)
	{ print ftype,$1,"();"; state = 0 }
}