summaryrefslogtreecommitdiff
path: root/usr.bin/less/mkfuncs.awk
blob: dea28acebf5216036fd9fa3c5f8fc0b5544d0435 (plain)
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 }
}