5 # drop names from a declaration (hack to make prototypes comparable)
8 # builtin type specifiers/qualifiers..
9 s = "void char short int long float double signed unsigned _Bool _Complex bool complex"
10 s = s " static extern auto register inline const volatile restrict __restrict"
11 # typedef names in posix without _t
12 s = s " FILE DIR VISIT ENTRY ACTION DBM datum fd_set jmp_buf sigjmp_buf va_list __isoc_va_list nl_item nl_catd"
13 s = s " scalar real-floating" # used in macros
19 split("struct union enum", a)
25 if (tok ~ /^[a-zA-Z_]/) {
36 gsub(/\/\*[^\/]*\*\//, "")
39 gsub(/[^a-zA-Z0-9_.-]/," & ")
44 for (i = 1; i <= NF; i++) {
47 if ($i ~ /[a-zA-Z_][a-zA-Z0-9_]*/ && !tok[$i] && $i !~ /_t$/)
50 if (tok[$i] == "struct") {
57 gsub(/\[[0-9]+\]/, "[]", s)
58 gsub(/unsigned int/, "unsigned", s)
59 gsub(/long int/, "long", s)
60 gsub(/__restrict/, "restrict", s)
61 gsub(/__isoc_va_list/, "va_list", s)