📄 const-c.inc
字号:
#define PERL_constant_NOTFOUND 1#define PERL_constant_NOTDEF 2#define PERL_constant_ISIV 3#define PERL_constant_ISNO 4#define PERL_constant_ISNV 5#define PERL_constant_ISPV 6#define PERL_constant_ISPVN 7#define PERL_constant_ISSV 8#define PERL_constant_ISUNDEF 9#define PERL_constant_ISUV 10#define PERL_constant_ISYES 11#ifndef NVTYPEtypedef double NV; /* 5.6 and later define NVTYPE, and typedef NV to it. */#endif#ifndef aTHX_#define aTHX_ /* 5.6 or later define this for threading support. */#endif#ifndef pTHX_#define pTHX_ /* 5.6 or later define this for threading support. */#endifstatic intconstant_5 (pTHX_ const char *name, IV *iv_return) { /* When generated this function returned values for the list of names given here. However, subsequent manual editing may have added or removed some. DAY_1 DAY_2 DAY_3 DAY_4 DAY_5 DAY_6 DAY_7 D_FMT MON_1 MON_2 MON_3 MON_4 MON_5 MON_6 MON_7 MON_8 MON_9 NOSTR T_FMT */ /* Offset 4 gives the best switch position. */ switch (name[4]) { case '1': if (memEQ(name, "DAY_1", 5)) { /* ^ */#if defined(DAY_1) || (defined(__GNU_LIBRARY__) && defined(_NL_ITEM)) *iv_return = DAY_1; return PERL_constant_ISIV;#else return PERL_constant_NOTDEF;#endif } if (memEQ(name, "MON_1", 5)) { /* ^ */#if defined(MON_1) || (defined(__GNU_LIBRARY__) && defined(_NL_ITEM)) *iv_return = MON_1; return PERL_constant_ISIV;#else return PERL_constant_NOTDEF;#endif } break; case '2': if (memEQ(name, "DAY_2", 5)) { /* ^ */#if defined(DAY_2) || (defined(__GNU_LIBRARY__) && defined(_NL_ITEM)) *iv_return = DAY_2; return PERL_constant_ISIV;#else return PERL_constant_NOTDEF;#endif } if (memEQ(name, "MON_2", 5)) { /* ^ */#if defined(MON_2) || (defined(__GNU_LIBRARY__) && defined(_NL_ITEM)) *iv_return = MON_2; return PERL_constant_ISIV;#else return PERL_constant_NOTDEF;#endif } break; case '3': if (memEQ(name, "DAY_3", 5)) { /* ^ */#if defined(DAY_3) || (defined(__GNU_LIBRARY__) && defined(_NL_ITEM)) *iv_return = DAY_3; return PERL_constant_ISIV;#else return PERL_constant_NOTDEF;#endif } if (memEQ(name, "MON_3", 5)) { /* ^ */#if defined(MON_3) || (defined(__GNU_LIBRARY__) && defined(_NL_ITEM)) *iv_return = MON_3; return PERL_constant_ISIV;#else return PERL_constant_NOTDEF;#endif } break; case '4': if (memEQ(name, "DAY_4", 5)) { /* ^ */#if defined(DAY_4) || (defined(__GNU_LIBRARY__) && defined(_NL_ITEM)) *iv_return = DAY_4; return PERL_constant_ISIV;#else return PERL_constant_NOTDEF;#endif } if (memEQ(name, "MON_4", 5)) { /* ^ */#if defined(MON_4) || (defined(__GNU_LIBRARY__) && defined(_NL_ITEM)) *iv_return = MON_4; return PERL_constant_ISIV;#else return PERL_constant_NOTDEF;#endif } break; case '5': if (memEQ(name, "DAY_5", 5)) { /* ^ */#if defined(DAY_5) || (defined(__GNU_LIBRARY__) && defined(_NL_ITEM)) *iv_return = DAY_5; return PERL_constant_ISIV;#else return PERL_constant_NOTDEF;#endif } if (memEQ(name, "MON_5", 5)) { /* ^ */#if defined(MON_5) || (defined(__GNU_LIBRARY__) && defined(_NL_ITEM)) *iv_return = MON_5; return PERL_constant_ISIV;#else return PERL_constant_NOTDEF;#endif } break; case '6': if (memEQ(name, "DAY_6", 5)) { /* ^ */#if defined(DAY_6) || (defined(__GNU_LIBRARY__) && defined(_NL_ITEM)) *iv_return = DAY_6; return PERL_constant_ISIV;#else return PERL_constant_NOTDEF;#endif } if (memEQ(name, "MON_6", 5)) { /* ^ */#if defined(MON_6) || (defined(__GNU_LIBRARY__) && defined(_NL_ITEM)) *iv_return = MON_6; return PERL_constant_ISIV;#else return PERL_constant_NOTDEF;#endif } break; case '7': if (memEQ(name, "DAY_7", 5)) { /* ^ */#if defined(DAY_7) || (defined(__GNU_LIBRARY__) && defined(_NL_ITEM)) *iv_return = DAY_7; return PERL_constant_ISIV;#else return PERL_constant_NOTDEF;#endif } if (memEQ(name, "MON_7", 5)) { /* ^ */#if defined(MON_7) || (defined(__GNU_LIBRARY__) && defined(_NL_ITEM)) *iv_return = MON_7; return PERL_constant_ISIV;#else return PERL_constant_NOTDEF;#endif } break; case '8': if (memEQ(name, "MON_8", 5)) { /* ^ */#if defined(MON_8) || (defined(__GNU_LIBRARY__) && defined(_NL_ITEM)) *iv_return = MON_8; return PERL_constant_ISIV;#else return PERL_constant_NOTDEF;#endif } break; case '9': if (memEQ(name, "MON_9", 5)) { /* ^ */#if defined(MON_9) || (defined(__GNU_LIBRARY__) && defined(_NL_ITEM)) *iv_return = MON_9; return PERL_constant_ISIV;#else return PERL_constant_NOTDEF;#endif } break; case 'R': if (memEQ(name, "NOSTR", 5)) { /* ^ */#if defined(NOSTR) || (defined(__GNU_LIBRARY__) && defined(_NL_ITEM)) *iv_return = NOSTR; return PERL_constant_ISIV;#else return PERL_constant_NOTDEF;#endif } break; case 'T': if (memEQ(name, "D_FMT", 5)) { /* ^ */#if defined(D_FMT) || (defined(__GNU_LIBRARY__) && defined(_NL_ITEM)) *iv_return = D_FMT; return PERL_constant_ISIV;#else return PERL_constant_NOTDEF;#endif } if (memEQ(name, "T_FMT", 5)) { /* ^ */#if defined(T_FMT) || (defined(__GNU_LIBRARY__) && defined(_NL_ITEM)) *iv_return = T_FMT; return PERL_constant_ISIV;#else return PERL_constant_NOTDEF;#endif } break; } return PERL_constant_NOTFOUND;}static intconstant_6 (pTHX_ const char *name, IV *iv_return) { /* When generated this function returned values for the list of names given here. However, subsequent manual editing may have added or removed some. AM_STR MON_10 MON_11 MON_12 NOEXPR PM_STR YESSTR */ /* Offset 0 gives the best switch position. */ switch (name[0]) { case 'A': if (memEQ(name, "AM_STR", 6)) { /* ^ */#if defined(AM_STR) || (defined(__GNU_LIBRARY__) && defined(_NL_ITEM)) *iv_return = AM_STR; return PERL_constant_ISIV;#else return PERL_constant_NOTDEF;#endif } break; case 'M': if (memEQ(name, "MON_10", 6)) { /* ^ */#if defined(MON_10) || (defined(__GNU_LIBRARY__) && defined(_NL_ITEM)) *iv_return = MON_10; return PERL_constant_ISIV;#else return PERL_constant_NOTDEF;#endif } if (memEQ(name, "MON_11", 6)) { /* ^ */#if defined(MON_11) || (defined(__GNU_LIBRARY__) && defined(_NL_ITEM)) *iv_return = MON_11; return PERL_constant_ISIV;#else return PERL_constant_NOTDEF;#endif } if (memEQ(name, "MON_12", 6)) { /* ^ */#if defined(MON_12) || (defined(__GNU_LIBRARY__) && defined(_NL_ITEM)) *iv_return = MON_12; return PERL_constant_ISIV;#else return PERL_constant_NOTDEF;#endif } break; case 'N': if (memEQ(name, "NOEXPR", 6)) { /* ^ */#if defined(NOEXPR) || (defined(__GNU_LIBRARY__) && defined(_NL_ITEM)) *iv_return = NOEXPR; return PERL_constant_ISIV;#else return PERL_constant_NOTDEF;#endif } break; case 'P': if (memEQ(name, "PM_STR", 6)) { /* ^ */#if defined(PM_STR) || (defined(__GNU_LIBRARY__) && defined(_NL_ITEM)) *iv_return = PM_STR; return PERL_constant_ISIV;#else return PERL_constant_NOTDEF;#endif } break; case 'Y': if (memEQ(name, "YESSTR", 6)) { /* ^ */#if defined(YESSTR) || (defined(__GNU_LIBRARY__) && defined(_NL_ITEM)) *iv_return = YESSTR; return PERL_constant_ISIV;#else return PERL_constant_NOTDEF;#endif } break; } return PERL_constant_NOTFOUND;}static intconstant_7 (pTHX_ const char *name, IV *iv_return) { /* When generated this function returned values for the list of names given here. However, subsequent manual editing may have added or removed some. ABDAY_1 ABDAY_2 ABDAY_3 ABDAY_4 ABDAY_5 ABDAY_6 ABDAY_7 ABMON_1 ABMON_2 ABMON_3 ABMON_4 ABMON_5 ABMON_6 ABMON_7 ABMON_8 ABMON_9 CODESET D_T_FMT THOUSEP YESEXPR */ /* Offset 6 gives the best switch position. */ switch (name[6]) { case '1': if (memEQ(name, "ABDAY_1", 7)) { /* ^ */#if defined(ABDAY_1) || (defined(__GNU_LIBRARY__) && defined(_NL_ITEM)) *iv_return = ABDAY_1; return PERL_constant_ISIV;#else return PERL_constant_NOTDEF;#endif } if (memEQ(name, "ABMON_1", 7)) { /* ^ */#if defined(ABMON_1) || (defined(__GNU_LIBRARY__) && defined(_NL_ITEM)) *iv_return = ABMON_1; return PERL_constant_ISIV;#else return PERL_constant_NOTDEF;#endif } break; case '2': if (memEQ(name, "ABDAY_2", 7)) { /* ^ */#if defined(ABDAY_2) || (defined(__GNU_LIBRARY__) && defined(_NL_ITEM)) *iv_return = ABDAY_2; return PERL_constant_ISIV;#else return PERL_constant_NOTDEF;#endif } if (memEQ(name, "ABMON_2", 7)) { /* ^ */#if defined(ABMON_2) || (defined(__GNU_LIBRARY__) && defined(_NL_ITEM)) *iv_return = ABMON_2; return PERL_constant_ISIV;#else return PERL_constant_NOTDEF;#endif } break; case '3': if (memEQ(name, "ABDAY_3", 7)) { /* ^ */#if defined(ABDAY_3) || (defined(__GNU_LIBRARY__) && defined(_NL_ITEM)) *iv_return = ABDAY_3; return PERL_constant_ISIV;#else return PERL_constant_NOTDEF;#endif } if (memEQ(name, "ABMON_3", 7)) { /* ^ */#if defined(ABMON_3) || (defined(__GNU_LIBRARY__) && defined(_NL_ITEM)) *iv_return = ABMON_3; return PERL_constant_ISIV;#else return PERL_constant_NOTDEF;#endif } break; case '4': if (memEQ(name, "ABDAY_4", 7)) { /* ^ */#if defined(ABDAY_4) || (defined(__GNU_LIBRARY__) && defined(_NL_ITEM)) *iv_return = ABDAY_4; return PERL_constant_ISIV;#else return PERL_constant_NOTDEF;#endif } if (memEQ(name, "ABMON_4", 7)) {
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -