summaryrefslogtreecommitdiffstats
path: root/Source/cmCommandArgumentParser.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2006-05-11 02:15:09 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2006-05-11 02:15:09 (GMT)
commite2c41d8436f8c82bd269ee831b23b98aafd9bb5a (patch)
tree51802bd4898d24d77f1ca62ed6f4117a0cc62f99 /Source/cmCommandArgumentParser.cxx
parentec4fbc338c6f5ed25700cd453326f90cc1313f39 (diff)
downloadCMake-e2c41d8436f8c82bd269ee831b23b98aafd9bb5a.zip
CMake-e2c41d8436f8c82bd269ee831b23b98aafd9bb5a.tar.gz
CMake-e2c41d8436f8c82bd269ee831b23b98aafd9bb5a.tar.bz2
ENH: move changes from main tree
Diffstat (limited to 'Source/cmCommandArgumentParser.cxx')
-rw-r--r--Source/cmCommandArgumentParser.cxx21
1 files changed, 14 insertions, 7 deletions
diff --git a/Source/cmCommandArgumentParser.cxx b/Source/cmCommandArgumentParser.cxx
index 8fa88d1..1f219dd 100644
--- a/Source/cmCommandArgumentParser.cxx
+++ b/Source/cmCommandArgumentParser.cxx
@@ -1,7 +1,8 @@
/* A Bison parser, made by GNU Bison 2.1. */
-/* Skeleton parser for Yacc-like parsing with Bison,
- Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
+/* Skeleton parser for Yacc-like parsing with Bison, Copyright (C) 1984,
+ 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation,
+ Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -118,7 +119,9 @@ This file must be translated to C and modified to build everywhere.
Run bison like this:
- bison --yacc --name-prefix=cmCommandArgument_yy --defines=cmCommandArgumentParserTokens.h -ocmCommandArgumentParser.cxx cmCommandArgumentParser.y
+ bison --yacc --name-prefix=cmCommandArgument_yy
+ --defines=cmCommandArgumentParserTokens.h -ocmCommandArgumentParser.cxx
+ cmCommandArgumentParser.y
Modify cmCommandArgumentParser.cxx:
- remove TABs
@@ -162,7 +165,8 @@ static void cmCommandArgumentError(yyscan_t yyscanner, const char* message);
#endif
#ifdef _MSC_VER
# pragma warning (disable: 4102) /* Unused goto label. */
-# pragma warning (disable: 4065) /* Switch statement contains default but no case. */
+# pragma warning (disable: 4065) /* Switch statement contains default but no
+ case. */
#endif
@@ -1287,8 +1291,10 @@ yyreduce:
case 15:
#line 166 "cmCommandArgumentParser.y"
{
- (yyval.str) = yyGetParser->ExpandSpecialVariable((yyvsp[-2].str),(yyvsp[-1].str));
- //std::cerr << __LINE__ << " here: [" << $<str>1 << "] [" << $<str>2 << "] [" << $<str>3 << "]" << std::endl;
+ (yyval.str) =
+ yyGetParser->ExpandSpecialVariable((yyvsp[-2].str),(yyvsp[-1].str));
+ //std::cerr << __LINE__ << " here: [" << $<str>1 << "] [" << $<str>2 << "]
+ //[" << $<str>3 << "]" << std::endl;
}
break;
@@ -1296,7 +1302,8 @@ yyreduce:
#line 172 "cmCommandArgumentParser.y"
{
(yyval.str) = yyGetParser->ExpandVariable((yyvsp[-1].str));
- //std::cerr << __LINE__ << " here: [" << $<str>1 << "] [" << $<str>2 << "] [" << $<str>3 << "]" << std::endl;
+ //std::cerr << __LINE__ << " here: [" << $<str>1 << "] [" << $<str>2 << "]
+ //[" << $<str>3 << "]" << std::endl;
}
break;