summaryrefslogtreecommitdiff
path: root/inline.h
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2014-05-05 17:16:03 -0600
committerKarl Williamson <khw@cpan.org>2014-05-31 11:28:53 -0600
commit3ffc8c70ad4af0e7b2b5d389df0f84b6335fc315 (patch)
tree2a8b90cd8cddc2fc976028827e55daff9b11b4a7 /inline.h
parentc7c8bf5547526831b6168a1abd107399d80c0991 (diff)
downloadperl-3ffc8c70ad4af0e7b2b5d389df0f84b6335fc315.tar.gz
Revert bootstrapping to non-ASCII platforms
This effectively reverts commit 3ded5eb052cdc3f861ec0c0ff85348086d653be0. That commit created a scheme to bootstrap Perl onto a non-ASCII platform, by adding the allowing a Configure option that caused the compiled code to bypass a number of normal macro definitions and use slower, generic ones, sufficient to get miniperl to compile on the target architecture. One would then use miniperl to run a few scripts that would re-order certain header files, Using this one could then recompile all of perl, and once that was done, use it to recompile to use the normal fast macros. This worked, but was a cumbersome process. We now have the infrastructure, since commit 6ff677df5d6fe0f52ca0b6736f8b5a46ac402943, to cross compile on an ASCII platform to EBCDIC, the likely only non-ASCII character set to ever be used. So the new infrastructure will be used in future commits.
Diffstat (limited to 'inline.h')
-rw-r--r--inline.h47
1 files changed, 0 insertions, 47 deletions
diff --git a/inline.h b/inline.h
index f4b95543da..615c2e39aa 100644
--- a/inline.h
+++ b/inline.h
@@ -201,53 +201,6 @@ S_croak_memory_wrap(void)
#pragma clang diagnostic pop
#endif
-#ifdef BOOTSTRAP_CHARSET
-static bool
-S_bootstrap_ctype(U8 character, UV classnum, bool full_Latin1)
-{
- /* See comments in handy.h. This is placed in this file primarily to avoid
- * having to have an entry for it in embed.fnc */
-
- dTHX;
-
- if (! full_Latin1 && ! isASCII(character)) {
- return FALSE;
- }
-
- switch (classnum) {
- case _CC_ALPHANUMERIC: return isALPHANUMERIC_L1(character);
- case _CC_ALPHA: return isALPHA_L1(character);
- case _CC_ASCII: return isASCII_L1(character);
- case _CC_BLANK: return isBLANK_L1(character);
- case _CC_CASED: return isLOWER_L1(character)
- || isUPPER_L1(character);
- case _CC_CNTRL: return isCNTRL_L1(character);
- case _CC_DIGIT: return isDIGIT_L1(character);
- case _CC_GRAPH: return isGRAPH_L1(character);
- case _CC_LOWER: return isLOWER_L1(character);
- case _CC_PRINT: return isPRINT_L1(character);
- case _CC_PSXSPC: return isPSXSPC_L1(character);
- case _CC_PUNCT: return isPUNCT_L1(character);
- case _CC_SPACE: return isSPACE_L1(character);
- case _CC_UPPER: return isUPPER_L1(character);
- case _CC_WORDCHAR: return isWORDCHAR_L1(character);
- case _CC_XDIGIT: return isXDIGIT_L1(character);
- case _CC_VERTSPACE: return isSPACE_L1(character) && ! isBLANK_L1(character);
- case _CC_IDFIRST: return isIDFIRST_L1(character);
- case _CC_QUOTEMETA: return _isQUOTEMETA(character);
- case _CC_CHARNAME_CONT: return isCHARNAME_CONT(character);
- case _CC_NONLATIN1_FOLD: return _HAS_NONLATIN1_FOLD_CLOSURE_ONLY_FOR_USE_BY_REGCOMP_DOT_C_AND_REGEXEC_DOT_C(character);
- case _CC_NON_FINAL_FOLD: return _IS_NON_FINAL_FOLD_ONLY_FOR_USE_BY_REGCOMP_DOT_C(character);
- case _CC_IS_IN_SOME_FOLD: return _IS_IN_SOME_FOLD_ONLY_FOR_USE_BY_REGCOMP_DOT_C(character);
- case _CC_BACKSLASH_FOO_LBRACE_IS_META: return 0;
-
-
- default: break;
- }
- Perl_croak(aTHX_ "panic: bootstrap_ctype() has an unexpected character class '%" UVxf "'", classnum);
-}
-#endif
-
/* ------------------------------- utf8.h ------------------------------- */
PERL_STATIC_INLINE void