File: check_const

package info (click to toggle)
ipset 6.38-1.2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 4,468 kB
  • sloc: ansic: 28,951; sh: 14,754; makefile: 246; 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" } }