File: check_const

package info (click to toggle)
ipset 6.12.1-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 3,312 kB
  • sloc: ansic: 21,786; sh: 10,432; makefile: 163; 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" } }