From 2ad95ed398ac9b105a5d304de1f8f4640d63d555 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Wed, 6 Sep 2006 12:30:26 +0000 Subject: r18171: Generate prototypes for functions returning bool. (This used to be commit 587a681c19a2747faaf83157e94dba998b6caf42) --- source4/script/mkproto.pl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'source4') 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 -- cgit