5 print "#ifndef _PROTO_H_"
6 print "#define _PROTO_H_"
7 print "/* This file is automatically generated with \"make proto\". DO NOT EDIT */"
12 print "#endif /* _PROTO_H_ */"
16 if (FILENAME!=current_file) {
17 # if (use_ldap_define)
19 # print "#endif /* USE_LDAP */"
20 # use_ldap_define = 0;
23 print "/*The following definitions come from ",FILENAME," */"
26 # if (current_file=="ldap.c") {
27 # print "#ifdef USE_LDAP"
28 # use_ldap_define = 1;
32 if (match($0,"[)][ \t]*$")) {
42 # we handle the loadparm.c fns separately
46 printf "BOOL %s(int );\n", a[2]
51 printf "char *%s(int );\n", a[2]
56 printf "int %s(int );\n", a[2]
61 printf "char %s(int );\n", a[2]
66 printf "BOOL %s(void);\n", a[2]
71 printf "char *%s(void);\n", a[2]
76 printf "int %s(void);\n", a[2]
79 /^static|^extern/ || !/^[a-zA-Z]/ || /[;]/ {
83 !/^connection_struct|^uid_t|^gid_t|^unsigned|^mode_t|^DIR|^user|^int|^char|^uint|^struct|^BOOL|^void|^time|^smb_shm_offset_t|^shm_offset_t|^enum remote_arch_types|^FILE/ {