summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2006-09-06 12:30:26 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:17:45 -0500
commit2ad95ed398ac9b105a5d304de1f8f4640d63d555 (patch)
tree86f269e8ac62a4ae42a95e444946781d969450aa /source4
parente0fae5b22a54ad91caca7fdb112596e37a9372f3 (diff)
downloadsamba-2ad95ed398ac9b105a5d304de1f8f4640d63d555.tar.gz
samba-2ad95ed398ac9b105a5d304de1f8f4640d63d555.tar.bz2
samba-2ad95ed398ac9b105a5d304de1f8f4640d63d555.zip
r18171: Generate prototypes for functions returning bool.
(This used to be commit 587a681c19a2747faaf83157e94dba998b6caf42)
Diffstat (limited to 'source4')
-rwxr-xr-xsource4/script/mkproto.pl5
1 files changed, 3 insertions, 2 deletions
diff --git a/source4/script/mkproto.pl b/source4/script/mkproto.pl
index 682712b679..bfa1f63667 100755
--- a/source4/script/mkproto.pl
+++ b/source4/script/mkproto.pl
@@ -125,13 +125,14 @@ sub handle_loadparm($$)
{
my ($file,$line) = @_;
- if ($line =~ /^_PUBLIC_ FN_(GLOBAL|LOCAL)_(CONST_STRING|STRING|BOOL|CHAR|INTEGER|LIST)\((\w+),.*\)/o) {
+ if ($line =~ /^_PUBLIC_ FN_(GLOBAL|LOCAL)_(CONST_STRING|STRING|BOOL|bool|CHAR|INTEGER|LIST)\((\w+),.*\)/o) {
my $scope = $1;
my $type = $2;
my $name = $3;
my %tmap = (
"BOOL" => "BOOL ",
+ "bool" => "bool ",
"CONST_STRING" => "const char *",
"STRING" => "const char *",
"INTEGER" => "int ",
@@ -182,7 +183,7 @@ sub process_file($$$)
}
next unless ( $is_public || $line =~ /
- ^void|^BOOL|^int|^struct|^char|^const|^\w+_[tT]\s|^uint|^unsigned|^long|
+ ^void|^BOOL|^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|^FN_|^init_module|
^GtkWidget|^GType|^smb_ucs2_t