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+);/;
All definitions in libucw
=========================
-- <<enum,Enums>>
-- <<struct,Structs>>
+- <<enum,Enumerations>>
+- <<struct,Structures>>
+- <<type,Types>>
- <<fun,Functions>>
- <<var,Variables>>
- <<def,Preprocessor definitions>>