diff options
author | Brad King <brad.king@kitware.com> | 2009-06-12 14:46:25 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2009-06-12 14:46:25 (GMT) |
commit | f5a86a83d3bc325abd27ecbba59beddc15ad0da4 (patch) | |
tree | b3efa0b8546ef47dc6e8012d6ddf5d34d475c2e3 /Source/cmDependsFortranParserTokens.h | |
parent | 74c385e702645b70f230c13b9f5bbc3acc76d367 (diff) | |
download | CMake-f5a86a83d3bc325abd27ecbba59beddc15ad0da4.zip CMake-f5a86a83d3bc325abd27ecbba59beddc15ad0da4.tar.gz CMake-f5a86a83d3bc325abd27ecbba59beddc15ad0da4.tar.bz2 |
ENH: Use KWSys String strcasecmp to parse Fortran
This replaces the Fortran dependency parser source's custom strcasecmp
implementation with one from KWSys String. It removes duplicate code
and avoids a Borland warning about inlining functions with 'while'.
Diffstat (limited to 'Source/cmDependsFortranParserTokens.h')
-rw-r--r-- | Source/cmDependsFortranParserTokens.h | 29 |
1 files changed, 15 insertions, 14 deletions
diff --git a/Source/cmDependsFortranParserTokens.h b/Source/cmDependsFortranParserTokens.h index 6079279..0bbcaae 100644 --- a/Source/cmDependsFortranParserTokens.h +++ b/Source/cmDependsFortranParserTokens.h @@ -1,14 +1,14 @@ -/* A Bison parser, made by GNU Bison 2.3. */ +/* A Bison parser, made by GNU Bison 2.4.1. */ /* Skeleton interface for Bison's Yacc-like parsers in C - Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006 + Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. - This program is free software; you can redistribute it and/or modify + 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 - the Free Software Foundation; either version 2, or (at your option) - any later version. + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -16,9 +16,7 @@ GNU General Public License for more details. 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., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. */ + along with this program. If not, see <http://www.gnu.org/licenses/>. */ /* As a special exception, you may create a larger work that contains part or all of the Bison parser skeleton and distribute that work @@ -104,14 +102,17 @@ #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED typedef union YYSTYPE -#line 141 "cmDependsFortranParser.y" { + +/* Line 1676 of yacc.c */ +#line 94 "cmDependsFortranParser.y" + char* string; -} -/* Line 1489 of yacc.c. */ -#line 113 "cmDependsFortranParserTokens.h" - YYSTYPE; + +/* Line 1676 of yacc.c */ +#line 118 "cmDependsFortranParserTokens.h" +} YYSTYPE; +# define YYSTYPE_IS_TRIVIAL 1 # define yystype YYSTYPE /* obsolescent; will be withdrawn */ # define YYSTYPE_IS_DECLARED 1 -# define YYSTYPE_IS_TRIVIAL 1 #endif |