📄 constants.h
字号:
/* ^ */#ifdef DB_OK_BTREE *iv_return = DB_OK_BTREE; return PERL_constant_ISIV;#else return PERL_constant_NOTDEF;#endif } if (memEQ(name, "DB_SEQ_WRAP", 11)) { /* ^ */#ifdef DB_SEQ_WRAP *iv_return = DB_SEQ_WRAP; return PERL_constant_ISIV;#else return PERL_constant_NOTDEF;#endif } break; case 'T': if (memEQ(name, "DB_INIT_TXN", 11)) { /* ^ */#ifdef DB_INIT_TXN *iv_return = DB_INIT_TXN; return PERL_constant_ISIV;#else return PERL_constant_NOTDEF;#endif } if (memEQ(name, "DB_REGISTER", 11)) { /* ^ */#ifdef DB_REGISTER *iv_return = DB_REGISTER; return PERL_constant_ISIV;#else return PERL_constant_NOTDEF;#endif } break; case 'U': if (memEQ(name, "DB_NOTFOUND", 11)) { /* ^ */#ifdef DB_NOTFOUND *iv_return = DB_NOTFOUND; return PERL_constant_ISIV;#else return PERL_constant_NOTDEF;#endif } break; case 'V': if (memEQ(name, "DB_NOSERVER", 11)) { /* ^ */#ifdef DB_NOSERVER *iv_return = DB_NOSERVER; return PERL_constant_ISIV;#else return PERL_constant_NOTDEF;#endif } break; case 'Y': if (memEQ(name, "DB_TXN_SYNC", 11)) { /* ^ */#ifdef DB_TXN_SYNC *iv_return = DB_TXN_SYNC; return PERL_constant_ISIV;#else return PERL_constant_NOTDEF;#endif } if (memEQ(name, "DB_WRNOSYNC", 11)) { /* ^ */#ifdef DB_WRNOSYNC *iv_return = DB_WRNOSYNC; return PERL_constant_ISIV;#else return PERL_constant_NOTDEF;#endif } break; } return PERL_constant_NOTFOUND;}static intconstant_12 (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. DB_ARCH_DATA DB_CDB_ALLDB DB_CL_WRITER DB_DELIMITER DB_DIRECT_DB DB_DSYNC_LOG DB_DUPCURSOR DB_ENV_FATAL DB_FAST_STAT DB_GET_BOTHC DB_GET_RECNO DB_HASHMAGIC DB_INIT_LOCK DB_JOIN_ITEM DB_LOCKMAGIC DB_LOCK_DUMP DB_LOCK_RW_N DB_LOGOLDVER DB_MAX_PAGES DB_MPOOL_NEW DB_NEEDSPLIT DB_NODUPDATA DB_NOLOCKING DB_NORECURSE DB_OVERWRITE DB_PAGEYIELD DB_PAGE_LOCK DB_PERMANENT DB_POSITIONI DB_PRINTABLE DB_QAMOLDVER DB_RPCCLIENT DB_SET_RANGE DB_SET_RECNO DB_SWAPBYTES DB_TEMPORARY DB_TXN_ABORT DB_TXN_APPLY DB_TXN_PRINT DB_WRITELOCK DB_WRITEOPEN DB_XA_CREATE */ /* Offset 3 gives the best switch position. */ switch (name[3]) { case 'A': if (memEQ(name, "DB_ARCH_DATA", 12)) { /* ^ */#ifdef DB_ARCH_DATA *iv_return = DB_ARCH_DATA; return PERL_constant_ISIV;#else return PERL_constant_NOTDEF;#endif } break; case 'C': if (memEQ(name, "DB_CDB_ALLDB", 12)) { /* ^ */#ifdef DB_CDB_ALLDB *iv_return = DB_CDB_ALLDB; return PERL_constant_ISIV;#else return PERL_constant_NOTDEF;#endif } if (memEQ(name, "DB_CL_WRITER", 12)) { /* ^ */#ifdef DB_CL_WRITER *iv_return = DB_CL_WRITER; return PERL_constant_ISIV;#else return PERL_constant_NOTDEF;#endif } break; case 'D': if (memEQ(name, "DB_DELIMITER", 12)) { /* ^ */#ifdef DB_DELIMITER *iv_return = DB_DELIMITER; return PERL_constant_ISIV;#else return PERL_constant_NOTDEF;#endif } if (memEQ(name, "DB_DIRECT_DB", 12)) { /* ^ */#ifdef DB_DIRECT_DB *iv_return = DB_DIRECT_DB; return PERL_constant_ISIV;#else return PERL_constant_NOTDEF;#endif } if (memEQ(name, "DB_DSYNC_LOG", 12)) { /* ^ */#ifdef DB_DSYNC_LOG *iv_return = DB_DSYNC_LOG; return PERL_constant_ISIV;#else return PERL_constant_NOTDEF;#endif } if (memEQ(name, "DB_DUPCURSOR", 12)) { /* ^ */#ifdef DB_DUPCURSOR *iv_return = DB_DUPCURSOR; return PERL_constant_ISIV;#else return PERL_constant_NOTDEF;#endif } break; case 'E': if (memEQ(name, "DB_ENV_FATAL", 12)) { /* ^ */#ifdef DB_ENV_FATAL *iv_return = DB_ENV_FATAL; return PERL_constant_ISIV;#else return PERL_constant_NOTDEF;#endif } break; case 'F': if (memEQ(name, "DB_FAST_STAT", 12)) { /* ^ */#ifdef DB_FAST_STAT *iv_return = DB_FAST_STAT; return PERL_constant_ISIV;#else return PERL_constant_NOTDEF;#endif } break; case 'G': if (memEQ(name, "DB_GET_BOTHC", 12)) { /* ^ */#ifdef DB_GET_BOTHC *iv_return = DB_GET_BOTHC; return PERL_constant_ISIV;#else return PERL_constant_NOTDEF;#endif } if (memEQ(name, "DB_GET_RECNO", 12)) { /* ^ */#ifdef DB_GET_RECNO *iv_return = DB_GET_RECNO; return PERL_constant_ISIV;#else return PERL_constant_NOTDEF;#endif } break; case 'H': if (memEQ(name, "DB_HASHMAGIC", 12)) { /* ^ */#ifdef DB_HASHMAGIC *iv_return = DB_HASHMAGIC; return PERL_constant_ISIV;#else return PERL_constant_NOTDEF;#endif } break; case 'I': if (memEQ(name, "DB_INIT_LOCK", 12)) { /* ^ */#ifdef DB_INIT_LOCK *iv_return = DB_INIT_LOCK; return PERL_constant_ISIV;#else return PERL_constant_NOTDEF;#endif } break; case 'J': if (memEQ(name, "DB_JOIN_ITEM", 12)) { /* ^ */#ifdef DB_JOIN_ITEM *iv_return = DB_JOIN_ITEM; return PERL_constant_ISIV;#else return PERL_constant_NOTDEF;#endif } break; case 'L': if (memEQ(name, "DB_LOCKMAGIC", 12)) { /* ^ */#ifdef DB_LOCKMAGIC *iv_return = DB_LOCKMAGIC; return PERL_constant_ISIV;#else return PERL_constant_NOTDEF;#endif } if (memEQ(name, "DB_LOCK_DUMP", 12)) { /* ^ */#if (DB_VERSION_MAJOR > 2) || \ (DB_VERSION_MAJOR == 2 && DB_VERSION_MINOR > 0) || \ (DB_VERSION_MAJOR == 2 && DB_VERSION_MINOR == 0 && \ DB_VERSION_PATCH >= 3) *iv_return = DB_LOCK_DUMP; return PERL_constant_ISIV;#else return PERL_constant_NOTDEF;#endif } if (memEQ(name, "DB_LOCK_RW_N", 12)) { /* ^ */#ifdef DB_LOCK_RW_N *iv_return = DB_LOCK_RW_N; return PERL_constant_ISIV;#else return PERL_constant_NOTDEF;#endif } if (memEQ(name, "DB_LOGOLDVER", 12)) { /* ^ */#ifdef DB_LOGOLDVER *iv_return = DB_LOGOLDVER; return PERL_constant_ISIV;#else return PERL_constant_NOTDEF;#endif } break; case 'M': if (memEQ(name, "DB_MAX_PAGES", 12)) { /* ^ */#ifdef DB_MAX_PAGES *iv_return = DB_MAX_PAGES; return PERL_constant_ISIV;#else return PERL_constant_NOTDEF;#endif } if (memEQ(name, "DB_MPOOL_NEW", 12)) { /* ^ */#ifdef DB_MPOOL_NEW *iv_return = DB_MPOOL_NEW; return PERL_constant_ISIV;#else return PERL_constant_NOTDEF;#endif } break; case 'N': if (memEQ(name, "DB_NEEDSPLIT", 12)) { /* ^ */#ifdef DB_NEEDSPLIT *iv_return = DB_NEEDSPLIT; return PERL_constant_ISIV;#else return PERL_constant_NOTDEF;#endif } if (memEQ(name, "DB_NODUPDATA", 12)) { /* ^ */#ifdef DB_NODUPDATA *iv_return = DB_NODUPDATA; return PERL_constant_ISIV;#else return PERL_constant_NOTDEF;#endif } if (memEQ(name, "DB_NOLOCKING", 12)) { /* ^ */#ifdef DB_NOLOCKING *iv_return = DB_NOLOCKING; return PERL_constant_ISIV;#else return PERL_constant_NOTDEF;#endif } if (memEQ(name, "DB_NORECURSE", 12)) { /* ^ */#ifdef DB_NORECURSE *iv_return = DB_NORECURSE; return PERL_constant_ISIV;#else return PERL_constant_NOTDEF;#endif } break; case 'O': if (memEQ(name, "DB_OVERWRITE", 12)) { /* ^ */#ifdef DB_OVERWRITE *iv_return = DB_OVERWRITE; return PERL_constant_ISIV;#else return PERL_constant_NOTDEF;#endif } break; case 'P': if (memEQ(name, "DB_PAGEYIELD", 12)) { /* ^ */#ifdef DB_PAGEYIELD *iv_return = DB_PAGEYIELD; return PERL_constant_ISIV;#else return PERL_constant_NOTDEF;#endif } if (memEQ(name, "DB_PAGE_LOCK", 12)) { /* ^ */#ifdef DB_PAGE_LOCK *iv_return = DB_PAGE_LOCK; return PERL_constant_ISIV;#else return PERL_constant_NOTDEF;#endif } if (memEQ(name, "DB_PERMANENT", 12)) { /* ^ */#ifdef DB_PERMANENT *iv_return = DB_PERMANENT; return PERL_constant_ISIV;#else return PERL_constant_NOTDEF;#endif } if (memEQ(name, "DB_POSITIONI", 12)) { /* ^ */#ifdef DB_POSITIONI *iv_return = DB_POSITIONI; return PERL_constant_ISIV;#else return PERL_constant_NOTDEF;#endif } if (memEQ(name, "DB_PRINTABLE", 12)) { /* ^ */#ifdef DB_PRINTABLE *iv_return = DB_PRINTABLE; return PERL_constant_ISIV;#else return PERL_constant_NOTDEF;#endif } break; case 'Q': if (memEQ(name, "DB_QAMOLDVER", 12)) { /* ^ */#ifdef DB_QAMOLDVER *iv_return = DB_QAMOLDVER; return PERL_constant_ISIV;#else return PERL_constant_NOTDEF;#endif } break; case 'R': if (memEQ(name, "DB_RPCCLIENT", 12)) { /* ^ */#ifdef DB_RPCCLIENT *iv_return = DB_RPCCLIENT; return PERL_constant_ISIV;#else return PERL_constant_NOTDEF;#endif } break; case 'S': if (memEQ(name, "DB_SET_RANGE", 12)) { /* ^ */#ifdef DB_SET_RANGE *iv_return = DB_SET_RANGE; return PERL_constant_ISIV;#else return PERL_constant_NOTDEF;#endif } if (memEQ(name, "DB_SET_RECNO", 12)) { /* ^ */#ifdef DB_SET_RECNO *iv_return = DB_SET_RECNO; return PERL_constant_ISIV;#else return PERL_constant_NOTDEF;#endif } if (memEQ(name, "DB_SWAPBYTES", 12)) { /* ^ */#ifdef DB_SWAPBYTES *iv_return = DB_SWAPBYTES; return PERL_constant_ISIV;#else return PERL_constant_NOTDEF;#endif } break; case 'T': if (memEQ(name, "DB_TEMPORARY", 12)) { /* ^ */#ifdef DB_TEMPORARY *iv_return = DB_TEMPORARY; return PERL_constant_ISIV;#else return PERL_constant_NOTDEF;#endif } if (memEQ(name, "DB_TXN_ABORT", 12)) { /* ^ */#if (DB_VERSION_MAJOR > 3) || \ (DB_VERSION_MAJOR == 3 && DB_VERSION_MINOR > 1) || \ (DB_VERSION_MAJOR == 3 && DB_VERSION_MINOR == 1 && \ DB_VERSION_PATCH >= 14) *iv_return = DB_TXN_ABORT; return PERL_constant_ISIV;#else return PERL_constant_NOTDEF;#endif } if (memEQ(name, "DB_TXN_APPLY", 12)) { /* ^ */#if (DB_VERSION_MAJOR > 4) || \ (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR > 0) || \ (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR == 0 && \ DB_VERSION_PATCH >= 14) *iv_return = DB_TXN_APPLY; return PERL_constant_ISIV;#else return PERL_constant_NOTDEF;#endif } if (memEQ(name, "DB_TXN_PRINT", 12)) { /* ^ */#if (DB_VERSION_MAJOR > 4) || \ (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR > 1) || \ (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR == 1 && \ DB_VERSION_PATCH >= 24) *iv_return = DB_TXN_PRINT; return PERL_constant_ISIV;#else return PERL_constant_NOTDEF;#endif } break; case 'W': if (memEQ(name, "DB_WRITELOCK", 12)) { /* ^ */#ifdef DB_WRITELOCK *iv_return = DB_WRITELOCK; return PERL_constant_ISIV;#else return PERL_constant_NOTDEF;#endif } if (memEQ(name, "DB_WRITEOPEN", 12)) { /* ^ */#ifdef DB_WRITEOPEN *iv_return = DB_WRITEOPEN; return PERL_constant_ISIV;#else return PERL_constant_NOTDEF;#endif } break; case 'X':
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -