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

📄 constants.h

📁 MySQL数据库开发源码 值得一看哦
💻 H
📖 第 1 页 / 共 5 页
字号:
    break;  case 'M':    if (memEQ(name, "DB_CONSUME", 10)) {    /*                       ^        */#ifdef DB_CONSUME      *iv_return = DB_CONSUME;      return PERL_constant_ISIV;#else      return PERL_constant_NOTDEF;#endif    }    break;  case 'N':    if (memEQ(name, "DB_CURRENT", 10)) {    /*                       ^        */#ifdef DB_CURRENT      *iv_return = DB_CURRENT;      return PERL_constant_ISIV;#else      return PERL_constant_NOTDEF;#endif    }    if (memEQ(name, "DB_JOINENV", 10)) {    /*                       ^        */#ifdef DB_JOINENV      *iv_return = DB_JOINENV;      return PERL_constant_ISIV;#else      return PERL_constant_NOTDEF;#endif    }    break;  case 'P':    if (memEQ(name, "DB_ENCRYPT", 10)) {    /*                       ^        */#ifdef DB_ENCRYPT      *iv_return = DB_ENCRYPT;      return PERL_constant_ISIV;#else      return PERL_constant_NOTDEF;#endif    }    break;  case 'R':    if (memEQ(name, "DB_DUPSORT", 10)) {    /*                       ^        */#ifdef DB_DUPSORT      *iv_return = DB_DUPSORT;      return PERL_constant_ISIV;#else      return PERL_constant_NOTDEF;#endif    }    break;  case 'S':    if (memEQ(name, "DB_KEYLAST", 10)) {    /*                       ^        */#ifdef DB_KEYLAST      *iv_return = DB_KEYLAST;      return PERL_constant_ISIV;#else      return PERL_constant_NOTDEF;#endif    }    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    }    break;  case 'T':    if (memEQ(name, "DB_PRIVATE", 10)) {    /*                       ^        */#ifdef DB_PRIVATE      *iv_return = DB_PRIVATE;      return PERL_constant_ISIV;#else      return PERL_constant_NOTDEF;#endif    }    break;  case 'U':    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 'W':    if (memEQ(name, "DB_UNKNOWN", 10)) {    /*                       ^        */#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_UNKNOWN;      return PERL_constant_ISIV;#else      return PERL_constant_NOTDEF;#endif    }    break;  case 'X':    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;  }  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_FIXEDLEN DB_GET_BOTH DB_INIT_CDB     DB_INIT_LOG DB_INIT_TXN DB_KEYEMPTY DB_KEYEXIST DB_KEYFIRST DB_LOCKDOWN     DB_LOCK_GET DB_LOCK_PUT DB_LOGMAGIC DB_LOG_DISK DB_MULTIPLE DB_NEXT_DUP     DB_NOSERVER DB_NOTFOUND DB_OK_BTREE DB_OK_QUEUE DB_OK_RECNO DB_POSITION     DB_QAMMAGIC DB_RENUMBER DB_SNAPSHOT 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_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_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 >= 0)      *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_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 >= 0)      *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_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)) {    /*                       ^         */#ifdef DB_OK_BTREE      *iv_return = DB_OK_BTREE;      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    }    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_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_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;

⌨️ 快捷键说明

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