]> mj.ucw.cz Git - libucw.git/commitdiff
doc. system: detect function pointer variables
authorMichal Vaner <vorner@ucw.cz>
Sun, 15 Feb 2009 10:48:29 +0000 (11:48 +0100)
committerMichal Vaner <vorner@ucw.cz>
Sun, 15 Feb 2009 10:48:29 +0000 (11:48 +0100)
build/doc-extract

index 8d7325c7dc5788bd767c979db6137172e34722ee..6be99b45fb54e8e5728adb7dab147908ecfa4036 100755 (executable)
@@ -42,6 +42,8 @@ sub detect( $ ) {
        }
        # typedef type (*function_type)(params);
        return( 'type', 1, $2, $_ ) if /^\s*typedef[^()]+?(\(\s*?\*\s*?)?(\w+)(\s*\))?\s*\(.*\)/;
+       # type (*function_var)(params);
+       return( 'var', 1, $1, $_ ) if /^.*?\(\*(\w+)\)\(.*\)/;
        # type function(name);
        return( 'fun', 1, $2, $1 ) if /^(.*?(\w+)\([^{]*\)[^{]*)/;
        # typedef something name;