summaryrefslogtreecommitdiff
path: root/source4/script/mkproto.pl
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2003-11-23 03:03:27 +0000
committerAndrew Tridgell <tridge@samba.org>2003-11-23 03:03:27 +0000
commit11e91848956821f9a794ae92f98b9204df0dbf12 (patch)
tree96d437b8d7f990235481aff3bfed6e5bf8dc040c /source4/script/mkproto.pl
parent1bd5a8ac1a4fea1d0becc6d07c41bdd615753f28 (diff)
downloadsamba-11e91848956821f9a794ae92f98b9204df0dbf12.tar.gz
samba-11e91848956821f9a794ae92f98b9204df0dbf12.tar.bz2
samba-11e91848956821f9a794ae92f98b9204df0dbf12.zip
by using a single proto.h we gain another factor of 4 in the speed of
"make proto" (This used to be commit f6bb118799887e8e29399343e377ba8e9f059f20)
Diffstat (limited to 'source4/script/mkproto.pl')
-rw-r--r--source4/script/mkproto.pl15
1 files changed, 8 insertions, 7 deletions
diff --git a/source4/script/mkproto.pl b/source4/script/mkproto.pl
index c5cb374047..66f2799147 100644
--- a/source4/script/mkproto.pl
+++ b/source4/script/mkproto.pl
@@ -64,16 +64,17 @@ sub process_file($)
next if ($line =~ /^\/|[;]/);
- if ($line =~ /^FN_/) {
- handle_loadparm($line);
- }
-
next unless ( $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
+ ^double|^TDB_CONTEXT|^TDB_DATA|^TALLOC_CTX|^NTTIME|^FN_
/xo);
+ if ($line =~ /^FN_/) {
+ handle_loadparm($line);
+ next;
+ }
+
if ( $line =~ /\(.*\)\s*$/o ) {
chomp $line;
print "$line;\n";
@@ -83,12 +84,12 @@ sub process_file($)
print $line;
while ($line = <FH>) {
- chomp $line;
if ($line =~ /\)\s*$/o) {
+ chomp $line;
print "$line;\n";
last;
}
- print "$line\n";
+ print $line;
}
}