# HG changeset patch # User Jim Blandy # Date 721823458 0 # Node ID bcd84459e68aa87f98231894eb62f07ad5e268c5 # Parent 8c779144d540cba485afcdf82601c16b4e1b4c61 *** empty log message *** diff -r 8c779144d540 -r bcd84459e68a src/regex.c --- a/src/regex.c Tue Nov 10 23:12:23 1992 +0000 +++ b/src/regex.c Sun Nov 15 10:30:58 1992 +0000 @@ -135,7 +135,11 @@ (Per Bothner suggested the basic approach.) */ #undef SIGN_EXTEND_CHAR #if __STDC__ +#ifndef VMS #define SIGN_EXTEND_CHAR(c) ((signed char) (c)) +#else /* On VMS, VAXC doesn't recognize `signed' before `char' */ +#define SIGN_EXTEND_CHAR(c) ((char) (c)) +#endif /* VMS */ #else /* As in Harbison and Steele. */ #define SIGN_EXTEND_CHAR(c) ((((unsigned char) (c)) ^ 128) - 128) diff -r 8c779144d540 -r bcd84459e68a src/regex.h --- a/src/regex.h Tue Nov 10 23:12:23 1992 +0000 +++ b/src/regex.h Sun Nov 15 10:30:58 1992 +0000 @@ -20,6 +20,11 @@ #ifndef __REGEXP_LIBRARY_H__ #define __REGEXP_LIBRARY_H__ +#ifdef VMS +/* POSIX says that size_t should be in stddef.h. */ +#include +#endif + /* POSIX says that must be included before . */ /* The following bits are used to determine the regexp syntax we