diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 1998-06-26 07:19:02 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 1998-06-26 07:19:02 +0000 |
commit | fdfa583944cbe769f2085b0cfdce9ffd3ce8a3c8 (patch) | |
tree | da990130a4ebd05d4f0e6cfdbb2bd8cf268ba93b /regex.c | |
parent | 12b0a1b2252eb99dad90bf87c9e39470451560bd (diff) |
*** empty log message ***
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/v1_1r@252 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'regex.c')
-rw-r--r-- | regex.c | 29 |
1 files changed, 9 insertions, 20 deletions
@@ -43,7 +43,6 @@ #endif #include "config.h" -#include "defines.h" void *xmalloc P((unsigned long)); void *xcalloc P((unsigned long,unsigned long)); @@ -54,17 +53,17 @@ void free P((void*)); #ifndef NO_ALLOCA /* Make alloca work the best possible way. */ #ifdef __GNUC__ -#ifndef atarist -#ifndef alloca -#define alloca __builtin_alloca -#endif -#endif /* atarist */ -#else -#if defined(HAVE_ALLOCA_H) && !defined(__GNUC__) -#include <alloca.h> +# ifndef atarist +# ifndef alloca +# define alloca __builtin_alloca +# endif +# endif /* atarist */ #else +# if defined(HAVE_ALLOCA_H) +# include <alloca.h> +# else char *alloca(); -#endif +# endif #endif /* __GNUC__ */ #ifdef _AIX @@ -4120,18 +4119,8 @@ static const unsigned char mbctab_sjis[] = { 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 }; -#ifdef EUC -const unsigned char *mbctab = mbctab_euc; -int current_mbctype = MBCTYPE_EUC; -#else -#ifdef SJIS -const unsigned char *mbctab = mbctab_sjis; -int current_mbctype = MBCTYPE_SJIS; -#else const unsigned char *mbctab = mbctab_ascii; int current_mbctype = MBCTYPE_ASCII; -#endif -#endif void mbcinit(mbctype) |