From 11e91848956821f9a794ae92f98b9204df0dbf12 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 23 Nov 2003 03:03:27 +0000 Subject: by using a single proto.h we gain another factor of 4 in the speed of "make proto" (This used to be commit f6bb118799887e8e29399343e377ba8e9f059f20) --- source4/script/mkproto.pl | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'source4/script/mkproto.pl') 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 = ) { - chomp $line; if ($line =~ /\)\s*$/o) { + chomp $line; print "$line;\n"; last; } - print "$line\n"; + print $line; } } -- cgit