comparison src/regex.c @ 4759:aa5ed11f473b

Remove support for obsolete systems. See xemacs-patches message with ID <870180fe0911101613m6b8efa4bpf083fd9013950807@mail.gmail.com>.
author Jerry James <james@xemacs.org>
date Wed, 18 Nov 2009 08:49:14 -0700
parents b5f21bb36684
children 07fa38c30fdf
comparison
equal deleted inserted replaced
4758:75975fd0b7fc 4759:aa5ed11f473b
168 /* This is for other GNU distributions with internationalized messages. */ 168 /* This is for other GNU distributions with internationalized messages. */
169 #if defined (I18N3) && (defined (HAVE_LIBINTL_H) || defined (_LIBC)) 169 #if defined (I18N3) && (defined (HAVE_LIBINTL_H) || defined (_LIBC))
170 # include <libintl.h> 170 # include <libintl.h>
171 #else 171 #else
172 # define gettext(msgid) (msgid) 172 # define gettext(msgid) (msgid)
173 #endif
174
175 /* Under XEmacs, this is needed because we don't define it elsewhere. */
176 #ifdef SWITCH_ENUM_BUG
177 #define SWITCH_ENUM_CAST(x) ((int)(x))
178 #else
179 #define SWITCH_ENUM_CAST(x) (x)
180 #endif 173 #endif
181 174
182 175
183 /* Get the interface, including the syntax bits. */ 176 /* Get the interface, including the syntax bits. */
184 #include "regex.h" 177 #include "regex.h"
3762 } 3755 }
3763 3756
3764 /* We should never be about to go beyond the end of the pattern. */ 3757 /* We should never be about to go beyond the end of the pattern. */
3765 assert (p < pend); 3758 assert (p < pend);
3766 3759
3767 switch (SWITCH_ENUM_CAST ((re_opcode_t) *p++)) 3760 switch ((re_opcode_t) *p++)
3768 { 3761 {
3769 3762
3770 /* I guess the idea here is to simply not bother with a fastmap 3763 /* I guess the idea here is to simply not bother with a fastmap
3771 if a backreference is used, since it's too hard to figure out 3764 if a backreference is used, since it's too hard to figure out
3772 the fastmap for the corresponding group. Setting 3765 the fastmap for the corresponding group. Setting
5230 FREE_VARIABLES (); 5223 FREE_VARIABLES ();
5231 return mcnt; 5224 return mcnt;
5232 } 5225 }
5233 5226
5234 /* Otherwise match next pattern command. */ 5227 /* Otherwise match next pattern command. */
5235 switch (SWITCH_ENUM_CAST ((re_opcode_t) *p++)) 5228 switch ((re_opcode_t) *p++)
5236 { 5229 {
5237 /* Ignore these. Used to ignore the n of succeed_n's which 5230 /* Ignore these. Used to ignore the n of succeed_n's which
5238 currently have n == 0. */ 5231 currently have n == 0. */
5239 case no_op: 5232 case no_op:
5240 DEBUG_PRINT1 ("EXECUTING no_op.\n"); 5233 DEBUG_PRINT1 ("EXECUTING no_op.\n");