4 while ((getline i < "proto.h") > 0) old_protos = old_protos ? old_protos "\n" i : i
6 protos = "/* This file is automatically generated with \"make proto\". DO NOT EDIT */\n"
10 protos = protos "\n" ((inheader = /\)[ \t]*$/ ? 0 : 1) ? $0 : $0 ";")
14 /^FN_(LOCAL|GLOBAL)_[^(]+\([^,()]+/ {
16 gsub(/^FN_(LOC|GLOB)AL_|,.*$/, "")
17 sub(/^BOOL\(/, "BOOL ")
18 sub(/^CHAR\(/, "char ")
19 sub(/^INTEGER\(/, "int ")
20 sub(/^STRING\(/, "char *")
21 protos = protos "\n" $0 (local ? "(int module_id);" : "(void);")
25 /^static|^extern|;/||!/^[A-Za-z][A-Za-z0-9_]* / { next }
28 protos = protos "\n" $0 ";"
34 protos = protos "\n" $0
38 if (old_protos != protos) print protos > "proto.h"
39 system("touch proto.h-tstamp")