ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/OpenMD/branches/development/src/antlr/CharScanner.hpp
(Generate patch)

Comparing:
trunk/src/antlr/CharScanner.hpp (file contents), Revision 770 by tim, Fri Dec 2 15:38:03 2005 UTC vs.
branches/development/src/antlr/CharScanner.hpp (file contents), Revision 1465 by chuckv, Fri Jul 9 23:08:25 2010 UTC

# Line 5 | Line 5
5   * Project led by Terence Parr at http://www.jGuru.com
6   * Software rights: http://www.antlr.org/license.html
7   *
8 < * $Id: CharScanner.hpp,v 1.1 2005-12-02 15:38:02 tim Exp $
8 > * $Id$
9   */
10  
11   #include <antlr/config.hpp>
12  
13   #include <map>
14 + #include <cstdio>
15  
16   #ifdef HAS_NOT_CCTYPE_H
17   #include <ctype.h>
# Line 40 | Line 41 | ANTLR_C_USING(tolower)
41  
42   ANTLR_C_USING(tolower)
43  
44 < #ifdef ANTLR_REALLY_NO_STRCASECMP
45 < // Apparently, neither strcasecmp nor stricmp is standard, and Codewarrior
46 < // on the mac has neither...
44 > #if !defined(HAVE_STRCASECMP) && defined(HAVE_STRICMP) && !defined(stricmp)
45 > #define strcasecmp stricmp
46 > #endif
47 > #if !defined(HAVE_STRNCASECMP) && defined(HAVE_STRNICMP) && !defined(strnicmp)
48 > #define strncasecmp strnicmp
49 > #endif
50 >
51 >
52 > #if !defined(HAVE_STRCASECMP) && !defined(HAVE_STRICMP)
53   inline int strcasecmp(const char *s1, const char *s2)
54   {
55          while (true)
# Line 54 | Line 61 | inline int strcasecmp(const char *s1, const char *s2)
61                  if (c1 == 0) return 0;
62          }
63   }
57 #else
58 #ifdef NO_STRCASECMP
59 ANTLR_C_USING(stricmp)
60 #else
61 ANTLR_C_USING(strcasecmp)
64   #endif
63 #endif
65  
66   /** Functor for the literals map
67   */

Comparing:
trunk/src/antlr/CharScanner.hpp (property svn:keywords), Revision 770 by tim, Fri Dec 2 15:38:03 2005 UTC vs.
branches/development/src/antlr/CharScanner.hpp (property svn:keywords), Revision 1465 by chuckv, Fri Jul 9 23:08:25 2010 UTC

# Line 0 | Line 1
1 + Author Id Revision Date

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines