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

📄 constants.h

📁 BerkeleyDB源码
💻 H
📖 第 1 页 / 共 5 页
字号:
#define PERL_constant_NOTFOUND	1#define PERL_constant_NOTDEF	2#define PERL_constant_ISIV	3#define PERL_constant_ISNO	4#define PERL_constant_ISNV	5#define PERL_constant_ISPV	6#define PERL_constant_ISPVN	7#define PERL_constant_ISSV	8#define PERL_constant_ISUNDEF	9#define PERL_constant_ISUV	10#define PERL_constant_ISYES	11#ifndef NVTYPEtypedef double NV; /* 5.6 and later define NVTYPE, and typedef NV to it.  */#endif#ifndef aTHX_#define aTHX_ /* 5.6 or later define this for threading support.  */#endif#ifndef pTHX_#define pTHX_ /* 5.6 or later define this for threading support.  */#endifstatic intconstant_6 (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_DUP DB_PAD DB_RMW DB_SET */  /* Offset 3 gives the best switch position.  */  switch (name[3]) {  case 'D':    if (memEQ(name, "DB_DUP", 6)) {    /*                  ^        */#ifdef DB_DUP      *iv_return = DB_DUP;      return PERL_constant_ISIV;#else      return PERL_constant_NOTDEF;#endif    }    break;  case 'P':    if (memEQ(name, "DB_PAD", 6)) {    /*                  ^        */#ifdef DB_PAD      *iv_return = DB_PAD;      return PERL_constant_ISIV;#else      return PERL_constant_NOTDEF;#endif    }    break;  case 'R':    if (memEQ(name, "DB_RMW", 6)) {    /*                  ^        */#ifdef DB_RMW      *iv_return = DB_RMW;      return PERL_constant_ISIV;#else      return PERL_constant_NOTDEF;#endif    }    break;  case 'S':    if (memEQ(name, "DB_SET", 6)) {    /*                  ^        */#ifdef DB_SET      *iv_return = DB_SET;      return PERL_constant_ISIV;#else      return PERL_constant_NOTDEF;#endif    }    break;  }  return PERL_constant_NOTFOUND;}static intconstant_7 (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_EXCL DB_HASH DB_LAST DB_NEXT DB_PREV */  /* Offset 3 gives the best switch position.  */  switch (name[3]) {  case 'E':    if (memEQ(name, "DB_EXCL", 7)) {    /*                  ^         */#ifdef DB_EXCL      *iv_return = DB_EXCL;      return PERL_constant_ISIV;#else      return PERL_constant_NOTDEF;#endif    }    break;  case 'H':    if (memEQ(name, "DB_HASH", 7)) {    /*                  ^         */#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_HASH;      return PERL_constant_ISIV;#else      return PERL_constant_NOTDEF;#endif    }    break;  case 'L':    if (memEQ(name, "DB_LAST", 7)) {    /*                  ^         */#ifdef DB_LAST      *iv_return = DB_LAST;      return PERL_constant_ISIV;#else      return PERL_constant_NOTDEF;#endif    }    break;  case 'N':    if (memEQ(name, "DB_NEXT", 7)) {    /*                  ^         */#ifdef DB_NEXT      *iv_return = DB_NEXT;      return PERL_constant_ISIV;#else      return PERL_constant_NOTDEF;#endif    }    break;  case 'P':    if (memEQ(name, "DB_PREV", 7)) {    /*                  ^         */#ifdef DB_PREV      *iv_return = DB_PREV;      return PERL_constant_ISIV;#else      return PERL_constant_NOTDEF;#endif    }    break;  }  return PERL_constant_NOTFOUND;}static intconstant_8 (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_AFTER DB_BTREE DB_FIRST DB_FLUSH DB_FORCE DB_QUEUE DB_RECNO DB_UNREF */  /* Offset 4 gives the best switch position.  */  switch (name[4]) {  case 'E':    if (memEQ(name, "DB_RECNO", 8)) {    /*                   ^         */#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_RECNO;      return PERL_constant_ISIV;#else      return PERL_constant_NOTDEF;#endif    }    break;  case 'F':    if (memEQ(name, "DB_AFTER", 8)) {    /*                   ^         */#ifdef DB_AFTER      *iv_return = DB_AFTER;      return PERL_constant_ISIV;#else      return PERL_constant_NOTDEF;#endif    }    break;  case 'I':    if (memEQ(name, "DB_FIRST", 8)) {    /*                   ^         */#ifdef DB_FIRST      *iv_return = DB_FIRST;      return PERL_constant_ISIV;#else      return PERL_constant_NOTDEF;#endif    }    break;  case 'L':    if (memEQ(name, "DB_FLUSH", 8)) {    /*                   ^         */#ifdef DB_FLUSH      *iv_return = DB_FLUSH;      return PERL_constant_ISIV;#else      return PERL_constant_NOTDEF;#endif    }    break;  case 'N':    if (memEQ(name, "DB_UNREF", 8)) {    /*                   ^         */#ifdef DB_UNREF      *iv_return = DB_UNREF;      return PERL_constant_ISIV;#else      return PERL_constant_NOTDEF;#endif    }    break;  case 'O':    if (memEQ(name, "DB_FORCE", 8)) {    /*                   ^         */#ifdef DB_FORCE      *iv_return = DB_FORCE;      return PERL_constant_ISIV;#else      return PERL_constant_NOTDEF;#endif    }    break;  case 'T':    if (memEQ(name, "DB_BTREE", 8)) {    /*                   ^         */#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_BTREE;      return PERL_constant_ISIV;#else      return PERL_constant_NOTDEF;#endif    }    break;  case 'U':    if (memEQ(name, "DB_QUEUE", 8)) {    /*                   ^         */#if (DB_VERSION_MAJOR > 3) || \    (DB_VERSION_MAJOR == 3 && DB_VERSION_MINOR > 0) || \    (DB_VERSION_MAJOR == 3 && DB_VERSION_MINOR == 0 && \     DB_VERSION_PATCH >= 55)      *iv_return = DB_QUEUE;      return PERL_constant_ISIV;#else      return PERL_constant_NOTDEF;#endif    }    break;  }  return PERL_constant_NOTFOUND;}static intconstant_9 (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_APPEND DB_BEFORE DB_CHKSUM DB_CLIENT DB_COMMIT DB_CREATE DB_CURLSN     DB_DIRECT DB_EXTENT DB_GETREC DB_NOCOPY DB_NOMMAP DB_NOSYNC DB_RDONLY     DB_RECNUM DB_THREAD DB_VERIFY */  /* Offset 7 gives the best switch position.  */  switch (name[7]) {  case 'A':    if (memEQ(name, "DB_NOMMAP", 9)) {    /*                      ^       */#ifdef DB_NOMMAP      *iv_return = DB_NOMMAP;      return PERL_constant_ISIV;#else      return PERL_constant_NOTDEF;#endif    }    if (memEQ(name, "DB_THREAD", 9)) {    /*                      ^       */#ifdef DB_THREAD      *iv_return = DB_THREAD;      return PERL_constant_ISIV;#else      return PERL_constant_NOTDEF;#endif    }    break;  case 'C':    if (memEQ(name, "DB_DIRECT", 9)) {    /*                      ^       */#ifdef DB_DIRECT      *iv_return = DB_DIRECT;      return PERL_constant_ISIV;#else      return PERL_constant_NOTDEF;#endif    }    break;  case 'E':    if (memEQ(name, "DB_GETREC", 9)) {    /*                      ^       */#ifdef DB_GETREC      *iv_return = DB_GETREC;      return PERL_constant_ISIV;#else      return PERL_constant_NOTDEF;#endif    }    break;  case 'F':    if (memEQ(name, "DB_VERIFY", 9)) {    /*                      ^       */#ifdef DB_VERIFY      *iv_return = DB_VERIFY;      return PERL_constant_ISIV;#else      return PERL_constant_NOTDEF;#endif    }    break;  case 'I':    if (memEQ(name, "DB_COMMIT", 9)) {    /*                      ^       */#ifdef DB_COMMIT      *iv_return = DB_COMMIT;      return PERL_constant_ISIV;#else      return PERL_constant_NOTDEF;#endif    }    break;  case 'L':    if (memEQ(name, "DB_RDONLY", 9)) {    /*                      ^       */#ifdef DB_RDONLY      *iv_return = DB_RDONLY;      return PERL_constant_ISIV;#else      return PERL_constant_NOTDEF;#endif    }    break;  case 'N':    if (memEQ(name, "DB_APPEND", 9)) {    /*                      ^       */#ifdef DB_APPEND      *iv_return = DB_APPEND;      return PERL_constant_ISIV;#else      return PERL_constant_NOTDEF;#endif    }    if (memEQ(name, "DB_CLIENT", 9)) {    /*                      ^       */#ifdef DB_CLIENT      *iv_return = DB_CLIENT;      return PERL_constant_ISIV;#else      return PERL_constant_NOTDEF;#endif    }    if (memEQ(name, "DB_EXTENT", 9)) {    /*                      ^       */#ifdef DB_EXTENT      *iv_return = DB_EXTENT;      return PERL_constant_ISIV;#else      return PERL_constant_NOTDEF;#endif    }    if (memEQ(name, "DB_NOSYNC", 9)) {    /*                      ^       */#ifdef DB_NOSYNC      *iv_return = DB_NOSYNC;      return PERL_constant_ISIV;#else      return PERL_constant_NOTDEF;#endif    }    break;  case 'P':    if (memEQ(name, "DB_NOCOPY", 9)) {    /*                      ^       */#ifdef DB_NOCOPY      *iv_return = DB_NOCOPY;      return PERL_constant_ISIV;#else      return PERL_constant_NOTDEF;#endif    }    break;  case 'R':    if (memEQ(name, "DB_BEFORE", 9)) {    /*                      ^       */#ifdef DB_BEFORE      *iv_return = DB_BEFORE;      return PERL_constant_ISIV;#else      return PERL_constant_NOTDEF;#endif    }    break;  case 'S':    if (memEQ(name, "DB_CURLSN", 9)) {    /*                      ^       */#ifdef DB_CURLSN      *iv_return = DB_CURLSN;      return PERL_constant_ISIV;#else      return PERL_constant_NOTDEF;#endif    }    break;  case 'T':    if (memEQ(name, "DB_CREATE", 9)) {    /*                      ^       */#ifdef DB_CREATE      *iv_return = DB_CREATE;      return PERL_constant_ISIV;#else      return PERL_constant_NOTDEF;#endif    }    break;  case 'U':    if (memEQ(name, "DB_CHKSUM", 9)) {    /*                      ^       */#ifdef DB_CHKSUM      *iv_return = DB_CHKSUM;      return PERL_constant_ISIV;#else      return PERL_constant_NOTDEF;#endif    }    if (memEQ(name, "DB_RECNUM", 9)) {    /*                      ^       */#ifdef DB_RECNUM      *iv_return = DB_RECNUM;      return PERL_constant_ISIV;#else      return PERL_constant_NOTDEF;#endif    }    break;  }  return PERL_constant_NOTFOUND;}static intconstant_10 (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_CONSUME DB_CURRENT DB_DELETED DB_DUPSORT DB_ENCRYPT DB_ENV_CDB     DB_ENV_TXN DB_INORDER DB_JOINENV DB_KEYLAST DB_NOPANIC DB_OK_HASH     DB_PRIVATE DB_PR_PAGE DB_RECOVER DB_SALVAGE DB_SEQ_DEC DB_SEQ_INC     DB_TIMEOUT DB_TXN_CKP DB_UNKNOWN DB_UPGRADE */  /* Offset 5 gives the best switch position.  */  switch (name[5]) {  case 'C':    if (memEQ(name, "DB_ENCRYPT", 10)) {    /*                    ^           */#ifdef DB_ENCRYPT      *iv_return = DB_ENCRYPT;      return PERL_constant_ISIV;#else      return PERL_constant_NOTDEF;#endif    }    if (memEQ(name, "DB_RECOVER", 10)) {    /*                    ^           */#ifdef DB_RECOVER      *iv_return = DB_RECOVER;      return PERL_constant_ISIV;#else      return PERL_constant_NOTDEF;#endif    }    break;  case 'G':    if (memEQ(name, "DB_UPGRADE", 10)) {    /*                    ^           */#ifdef DB_UPGRADE      *iv_return = DB_UPGRADE;      return PERL_constant_ISIV;#else      return PERL_constant_NOTDEF;#endif    }    break;  case 'I':    if (memEQ(name, "DB_JOINENV", 10)) {    /*                    ^           */#ifdef DB_JOINENV      *iv_return = DB_JOINENV;      return PERL_constant_ISIV;#else      return PERL_constant_NOTDEF;#endif    }    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 'K':    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 >= 3)      *iv_return = DB_UNKNOWN;      return PERL_constant_ISIV;#else      return PERL_constant_NOTDEF;#endif    }    break;

⌨️ 快捷键说明

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