From: Michal Vaner Date: Thu, 18 Sep 2008 12:28:23 +0000 (+0200) Subject: Doc. system: detect function typedefs X-Git-Tag: holmes-import~284 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=403227fe2c782c1b675852ca88db3ea8be5db996;p=libucw.git Doc. system: detect function typedefs things like typedef function(void) were considered functions, not types. --- diff --git a/build/doc-extract b/build/doc-extract index dd01f4c4..2ef86026 100755 --- a/build/doc-extract +++ b/build/doc-extract @@ -35,6 +35,7 @@ sub detect( $ ) { return( '', 0, $_, $_ ); } return( 'def', 0, $1, $_ ) if /#define\s+(\w+)/; + return( 'type', 1, $2, $_ ) if /^\s*typedef[^()]+?(\(\s*?\*\s*?)?(\w+)(\s*\))?\s*\(.*\)/; return( 'fun', 1, $2, $1 ) if /^(.*?(\w+)\([^{]*\)[^{]*)/; return( 'type', 1, $1, $_ ) if /^\s*typedef.*?(\w+);/; return( 'var', 1, $1, $_ ) if /\s(\w+);/; diff --git a/ucw/doc/def_index.txt b/ucw/doc/def_index.txt index 43e8bbac..786c1efe 100644 --- a/ucw/doc/def_index.txt +++ b/ucw/doc/def_index.txt @@ -1,8 +1,9 @@ All definitions in libucw ========================= -- <> -- <> +- <> +- <> +- <> - <> - <> - <>