summaryrefslogtreecommitdiffstats
path: root/src/pre.l
diff options
context:
space:
mode:
authordimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2006-08-09 08:29:54 (GMT)
committerdimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2006-08-09 08:29:54 (GMT)
commitf1ddf16acd015f8cf9ffc1fbf5719e8c764150e2 (patch)
treea09074ed1c9a5c1efb292f69db4f9bbb3a97cb19 /src/pre.l
parent3a7dcb4cbc953fcf5ab62243743707e5e0e3d379 (diff)
downloadDoxygen-f1ddf16acd015f8cf9ffc1fbf5719e8c764150e2.zip
Doxygen-f1ddf16acd015f8cf9ffc1fbf5719e8c764150e2.tar.gz
Doxygen-f1ddf16acd015f8cf9ffc1fbf5719e8c764150e2.tar.bz2
Release-1.4.7-20060809
Diffstat (limited to 'src/pre.l')
-rw-r--r--src/pre.l12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/pre.l b/src/pre.l
index 672104f..e5300bc 100644
--- a/src/pre.l
+++ b/src/pre.l
@@ -105,6 +105,7 @@ static int g_condCtx;
static bool g_skip;
static QStack<bool> g_condStack;
+static bool g_lexInit = FALSE;
static void setFileName(const char *name)
@@ -2377,6 +2378,7 @@ void preprocessFile(const char *fileName,BufStr &output)
g_guardExpr.resize(0);
preYYlex();
+ g_lexInit=TRUE;
if (inputFilter.isEmpty())
fclose(preYYin);
else
@@ -2399,6 +2401,16 @@ void preprocessFile(const char *fileName,BufStr &output)
}
}
+void preFreeScanner()
+{
+#if defined(YY_FLEX_SUBMINOR_VERSION)
+ if (g_lexInit)
+ {
+ preYYlex_destroy();
+ }
+#endif
+}
+
#if !defined(YY_FLEX_SUBMINOR_VERSION)
extern "C" { // some bogus code to keep the compiler happy
// int preYYwrap() { return 1 ; }