aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJim Blandy1992-11-15 10:30:58 +0000
committerJim Blandy1992-11-15 10:30:58 +0000
commitd074788d47b9abb09a91258b21eac688ca59a878 (patch)
tree4a3979334beafd7cbf0d12f3965ebbe95b57eb20 /src
parentc9874e0423720c6f05e3d8f4c6c99d3519b4d414 (diff)
downloademacs-d074788d47b9abb09a91258b21eac688ca59a878.tar.gz
emacs-d074788d47b9abb09a91258b21eac688ca59a878.zip
*** empty log message ***
Diffstat (limited to 'src')
-rw-r--r--src/regex.c4
-rw-r--r--src/regex.h5
2 files changed, 9 insertions, 0 deletions
diff --git a/src/regex.c b/src/regex.c
index 3129ed499fd..71aa4cc87e1 100644
--- a/src/regex.c
+++ b/src/regex.c
@@ -135,7 +135,11 @@ init_syntax_once ()
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)
diff --git a/src/regex.h b/src/regex.h
index 87824ef474f..ef8e9a36697 100644
--- a/src/regex.h
+++ b/src/regex.h
@@ -20,6 +20,11 @@
20#ifndef __REGEXP_LIBRARY_H__ 20#ifndef __REGEXP_LIBRARY_H__
21#define __REGEXP_LIBRARY_H__ 21#define __REGEXP_LIBRARY_H__
22 22
23#ifdef VMS
24/* POSIX says that size_t should be in stddef.h. */
25#include <stddef.h>
26#endif
27
23/* POSIX says that <sys/types.h> must be included before <regex.h>. */ 28/* POSIX says that <sys/types.h> must be included before <regex.h>. */
24 29
25/* The following bits are used to determine the regexp syntax we 30/* The following bits are used to determine the regexp syntax we