Mercurial > gnulib
comparison lib/regex.c @ 17:bfdc4be2e482
GNU text utilities
author | Jim Meyering <jim@meyering.net> |
---|---|
date | Thu, 19 Nov 1992 20:51:13 +0000 |
parents | 4b22f864dc31 |
children | ae9487125494 |
comparison
equal
deleted
inserted
replaced
12:f4f95ae402d1 | 17:bfdc4be2e482 |
---|---|
133 since ours (we hope) works properly with all combinations of | 133 since ours (we hope) works properly with all combinations of |
134 machines, compilers, `char' and `unsigned char' argument types. | 134 machines, compilers, `char' and `unsigned char' argument types. |
135 (Per Bothner suggested the basic approach.) */ | 135 (Per Bothner suggested the basic approach.) */ |
136 #undef SIGN_EXTEND_CHAR | 136 #undef SIGN_EXTEND_CHAR |
137 #if __STDC__ | 137 #if __STDC__ |
138 #ifndef VMS | |
138 #define SIGN_EXTEND_CHAR(c) ((signed char) (c)) | 139 #define SIGN_EXTEND_CHAR(c) ((signed char) (c)) |
140 #else /* On VMS, VAXC doesn't recognize `signed' before `char' */ | |
141 #define SIGN_EXTEND_CHAR(c) ((char) (c)) | |
142 #endif /* VMS */ | |
139 #else | 143 #else |
140 /* As in Harbison and Steele. */ | 144 /* As in Harbison and Steele. */ |
141 #define SIGN_EXTEND_CHAR(c) ((((unsigned char) (c)) ^ 128) - 128) | 145 #define SIGN_EXTEND_CHAR(c) ((((unsigned char) (c)) ^ 128) - 128) |
142 #endif | 146 #endif |
143 | 147 |