⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 constants.h

📁 MySQL数据库开发源码 值得一看哦
💻 H
📖 第 1 页 / 共 5 页
字号:
    if (memEQ(name, "DB_AUTO_COMMIT", 14)) {    /*                        ^           */#ifdef DB_AUTO_COMMIT      *iv_return = DB_AUTO_COMMIT;      return PERL_constant_ISIV;#else      return PERL_constant_NOTDEF;#endif    }    if (memEQ(name, "DB_JOIN_NOSORT", 14)) {    /*                        ^           */#ifdef DB_JOIN_NOSORT      *iv_return = DB_JOIN_NOSORT;      return PERL_constant_ISIV;#else      return PERL_constant_NOTDEF;#endif    }    if (memEQ(name, "DB_LOCK_NOWAIT", 14)) {    /*                        ^           */#ifdef DB_LOCK_NOWAIT      *iv_return = DB_LOCK_NOWAIT;      return PERL_constant_ISIV;#else      return PERL_constant_NOTDEF;#endif    }    if (memEQ(name, "DB_RUNRECOVERY", 14)) {    /*                        ^           */#ifdef DB_RUNRECOVERY      *iv_return = DB_RUNRECOVERY;      return PERL_constant_ISIV;#else      return PERL_constant_NOTDEF;#endif    }    break;  case 'P':    if (memEQ(name, "DB_ENV_APPINIT", 14)) {    /*                        ^           */#ifdef DB_ENV_APPINIT      *iv_return = DB_ENV_APPINIT;      return PERL_constant_ISIV;#else      return PERL_constant_NOTDEF;#endif    }    if (memEQ(name, "DB_ENV_NOPANIC", 14)) {    /*                        ^           */#ifdef DB_ENV_NOPANIC      *iv_return = DB_ENV_NOPANIC;      return PERL_constant_ISIV;#else      return PERL_constant_NOTDEF;#endif    }    break;  case 'R':    if (memEQ(name, "DB_HASHVERSION", 14)) {    /*                        ^           */#ifdef DB_HASHVERSION      *iv_return = DB_HASHVERSION;      return PERL_constant_ISIV;#else      return PERL_constant_NOTDEF;#endif    }    if (memEQ(name, "DB_LOCKVERSION", 14)) {    /*                        ^           */#ifdef DB_LOCKVERSION      *iv_return = DB_LOCKVERSION;      return PERL_constant_ISIV;#else      return PERL_constant_NOTDEF;#endif    }    if (memEQ(name, "DB_OLD_VERSION", 14)) {    /*                        ^           */#ifdef DB_OLD_VERSION      *iv_return = DB_OLD_VERSION;      return PERL_constant_ISIV;#else      return PERL_constant_NOTDEF;#endif    }    break;  case 'T':    if (memEQ(name, "DB_ENCRYPT_AES", 14)) {    /*                        ^           */#ifdef DB_ENCRYPT_AES      *iv_return = DB_ENCRYPT_AES;      return PERL_constant_ISIV;#else      return PERL_constant_NOTDEF;#endif    }    break;  case 'U':    if (memEQ(name, "DB_WRITECURSOR", 14)) {    /*                        ^           */#ifdef DB_WRITECURSOR      *iv_return = DB_WRITECURSOR;      return PERL_constant_ISIV;#else      return PERL_constant_NOTDEF;#endif    }    break;  case 'V':    if (memEQ(name, "DB_EID_INVALID", 14)) {    /*                        ^           */#ifdef DB_EID_INVALID      *iv_return = DB_EID_INVALID;      return PERL_constant_ISIV;#else      return PERL_constant_NOTDEF;#endif    }    if (memEQ(name, "DB_USE_ENVIRON", 14)) {    /*                        ^           */#ifdef DB_USE_ENVIRON      *iv_return = DB_USE_ENVIRON;      return PERL_constant_ISIV;#else      return PERL_constant_NOTDEF;#endif    }    break;  case 'W':    if (memEQ(name, "DB_LOCK_SWITCH", 14)) {    /*                        ^           */#ifdef DB_LOCK_SWITCH      *iv_return = DB_LOCK_SWITCH;      return PERL_constant_ISIV;#else      return PERL_constant_NOTDEF;#endif    }    if (memEQ(name, "DB_NOOVERWRITE", 14)) {    /*                        ^           */#ifdef DB_NOOVERWRITE      *iv_return = DB_NOOVERWRITE;      return PERL_constant_ISIV;#else      return PERL_constant_NOTDEF;#endif    }    if (memEQ(name, "DB_REP_NEWSITE", 14)) {    /*                        ^           */#ifdef DB_REP_NEWSITE      *iv_return = DB_REP_NEWSITE;      return PERL_constant_ISIV;#else      return PERL_constant_NOTDEF;#endif    }    break;  case 'X':    if (memEQ(name, "DB_LOCK_EXPIRE", 14)) {    /*                        ^           */#ifdef DB_LOCK_EXPIRE      *iv_return = DB_LOCK_EXPIRE;      return PERL_constant_ISIV;#else      return PERL_constant_NOTDEF;#endif    }    break;  case '_':    if (memEQ(name, "DB_CHKSUM_SHA1", 14)) {    /*                        ^           */#ifdef DB_CHKSUM_SHA1      *iv_return = DB_CHKSUM_SHA1;      return PERL_constant_ISIV;#else      return PERL_constant_NOTDEF;#endif    }    if (memEQ(name, "DB_HANDLE_LOCK", 14)) {    /*                        ^           */#ifdef DB_HANDLE_LOCK      *iv_return = DB_HANDLE_LOCK;      return PERL_constant_ISIV;#else      return PERL_constant_NOTDEF;#endif    }    if (memEQ(name, "DB_RECORD_LOCK", 14)) {    /*                        ^           */#ifdef DB_RECORD_LOCK      *iv_return = DB_RECORD_LOCK;      return PERL_constant_ISIV;#else      return PERL_constant_NOTDEF;#endif    }    if (memEQ(name, "DB_REGION_ANON", 14)) {    /*                        ^           */#ifdef DB_REGION_ANON      *iv_return = DB_REGION_ANON;      return PERL_constant_ISIV;#else      return PERL_constant_NOTDEF;#endif    }    if (memEQ(name, "DB_REGION_INIT", 14)) {    /*                        ^           */#ifdef DB_REGION_INIT      *iv_return = DB_REGION_INIT;      return PERL_constant_ISIV;#else      return PERL_constant_NOTDEF;#endif    }    if (memEQ(name, "DB_REGION_NAME", 14)) {    /*                        ^           */#ifdef DB_REGION_NAME      *iv_return = DB_REGION_NAME;      return PERL_constant_ISIV;#else      return PERL_constant_NOTDEF;#endif    }    break;  }  return PERL_constant_NOTFOUND;}static intconstant_15 (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_APPLY_LOGREG DB_BTREEVERSION DB_CONSUME_WAIT DB_ENV_LOCKDOWN     DB_ENV_PANIC_OK DB_ENV_YIELDCPU DB_LOCK_DEFAULT DB_LOCK_INHERIT     DB_LOCK_NOTHELD DB_LOCK_PUT_ALL DB_LOCK_PUT_OBJ DB_LOCK_TIMEOUT     DB_LOCK_UPGRADE DB_MPOOL_CREATE DB_MPOOL_EXTENT DB_MULTIPLE_KEY     DB_OPFLAGS_MASK DB_ORDERCHKONLY DB_PRIORITY_LOW DB_REGION_MAGIC     DB_REP_LOGSONLY DB_REP_OUTDATED DB_SURPRISE_KID DB_TEST_POSTLOG     DB_TEST_PREOPEN DB_TXN_GETPGNOS DB_TXN_LOCK_2PL DB_TXN_LOG_MASK     DB_TXN_LOG_REDO DB_TXN_LOG_UNDO DB_VERIFY_FATAL */  /* Offset 10 gives the best switch position.  */  switch (name[10]) {  case 'D':    if (memEQ(name, "DB_REP_OUTDATED", 15)) {    /*                         ^           */#ifdef DB_REP_OUTDATED      *iv_return = DB_REP_OUTDATED;      return PERL_constant_ISIV;#else      return PERL_constant_NOTDEF;#endif    }    break;  case 'E':    if (memEQ(name, "DB_MULTIPLE_KEY", 15)) {    /*                         ^           */#ifdef DB_MULTIPLE_KEY      *iv_return = DB_MULTIPLE_KEY;      return PERL_constant_ISIV;#else      return PERL_constant_NOTDEF;#endif    }    if (memEQ(name, "DB_SURPRISE_KID", 15)) {    /*                         ^           */#ifdef DB_SURPRISE_KID      *iv_return = DB_SURPRISE_KID;      return PERL_constant_ISIV;#else      return PERL_constant_NOTDEF;#endif    }    if (memEQ(name, "DB_TEST_PREOPEN", 15)) {    /*                         ^           */#ifdef DB_TEST_PREOPEN      *iv_return = DB_TEST_PREOPEN;      return PERL_constant_ISIV;#else      return PERL_constant_NOTDEF;#endif    }    break;  case 'F':    if (memEQ(name, "DB_LOCK_DEFAULT", 15)) {    /*                         ^           */#ifdef DB_LOCK_DEFAULT      *iv_return = DB_LOCK_DEFAULT;      return PERL_constant_ISIV;#else      return PERL_constant_NOTDEF;#endif    }    if (memEQ(name, "DB_VERIFY_FATAL", 15)) {    /*                         ^           */#ifdef DB_VERIFY_FATAL      *iv_return = DB_VERIFY_FATAL;      return PERL_constant_ISIV;#else      return PERL_constant_NOTDEF;#endif    }    break;  case 'G':    if (memEQ(name, "DB_LOCK_UPGRADE", 15)) {    /*                         ^           */#ifdef DB_LOCK_UPGRADE      *iv_return = DB_LOCK_UPGRADE;      return PERL_constant_ISIV;#else      return PERL_constant_NOTDEF;#endif    }    break;  case 'H':    if (memEQ(name, "DB_LOCK_INHERIT", 15)) {    /*                         ^           */#if (DB_VERSION_MAJOR > 2) || \    (DB_VERSION_MAJOR == 2 && DB_VERSION_MINOR > 7) || \    (DB_VERSION_MAJOR == 2 && DB_VERSION_MINOR == 7 && \     DB_VERSION_PATCH >= 1)      *iv_return = DB_LOCK_INHERIT;      return PERL_constant_ISIV;#else      return PERL_constant_NOTDEF;#endif    }    break;  case 'I':    if (memEQ(name, "DB_ENV_PANIC_OK", 15)) {    /*                         ^           */#ifdef DB_ENV_PANIC_OK      *iv_return = DB_ENV_PANIC_OK;      return PERL_constant_ISIV;#else      return PERL_constant_NOTDEF;#endif    }    break;  case 'K':    if (memEQ(name, "DB_ENV_LOCKDOWN", 15)) {    /*                         ^           */#ifdef DB_ENV_LOCKDOWN      *iv_return = DB_ENV_LOCKDOWN;      return PERL_constant_ISIV;#else      return PERL_constant_NOTDEF;#endif    }    if (memEQ(name, "DB_ORDERCHKONLY", 15)) {    /*                         ^           */#ifdef DB_ORDERCHKONLY      *iv_return = DB_ORDERCHKONLY;      return PERL_constant_ISIV;#else      return PERL_constant_NOTDEF;#endif    }    if (memEQ(name, "DB_TXN_LOCK_2PL", 15)) {    /*                         ^           */#ifdef DB_TXN_LOCK_2PL      *iv_return = DB_TXN_LOCK_2PL;      return PERL_constant_ISIV;#else      return PERL_constant_NOTDEF;#endif    }    break;  case 'L':    if (memEQ(name, "DB_ENV_YIELDCPU", 15)) {    /*                         ^           */#ifdef DB_ENV_YIELDCPU      *iv_return = DB_ENV_YIELDCPU;      return PERL_constant_ISIV;#else      return PERL_constant_NOTDEF;#endif    }    break;  case 'M':    if (memEQ(name, "DB_LOCK_TIMEOUT", 15)) {    /*                         ^           */#if (DB_VERSION_MAJOR > 4) || \    (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR > 0) || \    (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR == 0 && \     DB_VERSION_PATCH >= 7)      *iv_return = DB_LOCK_TIMEOUT;      return PERL_constant_ISIV;#else      return PERL_constant_NOTDEF;#endif    }    if (memEQ(name, "DB_REGION_MAGIC", 15)) {    /*                         ^           */#ifdef DB_REGION_MAGIC      *iv_return = DB_REGION_MAGIC;      return PERL_constant_ISIV;#else      return PERL_constant_NOTDEF;#endif    }    break;  case 'O':    if (memEQ(name, "DB_APPLY_LOGREG", 15)) {    /*                         ^           */#ifdef DB_APPLY_LOGREG      *iv_return = DB_APPLY_LOGREG;      return PERL_constant_ISIV;#else      return PERL_constant_NOTDEF;#endif    }    break;  case 'P':    if (memEQ(name, "DB_TXN_GETPGNOS", 15)) {    /*                         ^           */#if (DB_VERSION_MAJOR > 4) || \    (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR > 1) || \    (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR == 1 && \     DB_VERSION_PATCH >= 17)      *iv_return = DB_TXN_GETPGNOS;      return PERL_constant_ISIV;#else      return PERL_constant_NOTDEF;#endif    }    break;  case 'R':    if (memEQ(name, "DB_BTREEVERSION", 15)) {    /*                         ^           */#ifdef DB_BTREEVERSION      *iv_return = DB_BTREEVERSION;      return PERL_constant_ISIV;#else      return PERL_constant_NOTDEF;#endif    }    if (memEQ(name, "DB_MPOOL_CREATE", 15)) {    /*                         ^           */#ifdef DB_MPOOL_CREATE      *iv_return = DB_MPOOL_CREATE;      return PERL_constant_ISIV;#else      return PERL_constant_NOTDEF;#endif    }    break;  case 'S':    if (memEQ(name, "DB_REP_LOGSONLY", 15)) {    /*                         ^           */#ifdef DB_REP_LOGSONLY      *iv_return = DB_REP_LOGSONLY;      return PERL_constant_ISIV;#else      return PERL_constant_NOTDEF;#endif    }    if (memEQ(name, "DB_TEST_POSTLOG", 15)) {    /*                         ^           */#ifdef DB_TEST_POSTLOG      *iv_return = DB_TEST_POSTLOG;      return PERL_constant_ISIV;#else      return PERL_constant_NOTDEF;#endif    }    break;  case 'T':    if (memEQ(name, "DB_LOCK_NOTHELD", 15)) {    /*                         ^           */#ifdef DB_LOCK_NOTHELD      *iv_return = DB_LOCK_NOTHELD;      return PERL_constant_ISIV;#else      return PERL_constant_NOTDEF;#endif    }    if (memEQ(name, "DB_LOCK_PUT_ALL", 15)) {    /*                         ^           */#if (DB_VERSION_MAJOR > 2) || \    (DB_VERSION_MAJOR == 2 && DB_VERSION_MINOR > 0) || \    (DB_VERSION_MAJOR == 2 && DB_VERSION_MINOR == 0 && \     DB_VERSION_PATCH >= 0)      *iv_return = DB_LOCK_PUT_ALL;      return PERL_constant_ISIV;#else      return PERL_constant_NOTDEF;#endif    }    if (memEQ(name, "DB_LOCK_PUT_OBJ", 15)) {    /*                         ^           */#if (DB_VERSION_MAJOR > 2) || \    (DB_VERSION_MAJOR == 2 && DB_VERSION_MINOR > 0) || \    (DB_VERSION_MAJOR == 2 && DB_VERSION_MINOR == 0 && \     DB_VERSION_PATCH >= 0)      *iv_return = DB_LOCK_PUT_OBJ;      return PERL_constant_ISIV;#else      return PERL_constant_NOTDEF;#endif    }    break;  case 'X':    if (memEQ(name, "DB_MPOOL_EXTENT", 15)) {    /*                         ^           */#ifdef DB_MPOOL_EXTENT      *iv_return = DB_MPOOL_EXTENT;      return PERL_constant_ISIV;#else      return PERL_constant_NOTDEF;#endif    }    break;  case 'Y':    if (memEQ(name, "DB_PR

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -