summaryrefslogtreecommitdiffstats
path: root/src/declinfo.l
diff options
context:
space:
mode:
authordimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2004-12-21 21:03:59 (GMT)
committerdimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2004-12-21 21:03:59 (GMT)
commit04a4eddbeaa2fef70fe87a790efabe074062fadf (patch)
tree4cba2cc60a5a2a7a7965944fa0bd64213bdfa9f0 /src/declinfo.l
parentd048df9811a8686d93dc28f275a1c5c575833669 (diff)
downloadDoxygen-04a4eddbeaa2fef70fe87a790efabe074062fadf.zip
Doxygen-04a4eddbeaa2fef70fe87a790efabe074062fadf.tar.gz
Doxygen-04a4eddbeaa2fef70fe87a790efabe074062fadf.tar.bz2
Release-1.3.9.1-20041221
Diffstat (limited to 'src/declinfo.l')
-rw-r--r--src/declinfo.l12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/declinfo.l b/src/declinfo.l
index d115fb1..0c67a80 100644
--- a/src/declinfo.l
+++ b/src/declinfo.l
@@ -117,7 +117,9 @@ ID ([a-z_A-Z][a-z_A-Z0-9]*)|(@[0-9]+)
name += yytext;
BEGIN(Operator);
}
-<Start>(~{B}*)?{ID}({B}*"["{B}*"]")* { // the []'s are for Java
+<Start>(~{B}*)?{ID}/({B}*"["{B}*"]")* { // the []'s are for Java,
+ // the / was add to deal with multi-
+ // dimensional C++ arrays like A[][15]
addTypeName();
name += yytext;
}
@@ -331,3 +333,11 @@ int main()
dumpDecl("void ( * Name < T > :: bla ) ( int, char * )");
}
#endif
+
+#if !defined(YY_FLEX_SUBMINOR_VERSION)
+//----------------------------------------------------------------------------
+extern "C" { // some bogus code to keep the compiler happy
+ void declinfoYYdummy() { yy_flex_realloc(0,0); }
+}
+#endif
+