From 61ffa08f4c95e29d301de9fbabd6e71c2dbc1056 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Mon, 27 Aug 2007 18:10:19 +0000 Subject: r24712: No longer expose the 'BOOL' data type in any interfaces. (This used to be commit 1ce32673d960c8b05b6c1b1b99e1976a402417ae) --- source4/script/mkproto.pl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'source4/script/mkproto.pl') diff --git a/source4/script/mkproto.pl b/source4/script/mkproto.pl index 827304b650..51888c704f 100755 --- a/source4/script/mkproto.pl +++ b/source4/script/mkproto.pl @@ -128,7 +128,7 @@ sub handle_loadparm($$) my $name = $3; my %tmap = ( - "BOOL" => "BOOL ", + "BOOL" => "bool ", "bool" => "bool ", "CONST_STRING" => "const char *", "STRING" => "const char *", @@ -205,6 +205,7 @@ sub process_file($$$) $target->("\n$comment") if (defined($comment)); $comment = undef; + $line =~ s/BOOL /bool /g; if ( $line =~ /\(.*\)\s*$/o ) { chomp $line; $target->("$line;\n"); @@ -214,6 +215,7 @@ sub process_file($$$) $target->($line); while ($line = ) { + $line =~ s/BOOL /bool /g; if ($line =~ /\)\s*$/o) { chomp $line; $target->("$line;\n"); -- cgit