X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=build%2Fdoc-extract;h=2ef86026c50243f7244acf70f7e16b3a6695c62a;hb=403227fe2c782c1b675852ca88db3ea8be5db996;hp=dd01f4c42b7735c16709b224ee36f54bdb480e1e;hpb=426660b848319e3ff1e5d720807c46d9416b909e;p=libucw.git 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+);/;