Skip to content
Snippets Groups Projects
Commit d096c64a authored by danglin's avatar danglin
Browse files

* safe-ctype.h (_sch_test): Cast enum bit to unsigned short int for pcc

	compatibility.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@40175 138bc75d-0d04-0410-961f-82ee72b054a4
parent ee6c4e4b
No related branches found
No related tags found
No related merge requests found
2001-03-01 John David Anglin <dave@hiauly1.hia.nrc.ca>
* safe-ctype.h (_sch_test): Cast enum bit to unsigned short int for pcc
compatibility.
2000-12-18 Joseph S. Myers <jsm28@cam.ac.uk> 2000-12-18 Joseph S. Myers <jsm28@cam.ac.uk>
* COPYING: Update to current * COPYING: Update to current
......
/* <ctype.h> replacement macros. /* <ctype.h> replacement macros.
Copyright (C) 2000 Free Software Foundation, Inc. Copyright (C) 2000, 2001 Free Software Foundation, Inc.
Contributed by Zack Weinberg <zackw@stanford.edu>. Contributed by Zack Weinberg <zackw@stanford.edu>.
This file is part of the libiberty library. This file is part of the libiberty library.
...@@ -69,7 +69,7 @@ enum { ...@@ -69,7 +69,7 @@ enum {
/* Character classification. */ /* Character classification. */
extern const unsigned short _sch_istable[256]; extern const unsigned short _sch_istable[256];
#define _sch_test(c, bit) (_sch_istable[(c) & 0xff] & (bit)) #define _sch_test(c, bit) (_sch_istable[(c) & 0xff] & (unsigned short)(bit))
#define ISALPHA(c) _sch_test(c, _sch_isalpha) #define ISALPHA(c) _sch_test(c, _sch_isalpha)
#define ISALNUM(c) _sch_test(c, _sch_isalnum) #define ISALNUM(c) _sch_test(c, _sch_isalnum)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment