add '_PUBLIC_' prototypes into proto.h
authorStefan Metzmacher <metze@samba.org>
Thu, 8 Nov 2007 13:34:02 +0000 (14:34 +0100)
committerStefan Metzmacher <metze@samba.org>
Thu, 8 Nov 2007 13:34:02 +0000 (14:34 +0100)
this makes merging samba4 code easier...

metze

source/script/mkproto.awk

index a707378251143952a035937ca96fb929d2108799..ff266321ff1f339e613ab240148fc476e6b4e2f5 100644 (file)
@@ -113,7 +113,7 @@ END {
   printf "int %s(void);\n", a[2]
 }
 
-/^static|^extern/ || !/^[a-zA-Z]/ || /[;]/ {
+/^static|^extern/ || !/^[a-zA-Z\_]/ || /[;]/ {
   next;
 }
 
@@ -151,7 +151,7 @@ END {
     gotstart = 1;
   }
 
-  if( $0 ~ /^NODE_STATUS_STRUCT|SMB_STRUCT_DIR|ELOG_TDB|codepoint_t/ ) {
+  if( $0 ~ /^NODE_STATUS_STRUCT|^SMB_STRUCT_DIR|^ELOG_TDB|^codepoint_t|^_PUBLIC_/ ) {
     gotstart = 1;
   }