File: check_const

package info (click to toggle)
ipset 6.23-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 4,356 kB
  • ctags: 3,215
  • sloc: ansic: 30,595; sh: 14,626; makefile: 212; pascal: 125; awk: 3
file content (8 lines) | stat: -rwxr-xr-x 296 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
#! /usr/bin/awk -f

# include/linux/nfnetlink.h: nfnl_callback
# include/linux/netlink.h: netlink_dump_start
{ if (/^(struct nfnl_callback|extern int netlink_dump)/) { check=1 } }
{ if (check == 1 && /(^};|...\);)/) { check=0 } }

{ if (check == 1 && /const struct nlmsghdr/) { print "const" } }