summaryrefslogtreecommitdiff
path: root/source4/script/mkproto.pl
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2006-03-07 16:51:56 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:52:32 -0500
commit324fcc27f9e63b63e0c7403f1c100949952fb0b5 (patch)
treea38d4f197b814c3d150718d7ad1e72f9271a7cda /source4/script/mkproto.pl
parent4b0da784bf1a77a68c01d9d16a7521fb2c8ba977 (diff)
downloadsamba-324fcc27f9e63b63e0c7403f1c100949952fb0b5.tar.gz
samba-324fcc27f9e63b63e0c7403f1c100949952fb0b5.tar.bz2
samba-324fcc27f9e63b63e0c7403f1c100949952fb0b5.zip
r13964: make lp_* functions public
metze (This used to be commit 2db081fd708ff2403082e31a777320a713e74756)
Diffstat (limited to 'source4/script/mkproto.pl')
-rwxr-xr-xsource4/script/mkproto.pl12
1 files changed, 6 insertions, 6 deletions
diff --git a/source4/script/mkproto.pl b/source4/script/mkproto.pl
index 1fca294d97..e79bcfd9b6 100755
--- a/source4/script/mkproto.pl
+++ b/source4/script/mkproto.pl
@@ -89,7 +89,7 @@ sub handle_loadparm($$)
{
my ($file,$line) = @_;
- if ($line =~ /^FN_(GLOBAL|LOCAL)_(CONST_STRING|STRING|BOOL|CHAR|INTEGER|LIST)\((\w+),.*\)/o) {
+ if ($line =~ /^_PUBLIC_ FN_(GLOBAL|LOCAL)_(CONST_STRING|STRING|BOOL|CHAR|INTEGER|LIST)\((\w+),.*\)/o) {
my $scope = $1;
my $type = $2;
my $name = $3;
@@ -133,6 +133,11 @@ sub process_file($$$)
next if ($line =~ /^\/|[;]/);
+ if ($line =~ /^_PUBLIC_ FN_/) {
+ handle_loadparm($public_file, $line);
+ next;
+ }
+
if ($line =~ /^_PUBLIC_[\t ]/) {
$target = $public_file;
$is_public = 1;
@@ -147,11 +152,6 @@ sub process_file($$$)
next if ($line =~ /^int\s*main/);
- if ($line =~ /^FN_/) {
- handle_loadparm($public_file, $line);
- next;
- }
-
if ( $line =~ /\(.*\)\s*$/o ) {
chomp $line;
print $target "$line;\n";