]> mj.ucw.cz Git - libucw.git/blobdiff - build/doc-extract
Doc. system: detect function typedefs
[libucw.git] / build / doc-extract
index dd01f4c42b7735c16709b224ee36f54bdb480e1e..2ef86026c50243f7244acf70f7e16b3a6695c62a 100755 (executable)
@@ -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+);/;