Mercurial > hg > xemacs-beta
diff 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 |
line wrap: on
line diff
--- a/src/regex.c Wed Nov 18 22:44:28 2009 +0900 +++ b/src/regex.c Wed Nov 18 08:49:14 2009 -0700 @@ -172,13 +172,6 @@ # define gettext(msgid) (msgid) #endif -/* Under XEmacs, this is needed because we don't define it elsewhere. */ -#ifdef SWITCH_ENUM_BUG -#define SWITCH_ENUM_CAST(x) ((int)(x)) -#else -#define SWITCH_ENUM_CAST(x) (x) -#endif - /* Get the interface, including the syntax bits. */ #include "regex.h" @@ -3764,7 +3757,7 @@ /* We should never be about to go beyond the end of the pattern. */ assert (p < pend); - switch (SWITCH_ENUM_CAST ((re_opcode_t) *p++)) + switch ((re_opcode_t) *p++) { /* I guess the idea here is to simply not bother with a fastmap @@ -5232,7 +5225,7 @@ } /* Otherwise match next pattern command. */ - switch (SWITCH_ENUM_CAST ((re_opcode_t) *p++)) + switch ((re_opcode_t) *p++) { /* Ignore these. Used to ignore the n of succeed_n's which currently have n == 0. */