1 # generate prototypes for Samba C code
3 # added comment for each source file for use as crude index
9 print "/* This file is automatically generated with \"make proto\". DO NOT EDIT */"
14 if (FILENAME!=current_file) {
16 print "/*The following definitions come from ",FILENAME," */"
21 if (match($0,"[)][ \t]*$")) {
31 # we handle the loadparm.c fns separately
35 printf "BOOL %s(int );\n", a[2]
40 printf "char *%s(int );\n", a[2]
45 printf "int %s(int );\n", a[2]
50 printf "char %s(int );\n", a[2]
55 printf "BOOL %s(void);\n", a[2]
60 printf "char *%s(void);\n", a[2]
65 printf "int %s(void);\n", a[2]
68 /^static|^extern/ || !/^[a-zA-Z]/ || /[;]/ {
72 !/^unsigned|^mode_t|^DIR|^user|^int|^char|^uint|^struct|^BOOL|^void|^time/ {