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

📄 constants.h

📁 BerkeleyDB源码
💻 H
📖 第 1 页 / 共 5 页
字号:
    if (memEQ(name, "DB_XA_CREATE", 12)) {    /*                  ^               */#ifdef DB_XA_CREATE      *iv_return = DB_XA_CREATE;      return PERL_constant_ISIV;#else      return PERL_constant_NOTDEF;#endif    }    break;  }  return PERL_constant_NOTFOUND;}static intconstant_13 (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_AGGRESSIVE DB_BTREEMAGIC DB_CHECKPOINT DB_DIRECT_LOG DB_DIRTY_READ     DB_DONOTINDEX DB_ENV_CREATE DB_ENV_NOMMAP DB_ENV_THREAD DB_FREE_SPACE     DB_HASHOLDVER DB_INCOMPLETE DB_INIT_MPOOL DB_LOCK_ABORT DB_LOCK_NORUN     DB_LOCK_RIW_N DB_LOCK_TRADE DB_LOGVERSION DB_LOG_CHKPNT DB_LOG_COMMIT     DB_LOG_LOCKED DB_LOG_NOCOPY DB_LOG_RESEND DB_MPOOL_FREE DB_MPOOL_LAST     DB_MUTEXDEBUG DB_MUTEXLOCKS DB_NEXT_NODUP DB_NOORDERCHK DB_PREV_NODUP     DB_PR_HEADERS DB_QAMVERSION DB_RDWRMASTER DB_REGISTERED DB_REP_CLIENT     DB_REP_CREATE DB_REP_IGNORE DB_REP_ISPERM DB_REP_MASTER DB_SEQUENTIAL     DB_STAT_CLEAR DB_SYSTEM_MEM DB_TXNVERSION DB_TXN_NOSYNC DB_TXN_NOWAIT     DB_VERIFY_BAD DB_debug_FLAG DB_user_BEGIN REP_CONF_BULK */  /* Offset 8 gives the best switch position.  */  switch (name[8]) {  case 'A':    if (memEQ(name, "DB_LOCK_ABORT", 13)) {    /*                       ^           */#ifdef DB_LOCK_ABORT      *iv_return = DB_LOCK_ABORT;      return PERL_constant_ISIV;#else      return PERL_constant_NOTDEF;#endif    }    if (memEQ(name, "DB_PR_HEADERS", 13)) {    /*                       ^           */#ifdef DB_PR_HEADERS      *iv_return = DB_PR_HEADERS;      return PERL_constant_ISIV;#else      return PERL_constant_NOTDEF;#endif    }    if (memEQ(name, "DB_RDWRMASTER", 13)) {    /*                       ^           */#ifdef DB_RDWRMASTER      *iv_return = DB_RDWRMASTER;      return PERL_constant_ISIV;#else      return PERL_constant_NOTDEF;#endif    }    if (memEQ(name, "DB_REP_MASTER", 13)) {    /*                       ^           */#ifdef DB_REP_MASTER      *iv_return = DB_REP_MASTER;      return PERL_constant_ISIV;#else      return PERL_constant_NOTDEF;#endif    }    break;  case 'B':    if (memEQ(name, "DB_user_BEGIN", 13)) {    /*                       ^           */#ifdef DB_user_BEGIN      *iv_return = DB_user_BEGIN;      return PERL_constant_ISIV;#else      return PERL_constant_NOTDEF;#endif    }    break;  case 'C':    if (memEQ(name, "DB_STAT_CLEAR", 13)) {    /*                       ^           */#ifdef DB_STAT_CLEAR      *iv_return = DB_STAT_CLEAR;      return PERL_constant_ISIV;#else      return PERL_constant_NOTDEF;#endif    }    break;  case 'D':    if (memEQ(name, "DB_MUTEXDEBUG", 13)) {    /*                       ^           */#ifdef DB_MUTEXDEBUG      *iv_return = DB_MUTEXDEBUG;      return PERL_constant_ISIV;#else      return PERL_constant_NOTDEF;#endif    }    break;  case 'E':    if (memEQ(name, "DB_LOG_RESEND", 13)) {    /*                       ^           */#ifdef DB_LOG_RESEND      *iv_return = DB_LOG_RESEND;      return PERL_constant_ISIV;#else      return PERL_constant_NOTDEF;#endif    }    if (memEQ(name, "DB_NOORDERCHK", 13)) {    /*                       ^           */#ifdef DB_NOORDERCHK      *iv_return = DB_NOORDERCHK;      return PERL_constant_ISIV;#else      return PERL_constant_NOTDEF;#endif    }    break;  case 'G':    if (memEQ(name, "DB_REP_IGNORE", 13)) {    /*                       ^           */#ifdef DB_REP_IGNORE      *iv_return = DB_REP_IGNORE;      return PERL_constant_ISIV;#else      return PERL_constant_NOTDEF;#endif    }    break;  case 'H':    if (memEQ(name, "DB_ENV_THREAD", 13)) {    /*                       ^           */#ifdef DB_ENV_THREAD      *iv_return = DB_ENV_THREAD;      return PERL_constant_ISIV;#else      return PERL_constant_NOTDEF;#endif    }    if (memEQ(name, "DB_LOG_CHKPNT", 13)) {    /*                       ^           */#ifdef DB_LOG_CHKPNT      *iv_return = DB_LOG_CHKPNT;      return PERL_constant_ISIV;#else      return PERL_constant_NOTDEF;#endif    }    break;  case 'I':    if (memEQ(name, "DB_DONOTINDEX", 13)) {    /*                       ^           */#ifdef DB_DONOTINDEX      *iv_return = DB_DONOTINDEX;      return PERL_constant_ISIV;#else      return PERL_constant_NOTDEF;#endif    }    break;  case 'L':    if (memEQ(name, "DB_HASHOLDVER", 13)) {    /*                       ^           */#ifdef DB_HASHOLDVER      *iv_return = DB_HASHOLDVER;      return PERL_constant_ISIV;#else      return PERL_constant_NOTDEF;#endif    }    if (memEQ(name, "DB_MUTEXLOCKS", 13)) {    /*                       ^           */#ifdef DB_MUTEXLOCKS      *iv_return = DB_MUTEXLOCKS;      return PERL_constant_ISIV;#else      return PERL_constant_NOTDEF;#endif    }    if (memEQ(name, "DB_REP_CLIENT", 13)) {    /*                       ^           */#ifdef DB_REP_CLIENT      *iv_return = DB_REP_CLIENT;      return PERL_constant_ISIV;#else      return PERL_constant_NOTDEF;#endif    }    break;  case 'M':    if (memEQ(name, "DB_BTREEMAGIC", 13)) {    /*                       ^           */#ifdef DB_BTREEMAGIC      *iv_return = DB_BTREEMAGIC;      return PERL_constant_ISIV;#else      return PERL_constant_NOTDEF;#endif    }    if (memEQ(name, "DB_INIT_MPOOL", 13)) {    /*                       ^           */#ifdef DB_INIT_MPOOL      *iv_return = DB_INIT_MPOOL;      return PERL_constant_ISIV;#else      return PERL_constant_NOTDEF;#endif    }    if (memEQ(name, "DB_SYSTEM_MEM", 13)) {    /*                       ^           */#ifdef DB_SYSTEM_MEM      *iv_return = DB_SYSTEM_MEM;      return PERL_constant_ISIV;#else      return PERL_constant_NOTDEF;#endif    }    break;  case 'N':    if (memEQ(name, "DB_LOCK_NORUN", 13)) {    /*                       ^           */#ifdef DB_LOCK_NORUN      *iv_return = DB_LOCK_NORUN;      return PERL_constant_ISIV;#else      return PERL_constant_NOTDEF;#endif    }    if (memEQ(name, "DB_NEXT_NODUP", 13)) {    /*                       ^           */#ifdef DB_NEXT_NODUP      *iv_return = DB_NEXT_NODUP;      return PERL_constant_ISIV;#else      return PERL_constant_NOTDEF;#endif    }    if (memEQ(name, "DB_PREV_NODUP", 13)) {    /*                       ^           */#ifdef DB_PREV_NODUP      *iv_return = DB_PREV_NODUP;      return PERL_constant_ISIV;#else      return PERL_constant_NOTDEF;#endif    }    if (memEQ(name, "DB_SEQUENTIAL", 13)) {    /*                       ^           */#ifdef DB_SEQUENTIAL      *iv_return = DB_SEQUENTIAL;      return PERL_constant_ISIV;#else      return PERL_constant_NOTDEF;#endif    }    break;  case 'O':    if (memEQ(name, "DB_ENV_NOMMAP", 13)) {    /*                       ^           */#ifdef DB_ENV_NOMMAP      *iv_return = DB_ENV_NOMMAP;      return PERL_constant_ISIV;#else      return PERL_constant_NOTDEF;#endif    }    if (memEQ(name, "DB_LOG_COMMIT", 13)) {    /*                       ^           */#ifdef DB_LOG_COMMIT      *iv_return = DB_LOG_COMMIT;      return PERL_constant_ISIV;#else      return PERL_constant_NOTDEF;#endif    }    if (memEQ(name, "DB_LOG_LOCKED", 13)) {    /*                       ^           */#ifdef DB_LOG_LOCKED      *iv_return = DB_LOG_LOCKED;      return PERL_constant_ISIV;#else      return PERL_constant_NOTDEF;#endif    }    if (memEQ(name, "DB_LOG_NOCOPY", 13)) {    /*                       ^           */#ifdef DB_LOG_NOCOPY      *iv_return = DB_LOG_NOCOPY;      return PERL_constant_ISIV;#else      return PERL_constant_NOTDEF;#endif    }    if (memEQ(name, "DB_TXN_NOSYNC", 13)) {    /*                       ^           */#ifdef DB_TXN_NOSYNC      *iv_return = DB_TXN_NOSYNC;      return PERL_constant_ISIV;#else      return PERL_constant_NOTDEF;#endif    }    if (memEQ(name, "DB_TXN_NOWAIT", 13)) {    /*                       ^           */#ifdef DB_TXN_NOWAIT      *iv_return = DB_TXN_NOWAIT;      return PERL_constant_ISIV;#else      return PERL_constant_NOTDEF;#endif    }    break;  case 'P':    if (memEQ(name, "DB_CHECKPOINT", 13)) {    /*                       ^           */#ifdef DB_CHECKPOINT      *iv_return = DB_CHECKPOINT;      return PERL_constant_ISIV;#else      return PERL_constant_NOTDEF;#endif    }    if (memEQ(name, "DB_INCOMPLETE", 13)) {    /*                       ^           */#ifdef DB_INCOMPLETE      *iv_return = DB_INCOMPLETE;      return PERL_constant_ISIV;#else      return PERL_constant_NOTDEF;#endif    }    break;  case 'R':    if (memEQ(name, "DB_ENV_CREATE", 13)) {    /*                       ^           */#ifdef DB_ENV_CREATE      *iv_return = DB_ENV_CREATE;      return PERL_constant_ISIV;#else      return PERL_constant_NOTDEF;#endif    }    if (memEQ(name, "DB_LOCK_RIW_N", 13)) {    /*                       ^           */#ifdef DB_LOCK_RIW_N      *iv_return = DB_LOCK_RIW_N;      return PERL_constant_ISIV;#else      return PERL_constant_NOTDEF;#endif    }    if (memEQ(name, "DB_LOGVERSION", 13)) {    /*                       ^           */#ifdef DB_LOGVERSION      *iv_return = DB_LOGVERSION;      return PERL_constant_ISIV;#else      return PERL_constant_NOTDEF;#endif    }    if (memEQ(name, "DB_QAMVERSION", 13)) {    /*                       ^           */#ifdef DB_QAMVERSION      *iv_return = DB_QAMVERSION;      return PERL_constant_ISIV;#else      return PERL_constant_NOTDEF;#endif    }    if (memEQ(name, "DB_REP_CREATE", 13)) {    /*                       ^           */#ifdef DB_REP_CREATE      *iv_return = DB_REP_CREATE;      return PERL_constant_ISIV;#else      return PERL_constant_NOTDEF;#endif    }    if (memEQ(name, "DB_TXNVERSION", 13)) {    /*                       ^           */#ifdef DB_TXNVERSION      *iv_return = DB_TXNVERSION;      return PERL_constant_ISIV;#else      return PERL_constant_NOTDEF;#endif    }    break;  case 'S':    if (memEQ(name, "DB_AGGRESSIVE", 13)) {    /*                       ^           */#ifdef DB_AGGRESSIVE      *iv_return = DB_AGGRESSIVE;      return PERL_constant_ISIV;#else      return PERL_constant_NOTDEF;#endif    }    if (memEQ(name, "DB_FREE_SPACE", 13)) {    /*                       ^           */#ifdef DB_FREE_SPACE      *iv_return = DB_FREE_SPACE;      return PERL_constant_ISIV;#else      return PERL_constant_NOTDEF;#endif    }    if (memEQ(name, "DB_REP_ISPERM", 13)) {    /*                       ^           */#ifdef DB_REP_ISPERM      *iv_return = DB_REP_ISPERM;      return PERL_constant_ISIV;#else      return PERL_constant_NOTDEF;#endif    }    break;  case 'T':    if (memEQ(name, "DB_DIRECT_LOG", 13)) {    /*                       ^           */#ifdef DB_DIRECT_LOG      *iv_return = DB_DIRECT_LOG;      return PERL_constant_ISIV;#else      return PERL_constant_NOTDEF;#endif    }    if (memEQ(name, "DB_LOCK_TRADE", 13)) {    /*                       ^           */#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_LOCK_TRADE;      return PERL_constant_ISIV;#else      return PERL_constant_NOTDEF;#endif    }    if (memEQ(name, "DB_REGISTERED", 13)) {    /*                       ^           */#ifdef DB_REGISTERED      *iv_return = DB_REGISTERED;      return PERL_constant_ISIV;#else      return PERL_constant_NOTDEF;#endif    }    break;  case 'Y':    if (memEQ(name, "DB_VERIFY_BAD", 13)) {    /*                       ^           */#ifdef DB_VERIFY_BAD      *iv_return = DB_VERIFY_BAD;      return PERL_constant_ISIV;#else      return PERL_constant_NOTDEF;#endif    }    break;  case '_':    if (memEQ(name, "DB_DIRTY_READ", 13)) {    /*                       ^           */#ifdef DB_DIRTY_READ      *iv_return = DB_DIRTY_READ;      return PERL_constant_ISIV;#else      return PERL_constant_NOTDEF;#endif    }    if (memEQ(name, "DB_MPOOL_FREE", 13)) {    /*                       ^           */#ifdef DB_MPOOL_FREE      *iv_return = DB_MPOOL_FREE;      return PERL_constant_ISIV;#else      return PERL_constant_NOTDEF;#endif    }    if (memEQ(name, "DB_MPOOL_LAST", 13)) {    /*                       ^           */#ifdef DB_MPOOL_LAST      *iv_return = DB_MPOOL_LAST;      return PERL_constant_ISIV;#else      return PERL_constant_NOTDEF;#endif    }    if (memEQ(name, "DB_debug_FLAG", 13)) {    /*                       ^           */#ifdef DB_debug_FLAG      *iv_return = DB_debug_FLAG;      return PERL_constant_ISIV;#else      return PERL_constant_NOTDEF;#endif    }    if (memEQ(name, "REP_CONF_BULK", 13)) {    /*                       ^           */#ifdef REP_CONF_BULK      *iv_return = REP_CONF_BULK;      return PERL_constant_ISIV;#else      return PERL_constant_NOTDEF;#endif    }    break;  }  return PERL_constant_NOTFOUND;}static intconstant_14 (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_REMOVE DB_AUTO_COMMIT DB_BTREEOLDVER DB_CHKSUM_SHA1 DB_EID_INVALID

⌨️ 快捷键说明

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