summaryrefslogtreecommitdiffstats
path: root/Source/cmCommandArgumentParser.y
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2008-12-18 14:58:01 (GMT)
committerBrad King <brad.king@kitware.com>2008-12-18 14:58:01 (GMT)
commit8d4eda578173da303493745825ee069d7bb74dfb (patch)
treeca780058346b3c0cad120fdc93d5047a689da259 /Source/cmCommandArgumentParser.y
parente382ec035e4365f23e3fd20b3b9c9c0c942b7873 (diff)
downloadCMake-8d4eda578173da303493745825ee069d7bb74dfb.zip
CMake-8d4eda578173da303493745825ee069d7bb74dfb.tar.gz
CMake-8d4eda578173da303493745825ee069d7bb74dfb.tar.bz2
BUG: Move previous parser bugfixes into input file
The command argument parser code is generated by bison. This change restores some fixes previously applied to the generated output that were destroyed by regenerating the parser source. This time the fixes have been put in the input file so regenerating the parser will not destroy them again.
Diffstat (limited to 'Source/cmCommandArgumentParser.y')
-rw-r--r--Source/cmCommandArgumentParser.y9
1 files changed, 6 insertions, 3 deletions
diff --git a/Source/cmCommandArgumentParser.y b/Source/cmCommandArgumentParser.y
index 055c6c3..8684384 100644
--- a/Source/cmCommandArgumentParser.y
+++ b/Source/cmCommandArgumentParser.y
@@ -25,6 +25,7 @@ Run bison like this:
Modify cmCommandArgumentParser.cxx:
- remove TABs
+ - put header block at top of file
*/
@@ -62,9 +63,9 @@ YY_DECL;
static void cmCommandArgumentError(yyscan_t yyscanner, const char* message);
#define YYDEBUG 1
-//#define YYMAXDEPTH 100000
-//#define YYINITDEPTH 10000
-
+/* Configure the parser to support large input. */
+#define YYMAXDEPTH 100000
+#define YYINITDEPTH 10000
/* Disable some warnings in the generated code. */
#ifdef __BORLANDC__
@@ -77,6 +78,8 @@ static void cmCommandArgumentError(yyscan_t yyscanner, const char* message);
# pragma warning (disable: 4102) /* Unused goto label. */
# pragma warning (disable: 4065) /* Switch statement contains default but no
case. */
+# pragma warning (disable: 4244) /* loss of precision */
+# pragma warning (disable: 4702) /* unreachable code */
#endif
%}