summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2006-01-10 16:54:21 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:50:03 -0500
commit3c2c57a7114d0dc8372f7ae7c3202a0d8c6a20d7 (patch)
treee7b17c5097985fed0bfb1fdf34eaa662fea6d656 /source4
parentb424fdd2533068ed06aef648f126912fe3d8254f (diff)
downloadsamba-3c2c57a7114d0dc8372f7ae7c3202a0d8c6a20d7.tar.gz
samba-3c2c57a7114d0dc8372f7ae7c3202a0d8c6a20d7.tar.bz2
samba-3c2c57a7114d0dc8372f7ae7c3202a0d8c6a20d7.zip
r12831: add 'extern' to public prototypes
metze (This used to be commit d4d2f011e2ba11dee67aa6933a75bb6088f92fc0)
Diffstat (limited to 'source4')
-rwxr-xr-xsource4/script/mkproto.pl6
1 files changed, 4 insertions, 2 deletions
diff --git a/source4/script/mkproto.pl b/source4/script/mkproto.pl
index 1b2a9d355a..2332cb06ab 100755
--- a/source4/script/mkproto.pl
+++ b/source4/script/mkproto.pl
@@ -120,6 +120,7 @@ sub process_file($$$)
while (my $line = <FH>) {
my $target = $private_file;
+ my $is_public = 0;
# these are ordered for maximum speed
next if ($line =~ /^\s/);
@@ -128,11 +129,12 @@ sub process_file($$$)
next if ($line =~ /^\/|[;]/);
- if ($line =~ s/^_PUBLIC_[\t ]//) {
+ if ($line =~ s/^_PUBLIC_[\t ]/extern /) {
$target = $public_file;
+ $is_public = 1;
}
- next unless ( $line =~ /
+ next unless ( $is_public || $line =~ /
^void|^BOOL|^int|^struct|^char|^const|^\w+_[tT]\s|^uint|^unsigned|^long|
^NTSTATUS|^ADS_STATUS|^enum\s.*\(|^DATA_BLOB|^WERROR|^XFILE|^FILE|^DIR|
^double|^TDB_CONTEXT|^TDB_DATA|^TALLOC_CTX|^NTTIME|^FN_|^init_module|