summaryrefslogtreecommitdiff
path: root/source4/script/mkproto.pl
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2007-08-27 18:10:19 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 15:02:54 -0500
commit61ffa08f4c95e29d301de9fbabd6e71c2dbc1056 (patch)
tree5639bb3b7628532080737e4e1b1ff0b835ee4977 /source4/script/mkproto.pl
parent4fb038b0b8e7a4bb69ac0d9022684eeaca8a491a (diff)
downloadsamba-61ffa08f4c95e29d301de9fbabd6e71c2dbc1056.tar.gz
samba-61ffa08f4c95e29d301de9fbabd6e71c2dbc1056.tar.bz2
samba-61ffa08f4c95e29d301de9fbabd6e71c2dbc1056.zip
r24712: No longer expose the 'BOOL' data type in any interfaces.
(This used to be commit 1ce32673d960c8b05b6c1b1b99e1976a402417ae)
Diffstat (limited to 'source4/script/mkproto.pl')
-rwxr-xr-xsource4/script/mkproto.pl4
1 files changed, 3 insertions, 1 deletions
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 = <FH>) {
+ $line =~ s/BOOL /bool /g;
if ($line =~ /\)\s*$/o) {
chomp $line;
$target->("$line;\n");