comparison src/regex.c @ 2200:35540b6052a9

[xemacs-hg @ 2004-08-03 22:08:46 by james] Move the definition of gettext after #include "lisp.h".
author james
date Tue, 03 Aug 2004 22:08:48 +0000
parents a8d8f419b459
children 8e39301eac59
comparison
equal deleted inserted replaced
2199:8c0dc9adc2b5 2200:35540b6052a9
42 #endif 42 #endif
43 43
44 /* We need this for `regex.h', and perhaps for the Emacs include files. */ 44 /* We need this for `regex.h', and perhaps for the Emacs include files. */
45 #include <sys/types.h> 45 #include <sys/types.h>
46 #include <stddef.h> /* needed for ptrdiff_t under Solaris */ 46 #include <stddef.h> /* needed for ptrdiff_t under Solaris */
47
48 /* This is for other GNU distributions with internationalized messages. */
49 #if defined (I18N3) && (defined (HAVE_LIBINTL_H) || defined (_LIBC))
50 # include <libintl.h>
51 #else
52 # define gettext(msgid) (msgid)
53 #endif
54 47
55 /* XEmacs addition */ 48 /* XEmacs addition */
56 #ifdef REL_ALLOC 49 #ifdef REL_ALLOC
57 #define REGEX_REL_ALLOC /* may be undefined below */ 50 #define REGEX_REL_ALLOC /* may be undefined below */
58 #endif 51 #endif
122 #define DEC_IBYTEPTR_FMT(p, fmt) ((p)--) 115 #define DEC_IBYTEPTR_FMT(p, fmt) ((p)--)
123 #define itext_ichar_len(ptr) 1 116 #define itext_ichar_len(ptr) 1
124 #define itext_ichar_len_fmt(ptr, fmt) 1 117 #define itext_ichar_len_fmt(ptr, fmt) 1
125 118
126 #include <string.h> 119 #include <string.h>
120
121 /* This is for other GNU distributions with internationalized messages. */
122 #if defined (I18N3) && (defined (HAVE_LIBINTL_H) || defined (_LIBC))
123 # include <libintl.h>
124 #else
125 # define gettext(msgid) (msgid)
126 #endif
127 127
128 /* Define the syntax stuff for \<, \>, etc. */ 128 /* Define the syntax stuff for \<, \>, etc. */
129 129
130 /* This must be nonzero for the wordchar and notwordchar pattern 130 /* This must be nonzero for the wordchar and notwordchar pattern
131 commands in re_match_2. */ 131 commands in re_match_2. */