summaryrefslogtreecommitdiffstats
path: root/src/pre.l
diff options
context:
space:
mode:
authordimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2003-05-14 19:55:59 (GMT)
committerdimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2003-05-14 19:55:59 (GMT)
commit64200b5e975b19f38f9a68569b98c6f53e6fe4d9 (patch)
treed211455e0cef95445694e7630c63dd0e90d3f3a5 /src/pre.l
parenta9f41d99f3651cd66850e9020bc3af7cb559306e (diff)
downloadDoxygen-64200b5e975b19f38f9a68569b98c6f53e6fe4d9.zip
Doxygen-64200b5e975b19f38f9a68569b98c6f53e6fe4d9.tar.gz
Doxygen-64200b5e975b19f38f9a68569b98c6f53e6fe4d9.tar.bz2
Release-1.3-20030514
Diffstat (limited to 'src/pre.l')
-rw-r--r--src/pre.l16
1 files changed, 14 insertions, 2 deletions
diff --git a/src/pre.l b/src/pre.l
index 667f272..72b05d0 100644
--- a/src/pre.l
+++ b/src/pre.l
@@ -354,6 +354,12 @@ static void processConcatOperators(QCString &expr)
//printf("processConcatOperators: out=`%s'\n",expr.data());
}
+static void yyunput (int c,char *buf_ptr );
+static void returnCharToStream(char c)
+{
+ unput(c);
+}
+
/*! replaces the function macro \a def whose argument list starts at
* \a pos in expression \a expr.
* Notice that this routine may scan beyond the \a expr string if needed.
@@ -1900,7 +1906,9 @@ static int getCurrentChar(const QCString &expr,QCString *rest,uint pos)
}
else
{
- int cc=yyinput();unput(cc);
+ int cc=yyinput();
+ returnCharToStream(cc);
+ //unput((char)cc);
//printf("%c=yyinput()\n",cc);
return cc;
}
@@ -1921,7 +1929,8 @@ static void unputChar(const QCString &expr,QCString *rest,uint &pos,char c)
}
else
{
- unput(c);
+ //unput(c);
+ returnCharToStream(c);
}
//printf("result: unputChar(%s,%s,%d,%c)\n",expr.data(),rest ? rest->data() : 0,pos,c);
}
@@ -2114,7 +2123,10 @@ void preprocessFile(const char *fileName,BufStr &output)
}
}
+#if !defined(YY_FLEX_SUBMINOR_VERSION)
extern "C" { // some bogus code to keep the compiler happy
// int preYYwrap() { return 1 ; }
void preYYdummy() { yy_flex_realloc(0,0); }
}
+#endif
+