r2583: mkproto.pl now treats "int main" as a special case and avoids it.
authorAndrew Tridgell <tridge@samba.org>
Fri, 24 Sep 2004 05:51:29 +0000 (05:51 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:59:07 +0000 (12:59 -0500)
(This used to be commit 01288e82bc39af66d5e47db19691c741555e999a)

source4/script/mkproto.pl

index d30d5707a97e9dd62b86766e15c5a02a49056f5c..227c7c0dce3fead04b4f5b6293a8ee5c47b6415c 100644 (file)
@@ -73,6 +73,8 @@ sub process_file($)
                              ^GtkWidget|^GType|^smb_ucs2_t
                              /xo);
 
+               next if ($line =~ /^int\s*main/);
+
                if ($line =~ /^FN_/) {
                        handle_loadparm($line);
                        next;