mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
*** empty log message ***
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/v1_1r@252 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
12b0a1b225
commit
fdfa583944
4 changed files with 35 additions and 40 deletions
29
regex.c
29
regex.c
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue