[cmake-commits] king committed cmCommandArgumentLexer.cxx 1.9 1.10
cmCommandArgumentLexer.h 1.2 1.3 cmCommandArgumentLexer.in.l 1.7 1.8
cmake-commits at cmake.org
cmake-commits at cmake.org
Mon Sep 25 10:05:09 EDT 2006
Update of /cvsroot/CMake/CMake/Source
In directory public:/mounts/ram/cvs-serv19927/Source
Modified Files:
cmCommandArgumentLexer.cxx cmCommandArgumentLexer.h
cmCommandArgumentLexer.in.l
Log Message:
BUG: Character + should be valid in a variable name.
Index: cmCommandArgumentLexer.h
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/cmCommandArgumentLexer.h,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- cmCommandArgumentLexer.h 10 Mar 2006 18:54:57 -0000 1.2
+++ cmCommandArgumentLexer.h 25 Sep 2006 14:05:06 -0000 1.3
@@ -13,7 +13,7 @@
#define FLEX_SCANNER
#define YY_FLEX_MAJOR_VERSION 2
#define YY_FLEX_MINOR_VERSION 5
-#define YY_FLEX_SUBMINOR_VERSION 31
+#define YY_FLEX_SUBMINOR_VERSION 33
#if YY_FLEX_SUBMINOR_VERSION > 0
#define FLEX_BETA
#endif
@@ -36,6 +36,14 @@
/* C99 systems have <inttypes.h>. Non-C99 systems may or may not. */
#if defined __STDC_VERSION__ && __STDC_VERSION__ >= 199901L
+
+/* C99 says to define __STDC_LIMIT_MACROS before including stdint.h,
+ * if you want the limit (max/min) macros for int types.
+ */
+#ifndef __STDC_LIMIT_MACROS
+#define __STDC_LIMIT_MACROS 1
+#endif
+
#include <inttypes.h>
typedef int8_t flex_int8_t;
typedef uint8_t flex_uint8_t;
Index: cmCommandArgumentLexer.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/cmCommandArgumentLexer.cxx,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- cmCommandArgumentLexer.cxx 23 Aug 2006 16:02:30 -0000 1.9
+++ cmCommandArgumentLexer.cxx 25 Sep 2006 14:05:06 -0000 1.10
@@ -1,7 +1,6 @@
-#include "cmStandardIncludes.h"
-
-
+#line 2 "cmCommandArgumentLexer.cxx"
+#line 4 "cmCommandArgumentLexer.cxx"
#define YY_INT_ALIGNED short int
@@ -10,7 +9,7 @@
#define FLEX_SCANNER
[...2188 lines suppressed...]
#define YYTABLES_NAME "yytables"
-#undef YY_NEW_FILE
-#undef YY_FLUSH_BUFFER
-#undef yy_set_bol
-#undef yy_new_buffer
-#undef yy_set_interactive
-#undef yytext_ptr
-#undef YY_DO_BEFORE_ACTION
-
-#ifdef YY_DECL_IS_OURS
-#undef YY_DECL_IS_OURS
-#undef YY_DECL
-#endif
-
+#line 133 "cmCommandArgumentLexer.in.l"
Index: cmCommandArgumentLexer.in.l
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/cmCommandArgumentLexer.in.l,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- cmCommandArgumentLexer.in.l 8 Aug 2006 18:00:27 -0000 1.7
+++ cmCommandArgumentLexer.in.l 25 Sep 2006 14:05:06 -0000 1.8
@@ -59,13 +59,13 @@
%%
-\$[A-Za-z0-9/_.-]+\{ {
+\$[A-Za-z0-9/_.+-]+\{ {
//std::cerr << __LINE__ << " here: [" << yytext << "]" << std::endl;
yyextra->AllocateParserType(yylvalp, yytext+1, strlen(yytext)-2);
return cal_NCURLY;
}
-@[A-Za-z0-9/_.-]+@ {
+@[A-Za-z0-9/_.+-]+@ {
//std::cerr << __LINE__ << " here: [" << yytext << "]" << std::endl;
yyextra->AllocateParserType(yylvalp, yytext+1, strlen(yytext)-2);
return cal_ATNAME;
@@ -74,25 +74,25 @@
"${" {
//std::cerr << __LINE__ << " here: [" << yytext << "]" << std::endl;
//yyextra->AllocateParserType(yylvalp, yytext, strlen(yytext));
- yylvalp->str = yyextra->m_DCURLYVariable;
+ yylvalp->str = yyextra->DCURLYVariable;
return cal_DCURLY;
}
"}" {
//std::cerr << __LINE__ << " here: [" << yytext << "]" << std::endl;
//yyextra->AllocateParserType(yylvalp, yytext, strlen(yytext));
- yylvalp->str = yyextra->m_RCURLYVariable;
+ yylvalp->str = yyextra->RCURLYVariable;
return cal_RCURLY;
}
"@" {
//std::cerr << __LINE__ << " here: [" << yytext << "]" << std::endl;
//yyextra->AllocateParserType(yylvalp, yytext, strlen(yytext));
- yylvalp->str = yyextra->m_ATVariable;
+ yylvalp->str = yyextra->ATVariable;
return cal_AT;
}
-[A-Za-z0-9/_.-]+ {
+[A-Za-z0-9/_.+-]+ {
//std::cerr << __LINE__ << " here: [" << yytext << "]" << std::endl;
yyextra->AllocateParserType(yylvalp, yytext, strlen(yytext));
return cal_NAME;
@@ -114,19 +114,19 @@
"$" {
//yyextra->AllocateParserType(yylvalp, yytext, strlen(yytext));
- yylvalp->str = yyextra->m_DOLLARVariable;
+ yylvalp->str = yyextra->DOLLARVariable;
return cal_DOLLAR;
}
"{" {
//yyextra->AllocateParserType(yylvalp, yytext, strlen(yytext));
- yylvalp->str = yyextra->m_LCURLYVariable;
+ yylvalp->str = yyextra->LCURLYVariable;
return cal_LCURLY;
}
"\\" {
//yyextra->AllocateParserType(yylvalp, yytext, strlen(yytext));
- yylvalp->str = yyextra->m_BSLASHVariable;
+ yylvalp->str = yyextra->BSLASHVariable;
return cal_BSLASH;
}
More information about the Cmake-commits
mailing list