Преглед изворни кода

ENH: Using patch from Frans Englich to clarify error messages.

Brad King пре 20 година
родитељ
комит
3b43c29a30
3 измењених фајлова са 363 додато и 252 уклоњено
  1. 353 242
      Source/cmCommandArgumentParser.cxx
  2. 5 5
      Source/cmCommandArgumentParser.y
  3. 5 5
      Source/cmCommandArgumentParserTokens.h

Разлика између датотеке није приказан због своје велике величине
+ 353 - 242
Source/cmCommandArgumentParser.cxx


+ 5 - 5
Source/cmCommandArgumentParser.y

@@ -76,13 +76,13 @@ static void cmCommandArgumentError(yyscan_t yyscanner, const char* message);
 /* Tokens */
 %token cal_NCURLY
 %token cal_DCURLY
-%token cal_DOLLAR
-%token cal_LCURLY
-%token cal_RCURLY
+%token cal_DOLLAR "$"
+%token cal_LCURLY "{"
+%token cal_RCURLY "}"
 %token cal_NAME
-%token cal_BSLASH
+%token cal_BSLASH "\\"
 %token cal_SYMBOL
-%token cal_AT
+%token cal_AT     "@"
 %token cal_ERROR
 %token cal_ATNAME
 

+ 5 - 5
Source/cmCommandArgumentParserTokens.h

@@ -1,8 +1,7 @@
-/* A Bison parser, made by GNU Bison 1.875d.  */
+/* 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 Free Software
-   Foundation, Inc.
+   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
@@ -16,8 +15,8 @@
 
    You should have received a copy of the GNU General Public License
    along with this program; if not, write to the Free Software
-   Foundation, Inc., 59 Temple Place - Suite 330,
-   Boston, MA 02111-1307, USA.  */
+   Foundation, Inc., 51 Franklin Street, Fifth Floor,
+   Boston, MA 02110-1301, USA.  */
 
 /* As a special exception, when this file is copied by Bison into a
    Bison output file, you may use that output file without restriction.
@@ -43,6 +42,7 @@
      cal_ATNAME = 268
    };
 #endif
+/* Tokens.  */
 #define cal_NCURLY 258
 #define cal_DCURLY 259
 #define cal_DOLLAR 260

Неке датотеке нису приказане због велике количине промена