Update of /cvsroot/boost/boost/libs/wave/src/cpplexer/re2clex
In directory
sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv27553/libs/wave/src/cpplexer/re2clex
Modified Files:
cpp.re cpp_re.inc strict_cpp.re strict_cpp_re.inc
Log Message:
Wave: Fixed Re2C problem when feeded with empty files.
Index: cpp.re
===================================================================
RCS file: /cvsroot/boost/boost/libs/wave/src/cpplexer/re2clex/cpp.re,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -d -r1.23 -r1.24
--- cpp.re 20 Dec 2006 16:55:55 -0000 1.23
+++ cpp.re 27 Mar 2007 13:35:26 -0000 1.24
@@ -287,7 +287,7 @@
"\000"
{
- if(cursor != s->eof)
+ if (s->eof && cursor != s->eof)
{
BOOST_WAVE_UPDATE_CURSOR(); // adjust the input cursor
(*s->error_proc)(s, "invalid character '\\000' in input stream");
@@ -360,7 +360,7 @@
"\000"
{
- if (cursor != s->eof)
+ if (s->eof && cursor != s->eof)
{
--YYCURSOR; // next call returns T_EOF
BOOST_WAVE_UPDATE_CURSOR(); // adjust the input cursor
Index: cpp_re.inc
===================================================================
RCS file: /cvsroot/boost/boost/libs/wave/src/cpplexer/re2clex/cpp_re.inc,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -d -r1.22 -r1.23
--- cpp_re.inc 11 Mar 2007 17:23:44 -0000 1.22
+++ cpp_re.inc 27 Mar 2007 13:35:26 -0000 1.23
@@ -1,4 +1,4 @@
-/* Generated by re2c 0.11.2 on Sun Mar 11 12:18:48 2007 */
+/* Generated by re2c 0.11.2 on Tue Mar 27 08:14:09 2007 */
#line 1 "cpp.re"
/*=============================================================================
Boost.Wave: A Standard compliant C++ preprocessor library
@@ -725,7 +725,7 @@
++YYCURSOR;
#line 289 "cpp.re"
{
- if(cursor != s->eof)
+ if (s->eof && cursor != s->eof)
{
BOOST_WAVE_UPDATE_CURSOR(); // adjust the input cursor
(*s->error_proc)(s, "invalid character '\\000' in input stream");
@@ -6267,7 +6267,7 @@
++YYCURSOR;
#line 362 "cpp.re"
{
- if (cursor != s->eof)
+ if (s->eof && cursor != s->eof)
{
--YYCURSOR; // next call returns T_EOF
BOOST_WAVE_UPDATE_CURSOR(); // adjust the input cursor
Index: strict_cpp.re
===================================================================
RCS file: /cvsroot/boost/boost/libs/wave/src/cpplexer/re2clex/strict_cpp.re,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- strict_cpp.re 20 Dec 2006 16:55:56 -0000 1.11
+++ strict_cpp.re 27 Mar 2007 13:35:26 -0000 1.12
@@ -287,7 +287,7 @@
"\000"
{
- if(cursor != s->eof)
+ if (s->eof && cursor != s->eof)
{
BOOST_WAVE_UPDATE_CURSOR(); // adjust the input cursor
(*s->error_proc)(s, "invalid character '\\000' in input stream");
@@ -360,7 +360,7 @@
"\000"
{
- if (cursor != s->eof)
+ if (s->eof && cursor != s->eof)
{
--YYCURSOR; // next call returns T_EOF
BOOST_WAVE_UPDATE_CURSOR(); // adjust the input cursor
Index: strict_cpp_re.inc
===================================================================
RCS file:
/cvsroot/boost/boost/libs/wave/src/cpplexer/re2clex/strict_cpp_re.inc,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -d -r1.21 -r1.22
--- strict_cpp_re.inc 11 Mar 2007 17:23:44 -0000 1.21
+++ strict_cpp_re.inc 27 Mar 2007 13:35:27 -0000 1.22
@@ -1,4 +1,4 @@
-/* Generated by re2c 0.11.2 on Sun Mar 11 12:18:56 2007 */
+/* Generated by re2c 0.11.2 on Tue Mar 27 08:13:17 2007 */
#line 1 "strict_cpp.re"
/*=============================================================================
Boost.Wave: A Standard compliant C++ preprocessor library
@@ -724,7 +724,7 @@
++YYCURSOR;
#line 289 "strict_cpp.re"
{
- if(cursor != s->eof)
+ if (s->eof && cursor != s->eof)
{
BOOST_WAVE_UPDATE_CURSOR(); // adjust the input cursor
(*s->error_proc)(s, "invalid character '\\000' in input stream");
@@ -6263,7 +6263,7 @@
++YYCURSOR;
#line 362 "strict_cpp.re"
{
- if (cursor != s->eof)
+ if (s->eof && cursor != s->eof)
{
--YYCURSOR; // next call returns T_EOF
BOOST_WAVE_UPDATE_CURSOR(); // adjust the input cursor
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Boost-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/boost-cvs