📄 constants.h
字号:
case 'L': if (memEQ(name, "DB_DELETED", 10)) { /* ^ */#ifdef DB_DELETED *iv_return = DB_DELETED; return PERL_constant_ISIV;#else return PERL_constant_NOTDEF;#endif } if (memEQ(name, "DB_SALVAGE", 10)) { /* ^ */#ifdef DB_SALVAGE *iv_return = DB_SALVAGE; return PERL_constant_ISIV;#else return PERL_constant_NOTDEF;#endif } break; case 'M': if (memEQ(name, "DB_TIMEOUT", 10)) { /* ^ */#ifdef DB_TIMEOUT *iv_return = DB_TIMEOUT; return PERL_constant_ISIV;#else return PERL_constant_NOTDEF;#endif } break; case 'N': if (memEQ(name, "DB_CONSUME", 10)) { /* ^ */#ifdef DB_CONSUME *iv_return = DB_CONSUME; return PERL_constant_ISIV;#else return PERL_constant_NOTDEF;#endif } if (memEQ(name, "DB_TXN_CKP", 10)) { /* ^ */#ifdef DB_TXN_CKP *iv_return = DB_TXN_CKP; return PERL_constant_ISIV;#else return PERL_constant_NOTDEF;#endif } break; case 'O': if (memEQ(name, "DB_INORDER", 10)) { /* ^ */#ifdef DB_INORDER *iv_return = DB_INORDER; return PERL_constant_ISIV;#else return PERL_constant_NOTDEF;#endif } break; case 'P': if (memEQ(name, "DB_DUPSORT", 10)) { /* ^ */#ifdef DB_DUPSORT *iv_return = DB_DUPSORT; return PERL_constant_ISIV;#else return PERL_constant_NOTDEF;#endif } if (memEQ(name, "DB_NOPANIC", 10)) { /* ^ */#ifdef DB_NOPANIC *iv_return = DB_NOPANIC; return PERL_constant_ISIV;#else return PERL_constant_NOTDEF;#endif } break; case 'Q': if (memEQ(name, "DB_SEQ_DEC", 10)) { /* ^ */#ifdef DB_SEQ_DEC *iv_return = DB_SEQ_DEC; return PERL_constant_ISIV;#else return PERL_constant_NOTDEF;#endif } if (memEQ(name, "DB_SEQ_INC", 10)) { /* ^ */#ifdef DB_SEQ_INC *iv_return = DB_SEQ_INC; return PERL_constant_ISIV;#else return PERL_constant_NOTDEF;#endif } break; case 'R': if (memEQ(name, "DB_CURRENT", 10)) { /* ^ */#ifdef DB_CURRENT *iv_return = DB_CURRENT; return PERL_constant_ISIV;#else return PERL_constant_NOTDEF;#endif } break; case 'V': if (memEQ(name, "DB_ENV_CDB", 10)) { /* ^ */#ifdef DB_ENV_CDB *iv_return = DB_ENV_CDB; return PERL_constant_ISIV;#else return PERL_constant_NOTDEF;#endif } if (memEQ(name, "DB_ENV_TXN", 10)) { /* ^ */#ifdef DB_ENV_TXN *iv_return = DB_ENV_TXN; return PERL_constant_ISIV;#else return PERL_constant_NOTDEF;#endif } break; case 'Y': if (memEQ(name, "DB_KEYLAST", 10)) { /* ^ */#ifdef DB_KEYLAST *iv_return = DB_KEYLAST; return PERL_constant_ISIV;#else return PERL_constant_NOTDEF;#endif } break; case '_': if (memEQ(name, "DB_OK_HASH", 10)) { /* ^ */#ifdef DB_OK_HASH *iv_return = DB_OK_HASH; return PERL_constant_ISIV;#else return PERL_constant_NOTDEF;#endif } if (memEQ(name, "DB_PR_PAGE", 10)) { /* ^ */#ifdef DB_PR_PAGE *iv_return = DB_PR_PAGE; return PERL_constant_ISIV;#else return PERL_constant_NOTDEF;#endif } break; } return PERL_constant_NOTFOUND;}static intconstant_11 (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_APP_INIT DB_ARCH_ABS DB_ARCH_LOG DB_DEGREE_2 DB_FILEOPEN DB_FIXEDLEN DB_GET_BOTH DB_INIT_CDB DB_INIT_LOG DB_INIT_REP DB_INIT_TXN DB_KEYEMPTY DB_KEYEXIST DB_KEYFIRST DB_LOCKDOWN DB_LOCK_GET DB_LOCK_PUT DB_LOGMAGIC DB_LOG_DISK DB_LOG_PERM DB_MULTIPLE DB_NEXT_DUP DB_NOSERVER DB_NOTFOUND DB_OK_BTREE DB_OK_QUEUE DB_OK_RECNO DB_POSITION DB_QAMMAGIC DB_REGISTER DB_RENUMBER DB_SEQ_WRAP DB_SNAPSHOT DB_STAT_ALL DB_TRUNCATE DB_TXNMAGIC DB_TXN_LOCK DB_TXN_REDO DB_TXN_SYNC DB_TXN_UNDO DB_WRNOSYNC DB_YIELDCPU */ /* Offset 8 gives the best switch position. */ switch (name[8]) { case 'A': if (memEQ(name, "DB_ARCH_ABS", 11)) { /* ^ */#ifdef DB_ARCH_ABS *iv_return = DB_ARCH_ABS; return PERL_constant_ISIV;#else return PERL_constant_NOTDEF;#endif } if (memEQ(name, "DB_STAT_ALL", 11)) { /* ^ */#ifdef DB_STAT_ALL *iv_return = DB_STAT_ALL; return PERL_constant_ISIV;#else return PERL_constant_NOTDEF;#endif } if (memEQ(name, "DB_TRUNCATE", 11)) { /* ^ */#ifdef DB_TRUNCATE *iv_return = DB_TRUNCATE; return PERL_constant_ISIV;#else return PERL_constant_NOTDEF;#endif } break; case 'B': if (memEQ(name, "DB_RENUMBER", 11)) { /* ^ */#ifdef DB_RENUMBER *iv_return = DB_RENUMBER; return PERL_constant_ISIV;#else return PERL_constant_NOTDEF;#endif } break; case 'C': if (memEQ(name, "DB_INIT_CDB", 11)) { /* ^ */#ifdef DB_INIT_CDB *iv_return = DB_INIT_CDB; return PERL_constant_ISIV;#else return PERL_constant_NOTDEF;#endif } if (memEQ(name, "DB_OK_RECNO", 11)) { /* ^ */#ifdef DB_OK_RECNO *iv_return = DB_OK_RECNO; return PERL_constant_ISIV;#else return PERL_constant_NOTDEF;#endif } if (memEQ(name, "DB_YIELDCPU", 11)) { /* ^ */#ifdef DB_YIELDCPU *iv_return = DB_YIELDCPU; return PERL_constant_ISIV;#else return PERL_constant_NOTDEF;#endif } break; case 'D': if (memEQ(name, "DB_NEXT_DUP", 11)) { /* ^ */#ifdef DB_NEXT_DUP *iv_return = DB_NEXT_DUP; return PERL_constant_ISIV;#else return PERL_constant_NOTDEF;#endif } break; case 'E': if (memEQ(name, "DB_DEGREE_2", 11)) { /* ^ */#ifdef DB_DEGREE_2 *iv_return = DB_DEGREE_2; return PERL_constant_ISIV;#else return PERL_constant_NOTDEF;#endif } if (memEQ(name, "DB_LOG_PERM", 11)) { /* ^ */#ifdef DB_LOG_PERM *iv_return = DB_LOG_PERM; return PERL_constant_ISIV;#else return PERL_constant_NOTDEF;#endif } if (memEQ(name, "DB_OK_QUEUE", 11)) { /* ^ */#ifdef DB_OK_QUEUE *iv_return = DB_OK_QUEUE; return PERL_constant_ISIV;#else return PERL_constant_NOTDEF;#endif } if (memEQ(name, "DB_TXN_REDO", 11)) { /* ^ */#ifdef DB_TXN_REDO *iv_return = DB_TXN_REDO; return PERL_constant_ISIV;#else return PERL_constant_NOTDEF;#endif } break; case 'G': if (memEQ(name, "DB_LOCK_GET", 11)) { /* ^ */#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_GET; return PERL_constant_ISIV;#else return PERL_constant_NOTDEF;#endif } if (memEQ(name, "DB_LOGMAGIC", 11)) { /* ^ */#ifdef DB_LOGMAGIC *iv_return = DB_LOGMAGIC; return PERL_constant_ISIV;#else return PERL_constant_NOTDEF;#endif } if (memEQ(name, "DB_QAMMAGIC", 11)) { /* ^ */#ifdef DB_QAMMAGIC *iv_return = DB_QAMMAGIC; return PERL_constant_ISIV;#else return PERL_constant_NOTDEF;#endif } if (memEQ(name, "DB_TXNMAGIC", 11)) { /* ^ */#ifdef DB_TXNMAGIC *iv_return = DB_TXNMAGIC; return PERL_constant_ISIV;#else return PERL_constant_NOTDEF;#endif } break; case 'H': if (memEQ(name, "DB_SNAPSHOT", 11)) { /* ^ */#ifdef DB_SNAPSHOT *iv_return = DB_SNAPSHOT; return PERL_constant_ISIV;#else return PERL_constant_NOTDEF;#endif } break; case 'I': if (memEQ(name, "DB_KEYEXIST", 11)) { /* ^ */#ifdef DB_KEYEXIST *iv_return = DB_KEYEXIST; return PERL_constant_ISIV;#else return PERL_constant_NOTDEF;#endif } if (memEQ(name, "DB_LOG_DISK", 11)) { /* ^ */#ifdef DB_LOG_DISK *iv_return = DB_LOG_DISK; return PERL_constant_ISIV;#else return PERL_constant_NOTDEF;#endif } if (memEQ(name, "DB_POSITION", 11)) { /* ^ */#ifdef DB_POSITION *iv_return = DB_POSITION; return PERL_constant_ISIV;#else return PERL_constant_NOTDEF;#endif } break; case 'L': if (memEQ(name, "DB_ARCH_LOG", 11)) { /* ^ */#ifdef DB_ARCH_LOG *iv_return = DB_ARCH_LOG; return PERL_constant_ISIV;#else return PERL_constant_NOTDEF;#endif } if (memEQ(name, "DB_FIXEDLEN", 11)) { /* ^ */#ifdef DB_FIXEDLEN *iv_return = DB_FIXEDLEN; return PERL_constant_ISIV;#else return PERL_constant_NOTDEF;#endif } if (memEQ(name, "DB_INIT_LOG", 11)) { /* ^ */#ifdef DB_INIT_LOG *iv_return = DB_INIT_LOG; return PERL_constant_ISIV;#else return PERL_constant_NOTDEF;#endif } break; case 'N': if (memEQ(name, "DB_APP_INIT", 11)) { /* ^ */#ifdef DB_APP_INIT *iv_return = DB_APP_INIT; return PERL_constant_ISIV;#else return PERL_constant_NOTDEF;#endif } if (memEQ(name, "DB_TXN_UNDO", 11)) { /* ^ */#ifdef DB_TXN_UNDO *iv_return = DB_TXN_UNDO; return PERL_constant_ISIV;#else return PERL_constant_NOTDEF;#endif } break; case 'O': if (memEQ(name, "DB_GET_BOTH", 11)) { /* ^ */#ifdef DB_GET_BOTH *iv_return = DB_GET_BOTH; return PERL_constant_ISIV;#else return PERL_constant_NOTDEF;#endif } if (memEQ(name, "DB_LOCKDOWN", 11)) { /* ^ */#ifdef DB_LOCKDOWN *iv_return = DB_LOCKDOWN; return PERL_constant_ISIV;#else return PERL_constant_NOTDEF;#endif } if (memEQ(name, "DB_TXN_LOCK", 11)) { /* ^ */#ifdef DB_TXN_LOCK *iv_return = DB_TXN_LOCK; return PERL_constant_ISIV;#else return PERL_constant_NOTDEF;#endif } break; case 'P': if (memEQ(name, "DB_FILEOPEN", 11)) { /* ^ */#ifdef DB_FILEOPEN *iv_return = DB_FILEOPEN; return PERL_constant_ISIV;#else return PERL_constant_NOTDEF;#endif } if (memEQ(name, "DB_KEYEMPTY", 11)) { /* ^ */#ifdef DB_KEYEMPTY *iv_return = DB_KEYEMPTY; return PERL_constant_ISIV;#else return PERL_constant_NOTDEF;#endif } if (memEQ(name, "DB_LOCK_PUT", 11)) { /* ^ */#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_PUT; return PERL_constant_ISIV;#else return PERL_constant_NOTDEF;#endif } if (memEQ(name, "DB_MULTIPLE", 11)) { /* ^ */#ifdef DB_MULTIPLE *iv_return = DB_MULTIPLE; return PERL_constant_ISIV;#else return PERL_constant_NOTDEF;#endif } break; case 'R': if (memEQ(name, "DB_INIT_REP", 11)) { /* ^ */#ifdef DB_INIT_REP *iv_return = DB_INIT_REP; return PERL_constant_ISIV;#else return PERL_constant_NOTDEF;#endif } if (memEQ(name, "DB_KEYFIRST", 11)) { /* ^ */#ifdef DB_KEYFIRST *iv_return = DB_KEYFIRST; return PERL_constant_ISIV;#else return PERL_constant_NOTDEF;#endif } if (memEQ(name, "DB_OK_BTREE", 11)) {
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -