diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2003-05-14 19:55:59 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2003-05-14 19:55:59 (GMT) |
commit | 20bd371f722f95bdf9da2d5c27753af4d38e7b6f (patch) | |
tree | d211455e0cef95445694e7630c63dd0e90d3f3a5 /src/pre.l | |
parent | ea4b32cb910635a50467b02f36b5521337451cf0 (diff) | |
download | Doxygen-20bd371f722f95bdf9da2d5c27753af4d38e7b6f.zip Doxygen-20bd371f722f95bdf9da2d5c27753af4d38e7b6f.tar.gz Doxygen-20bd371f722f95bdf9da2d5c27753af4d38e7b6f.tar.bz2 |
Release-1.3-20030514
Diffstat (limited to 'src/pre.l')
-rw-r--r-- | src/pre.l | 16 |
1 files changed, 14 insertions, 2 deletions
@@ -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 + |