| 1 |
#define PERL_constant_NOTFOUND 1 |
| 2 |
#define PERL_constant_NOTDEF 2 |
| 3 |
#define PERL_constant_ISIV 3 |
| 4 |
#define PERL_constant_ISNO 4 |
| 5 |
#define PERL_constant_ISNV 5 |
| 6 |
#define PERL_constant_ISPV 6 |
| 7 |
#define PERL_constant_ISPVN 7 |
| 8 |
#define PERL_constant_ISSV 8 |
| 9 |
#define PERL_constant_ISUNDEF 9 |
| 10 |
#define PERL_constant_ISUV 10 |
| 11 |
#define PERL_constant_ISYES 11 |
| 12 |
|
| 13 |
#ifndef NVTYPE |
| 14 |
typedef double NV; /* 5.6 and later define NVTYPE, and typedef NV to it. */ |
| 15 |
#endif |
| 16 |
#ifndef aTHX_ |
| 17 |
#define aTHX_ /* 5.6 or later define this for threading support. */ |
| 18 |
#endif |
| 19 |
#ifndef pTHX_ |
| 20 |
#define pTHX_ /* 5.6 or later define this for threading support. */ |
| 21 |
#endif |
| 22 |
|
| 23 |
static int |
| 24 |
constant_6 (pTHX_ const char *name, IV *iv_return) { |
| 25 |
/* When generated this function returned values for the list of names given |
| 26 |
here. However, subsequent manual editing may have added or removed some. |
| 27 |
DB_DUP DB_PAD DB_RMW DB_SET */ |
| 28 |
/* Offset 3 gives the best switch position. */ |
| 29 |
switch (name[3]) { |
| 30 |
case 'D': |
| 31 |
if (memEQ(name, "DB_DUP", 6)) { |
| 32 |
/* ^ */ |
| 33 |
#ifdef DB_DUP |
| 34 |
*iv_return = DB_DUP; |
| 35 |
return PERL_constant_ISIV; |
| 36 |
#else |
| 37 |
return PERL_constant_NOTDEF; |
| 38 |
#endif |
| 39 |
} |
| 40 |
break; |
| 41 |
case 'P': |
| 42 |
if (memEQ(name, "DB_PAD", 6)) { |
| 43 |
/* ^ */ |
| 44 |
#ifdef DB_PAD |
| 45 |
*iv_return = DB_PAD; |
| 46 |
return PERL_constant_ISIV; |
| 47 |
#else |
| 48 |
return PERL_constant_NOTDEF; |
| 49 |
#endif |
| 50 |
} |
| 51 |
break; |
| 52 |
case 'R': |
| 53 |
if (memEQ(name, "DB_RMW", 6)) { |
| 54 |
/* ^ */ |
| 55 |
#ifdef DB_RMW |
| 56 |
*iv_return = DB_RMW; |
| 57 |
return PERL_constant_ISIV; |
| 58 |
#else |
| 59 |
return PERL_constant_NOTDEF; |
| 60 |
#endif |
| 61 |
} |
| 62 |
break; |
| 63 |
case 'S': |
| 64 |
if (memEQ(name, "DB_SET", 6)) { |
| 65 |
/* ^ */ |
| 66 |
#ifdef DB_SET |
| 67 |
*iv_return = DB_SET; |
| 68 |
return PERL_constant_ISIV; |
| 69 |
#else |
| 70 |
return PERL_constant_NOTDEF; |
| 71 |
#endif |
| 72 |
} |
| 73 |
break; |
| 74 |
} |
| 75 |
return PERL_constant_NOTFOUND; |
| 76 |
} |
| 77 |
|
| 78 |
static int |
| 79 |
constant_7 (pTHX_ const char *name, IV *iv_return) { |
| 80 |
/* When generated this function returned values for the list of names given |
| 81 |
here. However, subsequent manual editing may have added or removed some. |
| 82 |
DB_EXCL DB_HASH DB_HEAP DB_LAST DB_NEXT DB_PREV */ |
| 83 |
/* Offset 3 gives the best switch position. */ |
| 84 |
switch (name[3]) { |
| 85 |
case 'E': |
| 86 |
if (memEQ(name, "DB_EXCL", 7)) { |
| 87 |
/* ^ */ |
| 88 |
#ifdef DB_EXCL |
| 89 |
*iv_return = DB_EXCL; |
| 90 |
return PERL_constant_ISIV; |
| 91 |
#else |
| 92 |
return PERL_constant_NOTDEF; |
| 93 |
#endif |
| 94 |
} |
| 95 |
break; |
| 96 |
case 'H': |
| 97 |
if (memEQ(name, "DB_HASH", 7)) { |
| 98 |
/* ^ */ |
| 99 |
#if (DB_VERSION_MAJOR > 2) || \ |
| 100 |
(DB_VERSION_MAJOR == 2 && DB_VERSION_MINOR > 0) || \ |
| 101 |
(DB_VERSION_MAJOR == 2 && DB_VERSION_MINOR == 0 && \ |
| 102 |
DB_VERSION_PATCH >= 3) |
| 103 |
*iv_return = DB_HASH; |
| 104 |
return PERL_constant_ISIV; |
| 105 |
#else |
| 106 |
return PERL_constant_NOTDEF; |
| 107 |
#endif |
| 108 |
} |
| 109 |
if (memEQ(name, "DB_HEAP", 7)) { |
| 110 |
/* ^ */ |
| 111 |
#if (DB_VERSION_MAJOR > 5) || \ |
| 112 |
(DB_VERSION_MAJOR == 5 && DB_VERSION_MINOR > 2) || \ |
| 113 |
(DB_VERSION_MAJOR == 5 && DB_VERSION_MINOR == 2 && \ |
| 114 |
DB_VERSION_PATCH >= 14) |
| 115 |
*iv_return = DB_HEAP; |
| 116 |
return PERL_constant_ISIV; |
| 117 |
#else |
| 118 |
return PERL_constant_NOTDEF; |
| 119 |
#endif |
| 120 |
} |
| 121 |
break; |
| 122 |
case 'L': |
| 123 |
if (memEQ(name, "DB_LAST", 7)) { |
| 124 |
/* ^ */ |
| 125 |
#ifdef DB_LAST |
| 126 |
*iv_return = DB_LAST; |
| 127 |
return PERL_constant_ISIV; |
| 128 |
#else |
| 129 |
return PERL_constant_NOTDEF; |
| 130 |
#endif |
| 131 |
} |
| 132 |
break; |
| 133 |
case 'N': |
| 134 |
if (memEQ(name, "DB_NEXT", 7)) { |
| 135 |
/* ^ */ |
| 136 |
#ifdef DB_NEXT |
| 137 |
*iv_return = DB_NEXT; |
| 138 |
return PERL_constant_ISIV; |
| 139 |
#else |
| 140 |
return PERL_constant_NOTDEF; |
| 141 |
#endif |
| 142 |
} |
| 143 |
break; |
| 144 |
case 'P': |
| 145 |
if (memEQ(name, "DB_PREV", 7)) { |
| 146 |
/* ^ */ |
| 147 |
#ifdef DB_PREV |
| 148 |
*iv_return = DB_PREV; |
| 149 |
return PERL_constant_ISIV; |
| 150 |
#else |
| 151 |
return PERL_constant_NOTDEF; |
| 152 |
#endif |
| 153 |
} |
| 154 |
break; |
| 155 |
} |
| 156 |
return PERL_constant_NOTFOUND; |
| 157 |
} |
| 158 |
|
| 159 |
static int |
| 160 |
constant_8 (pTHX_ const char *name, IV *iv_return) { |
| 161 |
/* When generated this function returned values for the list of names given |
| 162 |
here. However, subsequent manual editing may have added or removed some. |
| 163 |
DB_AFTER DB_BTREE DB_FIRST DB_FLUSH DB_FORCE DB_QUEUE DB_RECNO DB_UNREF */ |
| 164 |
/* Offset 4 gives the best switch position. */ |
| 165 |
switch (name[4]) { |
| 166 |
case 'E': |
| 167 |
if (memEQ(name, "DB_RECNO", 8)) { |
| 168 |
/* ^ */ |
| 169 |
#if (DB_VERSION_MAJOR > 2) || \ |
| 170 |
(DB_VERSION_MAJOR == 2 && DB_VERSION_MINOR > 0) || \ |
| 171 |
(DB_VERSION_MAJOR == 2 && DB_VERSION_MINOR == 0 && \ |
| 172 |
DB_VERSION_PATCH >= 3) |
| 173 |
*iv_return = DB_RECNO; |
| 174 |
return PERL_constant_ISIV; |
| 175 |
#else |
| 176 |
return PERL_constant_NOTDEF; |
| 177 |
#endif |
| 178 |
} |
| 179 |
break; |
| 180 |
case 'F': |
| 181 |
if (memEQ(name, "DB_AFTER", 8)) { |
| 182 |
/* ^ */ |
| 183 |
#ifdef DB_AFTER |
| 184 |
*iv_return = DB_AFTER; |
| 185 |
return PERL_constant_ISIV; |
| 186 |
#else |
| 187 |
return PERL_constant_NOTDEF; |
| 188 |
#endif |
| 189 |
} |
| 190 |
break; |
| 191 |
case 'I': |
| 192 |
if (memEQ(name, "DB_FIRST", 8)) { |
| 193 |
/* ^ */ |
| 194 |
#ifdef DB_FIRST |
| 195 |
*iv_return = DB_FIRST; |
| 196 |
return PERL_constant_ISIV; |
| 197 |
#else |
| 198 |
return PERL_constant_NOTDEF; |
| 199 |
#endif |
| 200 |
} |
| 201 |
break; |
| 202 |
case 'L': |
| 203 |
if (memEQ(name, "DB_FLUSH", 8)) { |
| 204 |
/* ^ */ |
| 205 |
#ifdef DB_FLUSH |
| 206 |
*iv_return = DB_FLUSH; |
| 207 |
return PERL_constant_ISIV; |
| 208 |
#else |
| 209 |
return PERL_constant_NOTDEF; |
| 210 |
#endif |
| 211 |
} |
| 212 |
break; |
| 213 |
case 'N': |
| 214 |
if (memEQ(name, "DB_UNREF", 8)) { |
| 215 |
/* ^ */ |
| 216 |
#ifdef DB_UNREF |
| 217 |
*iv_return = DB_UNREF; |
| 218 |
return PERL_constant_ISIV; |
| 219 |
#else |
| 220 |
return PERL_constant_NOTDEF; |
| 221 |
#endif |
| 222 |
} |
| 223 |
break; |
| 224 |
case 'O': |
| 225 |
if (memEQ(name, "DB_FORCE", 8)) { |
| 226 |
/* ^ */ |
| 227 |
#ifdef DB_FORCE |
| 228 |
*iv_return = DB_FORCE; |
| 229 |
return PERL_constant_ISIV; |
| 230 |
#else |
| 231 |
return PERL_constant_NOTDEF; |
| 232 |
#endif |
| 233 |
} |
| 234 |
break; |
| 235 |
case 'T': |
| 236 |
if (memEQ(name, "DB_BTREE", 8)) { |
| 237 |
/* ^ */ |
| 238 |
#if (DB_VERSION_MAJOR > 2) || \ |
| 239 |
(DB_VERSION_MAJOR == 2 && DB_VERSION_MINOR > 0) || \ |
| 240 |
(DB_VERSION_MAJOR == 2 && DB_VERSION_MINOR == 0 && \ |
| 241 |
DB_VERSION_PATCH >= 3) |
| 242 |
*iv_return = DB_BTREE; |
| 243 |
return PERL_constant_ISIV; |
| 244 |
#else |
| 245 |
return PERL_constant_NOTDEF; |
| 246 |
#endif |
| 247 |
} |
| 248 |
break; |
| 249 |
case 'U': |
| 250 |
if (memEQ(name, "DB_QUEUE", 8)) { |
| 251 |
/* ^ */ |
| 252 |
#if (DB_VERSION_MAJOR > 3) || \ |
| 253 |
(DB_VERSION_MAJOR == 3 && DB_VERSION_MINOR > 0) || \ |
| 254 |
(DB_VERSION_MAJOR == 3 && DB_VERSION_MINOR == 0 && \ |
| 255 |
DB_VERSION_PATCH >= 55) |
| 256 |
*iv_return = DB_QUEUE; |
| 257 |
return PERL_constant_ISIV; |
| 258 |
#else |
| 259 |
return PERL_constant_NOTDEF; |
| 260 |
#endif |
| 261 |
} |
| 262 |
break; |
| 263 |
} |
| 264 |
return PERL_constant_NOTFOUND; |
| 265 |
} |
| 266 |
|
| 267 |
static int |
| 268 |
constant_9 (pTHX_ const char *name, IV *iv_return) { |
| 269 |
/* When generated this function returned values for the list of names given |
| 270 |
here. However, subsequent manual editing may have added or removed some. |
| 271 |
DB_APPEND DB_BEFORE DB_CHKSUM DB_CLIENT DB_COMMIT DB_CREATE DB_CURLSN |
| 272 |
DB_DIRECT DB_EXTENT DB_GETREC DB_LEGACY DB_NOCOPY DB_NOMMAP DB_NOSYNC |
| 273 |
DB_RDONLY DB_RECNUM DB_THREAD DB_VERIFY LOGREC_DB LOGREC_OP */ |
| 274 |
/* Offset 7 gives the best switch position. */ |
| 275 |
switch (name[7]) { |
| 276 |
case 'A': |
| 277 |
if (memEQ(name, "DB_NOMMAP", 9)) { |
| 278 |
/* ^ */ |
| 279 |
#ifdef DB_NOMMAP |
| 280 |
*iv_return = DB_NOMMAP; |
| 281 |
return PERL_constant_ISIV; |
| 282 |
#else |
| 283 |
return PERL_constant_NOTDEF; |
| 284 |
#endif |
| 285 |
} |
| 286 |
if (memEQ(name, "DB_THREAD", 9)) { |
| 287 |
/* ^ */ |
| 288 |
#ifdef DB_THREAD |
| 289 |
*iv_return = DB_THREAD; |
| 290 |
return PERL_constant_ISIV; |
| 291 |
#else |
| 292 |
return PERL_constant_NOTDEF; |
| 293 |
#endif |
| 294 |
} |
| 295 |
break; |
| 296 |
case 'C': |
| 297 |
if (memEQ(name, "DB_DIRECT", 9)) { |
| 298 |
/* ^ */ |
| 299 |
#ifdef DB_DIRECT |
| 300 |
*iv_return = DB_DIRECT; |
| 301 |
return PERL_constant_ISIV; |
| 302 |
#else |
| 303 |
return PERL_constant_NOTDEF; |
| 304 |
#endif |
| 305 |
} |
| 306 |
if (memEQ(name, "DB_LEGACY", 9)) { |
| 307 |
/* ^ */ |
| 308 |
#ifdef DB_LEGACY |
| 309 |
*iv_return = DB_LEGACY; |
| 310 |
return PERL_constant_ISIV; |
| 311 |
#else |
| 312 |
return PERL_constant_NOTDEF; |
| 313 |
#endif |
| 314 |
} |
| 315 |
break; |
| 316 |
case 'D': |
| 317 |
if (memEQ(name, "LOGREC_DB", 9)) { |
| 318 |
/* ^ */ |
| 319 |
#if (DB_VERSION_MAJOR > 5) || \ |
| 320 |
(DB_VERSION_MAJOR == 5 && DB_VERSION_MINOR > 0) || \ |
| 321 |
(DB_VERSION_MAJOR == 5 && DB_VERSION_MINOR == 0 && \ |
| 322 |
DB_VERSION_PATCH >= 6) |
| 323 |
*iv_return = LOGREC_DB; |
| 324 |
return PERL_constant_ISIV; |
| 325 |
#else |
| 326 |
return PERL_constant_NOTDEF; |
| 327 |
#endif |
| 328 |
} |
| 329 |
break; |
| 330 |
case 'E': |
| 331 |
if (memEQ(name, "DB_GETREC", 9)) { |
| 332 |
/* ^ */ |
| 333 |
#ifdef DB_GETREC |
| 334 |
*iv_return = DB_GETREC; |
| 335 |
return PERL_constant_ISIV; |
| 336 |
#else |
| 337 |
return PERL_constant_NOTDEF; |
| 338 |
#endif |
| 339 |
} |
| 340 |
break; |
| 341 |
case 'F': |
| 342 |
if (memEQ(name, "DB_VERIFY", 9)) { |
| 343 |
/* ^ */ |
| 344 |
#ifdef DB_VERIFY |
| 345 |
*iv_return = DB_VERIFY; |
| 346 |
return PERL_constant_ISIV; |
| 347 |
#else |
| 348 |
return PERL_constant_NOTDEF; |
| 349 |
#endif |
| 350 |
} |
| 351 |
break; |
| 352 |
case 'I': |
| 353 |
if (memEQ(name, "DB_COMMIT", 9)) { |
| 354 |
/* ^ */ |
| 355 |
#ifdef DB_COMMIT |
| 356 |
*iv_return = DB_COMMIT; |
| 357 |
return PERL_constant_ISIV; |
| 358 |
#else |
| 359 |
return PERL_constant_NOTDEF; |
| 360 |
#endif |
| 361 |
} |
| 362 |
break; |
| 363 |
case 'L': |
| 364 |
if (memEQ(name, "DB_RDONLY", 9)) { |
| 365 |
/* ^ */ |
| 366 |
#ifdef DB_RDONLY |
| 367 |
*iv_return = DB_RDONLY; |
| 368 |
return PERL_constant_ISIV; |
| 369 |
#else |
| 370 |
return PERL_constant_NOTDEF; |
| 371 |
#endif |
| 372 |
} |
| 373 |
break; |
| 374 |
case 'N': |
| 375 |
if (memEQ(name, "DB_APPEND", 9)) { |
| 376 |
/* ^ */ |
| 377 |
#ifdef DB_APPEND |
| 378 |
*iv_return = DB_APPEND; |
| 379 |
return PERL_constant_ISIV; |
| 380 |
#else |
| 381 |
return PERL_constant_NOTDEF; |
| 382 |
#endif |
| 383 |
} |
| 384 |
if (memEQ(name, "DB_CLIENT", 9)) { |
| 385 |
/* ^ */ |
| 386 |
#ifdef DB_CLIENT |
| 387 |
*iv_return = DB_CLIENT; |
| 388 |
return PERL_constant_ISIV; |
| 389 |
#else |
| 390 |
return PERL_constant_NOTDEF; |
| 391 |
#endif |
| 392 |
} |
| 393 |
if (memEQ(name, "DB_EXTENT", 9)) { |
| 394 |
/* ^ */ |
| 395 |
#ifdef DB_EXTENT |
| 396 |
*iv_return = DB_EXTENT; |
| 397 |
return PERL_constant_ISIV; |
| 398 |
#else |
| 399 |
return PERL_constant_NOTDEF; |
| 400 |
#endif |
| 401 |
} |
| 402 |
if (memEQ(name, "DB_NOSYNC", 9)) { |
| 403 |
/* ^ */ |
| 404 |
#ifdef DB_NOSYNC |
| 405 |
*iv_return = DB_NOSYNC; |
| 406 |
return PERL_constant_ISIV; |
| 407 |
#else |
| 408 |
return PERL_constant_NOTDEF; |
| 409 |
#endif |
| 410 |
} |
| 411 |
break; |
| 412 |
case 'O': |
| 413 |
if (memEQ(name, "LOGREC_OP", 9)) { |
| 414 |
/* ^ */ |
| 415 |
#if (DB_VERSION_MAJOR > 5) || \ |
| 416 |
(DB_VERSION_MAJOR == 5 && DB_VERSION_MINOR > 0) || \ |
| 417 |
(DB_VERSION_MAJOR == 5 && DB_VERSION_MINOR == 0 && \ |
| 418 |
DB_VERSION_PATCH >= 6) |
| 419 |
*iv_return = LOGREC_OP; |
| 420 |
return PERL_constant_ISIV; |
| 421 |
#else |
| 422 |
return PERL_constant_NOTDEF; |
| 423 |
#endif |
| 424 |
} |
| 425 |
break; |
| 426 |
case 'P': |
| 427 |
if (memEQ(name, "DB_NOCOPY", 9)) { |
| 428 |
/* ^ */ |
| 429 |
#ifdef DB_NOCOPY |
| 430 |
*iv_return = DB_NOCOPY; |
| 431 |
return PERL_constant_ISIV; |
| 432 |
#else |
| 433 |
return PERL_constant_NOTDEF; |
| 434 |
#endif |
| 435 |
} |
| 436 |
break; |
| 437 |
case 'R': |
| 438 |
if (memEQ(name, "DB_BEFORE", 9)) { |
| 439 |
/* ^ */ |
| 440 |
#ifdef DB_BEFORE |
| 441 |
*iv_return = DB_BEFORE; |
| 442 |
return PERL_constant_ISIV; |
| 443 |
#else |
| 444 |
return PERL_constant_NOTDEF; |
| 445 |
#endif |
| 446 |
} |
| 447 |
break; |
| 448 |
case 'S': |
| 449 |
if (memEQ(name, "DB_CURLSN", 9)) { |
| 450 |
/* ^ */ |
| 451 |
#ifdef DB_CURLSN |
| 452 |
*iv_return = DB_CURLSN; |
| 453 |
return PERL_constant_ISIV; |
| 454 |
#else |
| 455 |
return PERL_constant_NOTDEF; |
| 456 |
#endif |
| 457 |
} |
| 458 |
break; |
| 459 |
case 'T': |
| 460 |
if (memEQ(name, "DB_CREATE", 9)) { |
| 461 |
/* ^ */ |
| 462 |
#ifdef DB_CREATE |
| 463 |
*iv_return = DB_CREATE; |
| 464 |
return PERL_constant_ISIV; |
| 465 |
#else |
| 466 |
return PERL_constant_NOTDEF; |
| 467 |
#endif |
| 468 |
} |
| 469 |
break; |
| 470 |
case 'U': |
| 471 |
if (memEQ(name, "DB_CHKSUM", 9)) { |
| 472 |
/* ^ */ |
| 473 |
#ifdef DB_CHKSUM |
| 474 |
*iv_return = DB_CHKSUM; |
| 475 |
return PERL_constant_ISIV; |
| 476 |
#else |
| 477 |
return PERL_constant_NOTDEF; |
| 478 |
#endif |
| 479 |
} |
| 480 |
if (memEQ(name, "DB_RECNUM", 9)) { |
| 481 |
/* ^ */ |
| 482 |
#ifdef DB_RECNUM |
| 483 |
*iv_return = DB_RECNUM; |
| 484 |
return PERL_constant_ISIV; |
| 485 |
#else |
| 486 |
return PERL_constant_NOTDEF; |
| 487 |
#endif |
| 488 |
} |
| 489 |
break; |
| 490 |
} |
| 491 |
return PERL_constant_NOTFOUND; |
| 492 |
} |
| 493 |
|
| 494 |
static int |
| 495 |
constant_10 (pTHX_ const char *name, IV *iv_return) { |
| 496 |
/* When generated this function returned values for the list of names given |
| 497 |
here. However, subsequent manual editing may have added or removed some. |
| 498 |
DB_CONSUME DB_CURRENT DB_DELETED DB_DUPSORT DB_ENCRYPT DB_ENV_CDB |
| 499 |
DB_ENV_TXN DB_FAILCHK DB_INORDER DB_JOINENV DB_KEYLAST DB_NOERROR |
| 500 |
DB_NOFLUSH DB_NOPANIC DB_OK_HASH DB_OK_HEAP DB_PRIVATE DB_PR_PAGE |
| 501 |
DB_RECOVER DB_SALVAGE DB_SEQ_DEC DB_SEQ_INC DB_SET_LTE DB_TIMEOUT |
| 502 |
DB_TXN_CKP DB_UNKNOWN DB_UPGRADE LOGREC_ARG LOGREC_DBT LOGREC_HDR */ |
| 503 |
/* Offset 8 gives the best switch position. */ |
| 504 |
switch (name[8]) { |
| 505 |
case 'A': |
| 506 |
if (memEQ(name, "DB_OK_HEAP", 10)) { |
| 507 |
/* ^ */ |
| 508 |
#ifdef DB_OK_HEAP |
| 509 |
*iv_return = DB_OK_HEAP; |
| 510 |
return PERL_constant_ISIV; |
| 511 |
#else |
| 512 |
return PERL_constant_NOTDEF; |
| 513 |
#endif |
| 514 |
} |
| 515 |
break; |
| 516 |
case 'B': |
| 517 |
if (memEQ(name, "LOGREC_DBT", 10)) { |
| 518 |
/* ^ */ |
| 519 |
#if (DB_VERSION_MAJOR > 5) || \ |
| 520 |
(DB_VERSION_MAJOR == 5 && DB_VERSION_MINOR > 0) || \ |
| 521 |
(DB_VERSION_MAJOR == 5 && DB_VERSION_MINOR == 0 && \ |
| 522 |
DB_VERSION_PATCH >= 6) |
| 523 |
*iv_return = LOGREC_DBT; |
| 524 |
return PERL_constant_ISIV; |
| 525 |
#else |
| 526 |
return PERL_constant_NOTDEF; |
| 527 |
#endif |
| 528 |
} |
| 529 |
break; |
| 530 |
case 'D': |
| 531 |
if (memEQ(name, "DB_ENV_CDB", 10)) { |
| 532 |
/* ^ */ |
| 533 |
#ifdef DB_ENV_CDB |
| 534 |
*iv_return = DB_ENV_CDB; |
| 535 |
return PERL_constant_ISIV; |
| 536 |
#else |
| 537 |
return PERL_constant_NOTDEF; |
| 538 |
#endif |
| 539 |
} |
| 540 |
if (memEQ(name, "DB_UPGRADE", 10)) { |
| 541 |
/* ^ */ |
| 542 |
#ifdef DB_UPGRADE |
| 543 |
*iv_return = DB_UPGRADE; |
| 544 |
return PERL_constant_ISIV; |
| 545 |
#else |
| 546 |
return PERL_constant_NOTDEF; |
| 547 |
#endif |
| 548 |
} |
| 549 |
if (memEQ(name, "LOGREC_HDR", 10)) { |
| 550 |
/* ^ */ |
| 551 |
#if (DB_VERSION_MAJOR > 5) || \ |
| 552 |
(DB_VERSION_MAJOR == 5 && DB_VERSION_MINOR > 0) || \ |
| 553 |
(DB_VERSION_MAJOR == 5 && DB_VERSION_MINOR == 0 && \ |
| 554 |
DB_VERSION_PATCH >= 6) |
| 555 |
*iv_return = LOGREC_HDR; |
| 556 |
return PERL_constant_ISIV; |
| 557 |
#else |
| 558 |
return PERL_constant_NOTDEF; |
| 559 |
#endif |
| 560 |
} |
| 561 |
break; |
| 562 |
case 'E': |
| 563 |
if (memEQ(name, "DB_DELETED", 10)) { |
| 564 |
/* ^ */ |
| 565 |
#ifdef DB_DELETED |
| 566 |
*iv_return = DB_DELETED; |
| 567 |
return PERL_constant_ISIV; |
| 568 |
#else |
| 569 |
return PERL_constant_NOTDEF; |
| 570 |
#endif |
| 571 |
} |
| 572 |
if (memEQ(name, "DB_INORDER", 10)) { |
| 573 |
/* ^ */ |
| 574 |
#ifdef DB_INORDER |
| 575 |
*iv_return = DB_INORDER; |
| 576 |
return PERL_constant_ISIV; |
| 577 |
#else |
| 578 |
return PERL_constant_NOTDEF; |
| 579 |
#endif |
| 580 |
} |
| 581 |
if (memEQ(name, "DB_RECOVER", 10)) { |
| 582 |
/* ^ */ |
| 583 |
#ifdef DB_RECOVER |
| 584 |
*iv_return = DB_RECOVER; |
| 585 |
return PERL_constant_ISIV; |
| 586 |
#else |
| 587 |
return PERL_constant_NOTDEF; |
| 588 |
#endif |
| 589 |
} |
| 590 |
if (memEQ(name, "DB_SEQ_DEC", 10)) { |
| 591 |
/* ^ */ |
| 592 |
#ifdef DB_SEQ_DEC |
| 593 |
*iv_return = DB_SEQ_DEC; |
| 594 |
return PERL_constant_ISIV; |
| 595 |
#else |
| 596 |
return PERL_constant_NOTDEF; |
| 597 |
#endif |
| 598 |
} |
| 599 |
break; |
| 600 |
case 'G': |
| 601 |
if (memEQ(name, "DB_PR_PAGE", 10)) { |
| 602 |
/* ^ */ |
| 603 |
#ifdef DB_PR_PAGE |
| 604 |
*iv_return = DB_PR_PAGE; |
| 605 |
return PERL_constant_ISIV; |
| 606 |
#else |
| 607 |
return PERL_constant_NOTDEF; |
| 608 |
#endif |
| 609 |
} |
| 610 |
if (memEQ(name, "DB_SALVAGE", 10)) { |
| 611 |
/* ^ */ |
| 612 |
#ifdef DB_SALVAGE |
| 613 |
*iv_return = DB_SALVAGE; |
| 614 |
return PERL_constant_ISIV; |
| 615 |
#else |
| 616 |
return PERL_constant_NOTDEF; |
| 617 |
#endif |
| 618 |
} |
| 619 |
break; |
| 620 |
case 'H': |
| 621 |
if (memEQ(name, "DB_FAILCHK", 10)) { |
| 622 |
/* ^ */ |
| 623 |
#ifdef DB_FAILCHK |
| 624 |
*iv_return = DB_FAILCHK; |
| 625 |
return PERL_constant_ISIV; |
| 626 |
#else |
| 627 |
return PERL_constant_NOTDEF; |
| 628 |
#endif |
| 629 |
} |
| 630 |
break; |
| 631 |
case 'I': |
| 632 |
if (memEQ(name, "DB_NOPANIC", 10)) { |
| 633 |
/* ^ */ |
| 634 |
#ifdef DB_NOPANIC |
| 635 |
*iv_return = DB_NOPANIC; |
| 636 |
return PERL_constant_ISIV; |
| 637 |
#else |
| 638 |
return PERL_constant_NOTDEF; |
| 639 |
#endif |
| 640 |
} |
| 641 |
break; |
| 642 |
case 'K': |
| 643 |
if (memEQ(name, "DB_TXN_CKP", 10)) { |
| 644 |
/* ^ */ |
| 645 |
#ifdef DB_TXN_CKP |
| 646 |
*iv_return = DB_TXN_CKP; |
| 647 |
return PERL_constant_ISIV; |
| 648 |
#else |
| 649 |
return PERL_constant_NOTDEF; |
| 650 |
#endif |
| 651 |
} |
| 652 |
break; |
| 653 |
case 'M': |
| 654 |
if (memEQ(name, "DB_CONSUME", 10)) { |
| 655 |
/* ^ */ |
| 656 |
#ifdef DB_CONSUME |
| 657 |
*iv_return = DB_CONSUME; |
| 658 |
return PERL_constant_ISIV; |
| 659 |
#else |
| 660 |
return PERL_constant_NOTDEF; |
| 661 |
#endif |
| 662 |
} |
| 663 |
break; |
| 664 |
case 'N': |
| 665 |
if (memEQ(name, "DB_CURRENT", 10)) { |
| 666 |
/* ^ */ |
| 667 |
#ifdef DB_CURRENT |
| 668 |
*iv_return = DB_CURRENT; |
| 669 |
return PERL_constant_ISIV; |
| 670 |
#else |
| 671 |
return PERL_constant_NOTDEF; |
| 672 |
#endif |
| 673 |
} |
| 674 |
if (memEQ(name, "DB_JOINENV", 10)) { |
| 675 |
/* ^ */ |
| 676 |
#ifdef DB_JOINENV |
| 677 |
*iv_return = DB_JOINENV; |
| 678 |
return PERL_constant_ISIV; |
| 679 |
#else |
| 680 |
return PERL_constant_NOTDEF; |
| 681 |
#endif |
| 682 |
} |
| 683 |
if (memEQ(name, "DB_SEQ_INC", 10)) { |
| 684 |
/* ^ */ |
| 685 |
#ifdef DB_SEQ_INC |
| 686 |
*iv_return = DB_SEQ_INC; |
| 687 |
return PERL_constant_ISIV; |
| 688 |
#else |
| 689 |
return PERL_constant_NOTDEF; |
| 690 |
#endif |
| 691 |
} |
| 692 |
break; |
| 693 |
case 'O': |
| 694 |
if (memEQ(name, "DB_NOERROR", 10)) { |
| 695 |
/* ^ */ |
| 696 |
#ifdef DB_NOERROR |
| 697 |
*iv_return = DB_NOERROR; |
| 698 |
return PERL_constant_ISIV; |
| 699 |
#else |
| 700 |
return PERL_constant_NOTDEF; |
| 701 |
#endif |
| 702 |
} |
| 703 |
break; |
| 704 |
case 'P': |
| 705 |
if (memEQ(name, "DB_ENCRYPT", 10)) { |
| 706 |
/* ^ */ |
| 707 |
#ifdef DB_ENCRYPT |
| 708 |
*iv_return = DB_ENCRYPT; |
| 709 |
return PERL_constant_ISIV; |
| 710 |
#else |
| 711 |
return PERL_constant_NOTDEF; |
| 712 |
#endif |
| 713 |
} |
| 714 |
break; |
| 715 |
case 'R': |
| 716 |
if (memEQ(name, "DB_DUPSORT", 10)) { |
| 717 |
/* ^ */ |
| 718 |
#ifdef DB_DUPSORT |
| 719 |
*iv_return = DB_DUPSORT; |
| 720 |
return PERL_constant_ISIV; |
| 721 |
#else |
| 722 |
return PERL_constant_NOTDEF; |
| 723 |
#endif |
| 724 |
} |
| 725 |
if (memEQ(name, "LOGREC_ARG", 10)) { |
| 726 |
/* ^ */ |
| 727 |
#if (DB_VERSION_MAJOR > 5) || \ |
| 728 |
(DB_VERSION_MAJOR == 5 && DB_VERSION_MINOR > 0) || \ |
| 729 |
(DB_VERSION_MAJOR == 5 && DB_VERSION_MINOR == 0 && \ |
| 730 |
DB_VERSION_PATCH >= 6) |
| 731 |
*iv_return = LOGREC_ARG; |
| 732 |
return PERL_constant_ISIV; |
| 733 |
#else |
| 734 |
return PERL_constant_NOTDEF; |
| 735 |
#endif |
| 736 |
} |
| 737 |
break; |
| 738 |
case 'S': |
| 739 |
if (memEQ(name, "DB_KEYLAST", 10)) { |
| 740 |
/* ^ */ |
| 741 |
#ifdef DB_KEYLAST |
| 742 |
*iv_return = DB_KEYLAST; |
| 743 |
return PERL_constant_ISIV; |
| 744 |
#else |
| 745 |
return PERL_constant_NOTDEF; |
| 746 |
#endif |
| 747 |
} |
| 748 |
if (memEQ(name, "DB_NOFLUSH", 10)) { |
| 749 |
/* ^ */ |
| 750 |
#ifdef DB_NOFLUSH |
| 751 |
*iv_return = DB_NOFLUSH; |
| 752 |
return PERL_constant_ISIV; |
| 753 |
#else |
| 754 |
return PERL_constant_NOTDEF; |
| 755 |
#endif |
| 756 |
} |
| 757 |
if (memEQ(name, "DB_OK_HASH", 10)) { |
| 758 |
/* ^ */ |
| 759 |
#ifdef DB_OK_HASH |
| 760 |
*iv_return = DB_OK_HASH; |
| 761 |
return PERL_constant_ISIV; |
| 762 |
#else |
| 763 |
return PERL_constant_NOTDEF; |
| 764 |
#endif |
| 765 |
} |
| 766 |
break; |
| 767 |
case 'T': |
| 768 |
if (memEQ(name, "DB_PRIVATE", 10)) { |
| 769 |
/* ^ */ |
| 770 |
#ifdef DB_PRIVATE |
| 771 |
*iv_return = DB_PRIVATE; |
| 772 |
return PERL_constant_ISIV; |
| 773 |
#else |
| 774 |
return PERL_constant_NOTDEF; |
| 775 |
#endif |
| 776 |
} |
| 777 |
if (memEQ(name, "DB_SET_LTE", 10)) { |
| 778 |
/* ^ */ |
| 779 |
#ifdef DB_SET_LTE |
| 780 |
*iv_return = DB_SET_LTE; |
| 781 |
return PERL_constant_ISIV; |
| 782 |
#else |
| 783 |
return PERL_constant_NOTDEF; |
| 784 |
#endif |
| 785 |
} |
| 786 |
break; |
| 787 |
case 'U': |
| 788 |
if (memEQ(name, "DB_TIMEOUT", 10)) { |
| 789 |
/* ^ */ |
| 790 |
#ifdef DB_TIMEOUT |
| 791 |
*iv_return = DB_TIMEOUT; |
| 792 |
return PERL_constant_ISIV; |
| 793 |
#else |
| 794 |
return PERL_constant_NOTDEF; |
| 795 |
#endif |
| 796 |
} |
| 797 |
break; |
| 798 |
case 'W': |
| 799 |
if (memEQ(name, "DB_UNKNOWN", 10)) { |
| 800 |
/* ^ */ |
| 801 |
#if (DB_VERSION_MAJOR > 2) || \ |
| 802 |
(DB_VERSION_MAJOR == 2 && DB_VERSION_MINOR > 0) || \ |
| 803 |
(DB_VERSION_MAJOR == 2 && DB_VERSION_MINOR == 0 && \ |
| 804 |
DB_VERSION_PATCH >= 3) |
| 805 |
*iv_return = DB_UNKNOWN; |
| 806 |
return PERL_constant_ISIV; |
| 807 |
#else |
| 808 |
return PERL_constant_NOTDEF; |
| 809 |
#endif |
| 810 |
} |
| 811 |
break; |
| 812 |
case 'X': |
| 813 |
if (memEQ(name, "DB_ENV_TXN", 10)) { |
| 814 |
/* ^ */ |
| 815 |
#ifdef DB_ENV_TXN |
| 816 |
*iv_return = DB_ENV_TXN; |
| 817 |
return PERL_constant_ISIV; |
| 818 |
#else |
| 819 |
return PERL_constant_NOTDEF; |
| 820 |
#endif |
| 821 |
} |
| 822 |
break; |
| 823 |
} |
| 824 |
return PERL_constant_NOTFOUND; |
| 825 |
} |
| 826 |
|
| 827 |
static int |
| 828 |
constant_11 (pTHX_ const char *name, IV *iv_return) { |
| 829 |
/* When generated this function returned values for the list of names given |
| 830 |
here. However, subsequent manual editing may have added or removed some. |
| 831 |
DB2_AM_EXCL DB_APP_INIT DB_ARCH_ABS DB_ARCH_LOG DB_DEGREE_2 DB_DSYNC_DB |
| 832 |
DB_FILEOPEN DB_FIXEDLEN DB_GET_BOTH DB_GID_SIZE DB_INIT_CDB DB_INIT_LOG |
| 833 |
DB_INIT_REP DB_INIT_TXN DB_KEYEMPTY DB_KEYEXIST DB_KEYFIRST DB_LOCKDOWN |
| 834 |
DB_LOCK_GET DB_LOCK_PUT DB_LOGMAGIC DB_LOG_DISK DB_LOG_PERM DB_LOG_ZERO |
| 835 |
DB_MEM_LOCK DB_MULTIPLE DB_NEXT_DUP DB_NOSERVER DB_NOTFOUND DB_OK_BTREE |
| 836 |
DB_OK_QUEUE DB_OK_RECNO DB_POSITION DB_PREV_DUP DB_QAMMAGIC DB_REGISTER |
| 837 |
DB_RENUMBER DB_SEQ_WRAP DB_SNAPSHOT DB_STAT_ALL DB_ST_DUPOK DB_ST_RELEN |
| 838 |
DB_TRUNCATE DB_TXNMAGIC DB_TXN_BULK DB_TXN_LOCK DB_TXN_REDO DB_TXN_SYNC |
| 839 |
DB_TXN_UNDO DB_TXN_WAIT DB_WRNOSYNC DB_YIELDCPU LOGREC_DATA LOGREC_DBOP |
| 840 |
LOGREC_Done LOGREC_TIME */ |
| 841 |
/* Offset 8 gives the best switch position. */ |
| 842 |
switch (name[8]) { |
| 843 |
case 'A': |
| 844 |
if (memEQ(name, "DB_ARCH_ABS", 11)) { |
| 845 |
/* ^ */ |
| 846 |
#ifdef DB_ARCH_ABS |
| 847 |
*iv_return = DB_ARCH_ABS; |
| 848 |
return PERL_constant_ISIV; |
| 849 |
#else |
| 850 |
return PERL_constant_NOTDEF; |
| 851 |
#endif |
| 852 |
} |
| 853 |
if (memEQ(name, "DB_STAT_ALL", 11)) { |
| 854 |
/* ^ */ |
| 855 |
#ifdef DB_STAT_ALL |
| 856 |
*iv_return = DB_STAT_ALL; |
| 857 |
return PERL_constant_ISIV; |
| 858 |
#else |
| 859 |
return PERL_constant_NOTDEF; |
| 860 |
#endif |
| 861 |
} |
| 862 |
if (memEQ(name, "DB_TRUNCATE", 11)) { |
| 863 |
/* ^ */ |
| 864 |
#ifdef DB_TRUNCATE |
| 865 |
*iv_return = DB_TRUNCATE; |
| 866 |
return PERL_constant_ISIV; |
| 867 |
#else |
| 868 |
return PERL_constant_NOTDEF; |
| 869 |
#endif |
| 870 |
} |
| 871 |
if (memEQ(name, "DB_TXN_WAIT", 11)) { |
| 872 |
/* ^ */ |
| 873 |
#ifdef DB_TXN_WAIT |
| 874 |
*iv_return = DB_TXN_WAIT; |
| 875 |
return PERL_constant_ISIV; |
| 876 |
#else |
| 877 |
return PERL_constant_NOTDEF; |
| 878 |
#endif |
| 879 |
} |
| 880 |
if (memEQ(name, "LOGREC_DATA", 11)) { |
| 881 |
/* ^ */ |
| 882 |
#if (DB_VERSION_MAJOR > 5) || \ |
| 883 |
(DB_VERSION_MAJOR == 5 && DB_VERSION_MINOR > 0) || \ |
| 884 |
(DB_VERSION_MAJOR == 5 && DB_VERSION_MINOR == 0 && \ |
| 885 |
DB_VERSION_PATCH >= 6) |
| 886 |
*iv_return = LOGREC_DATA; |
| 887 |
return PERL_constant_ISIV; |
| 888 |
#else |
| 889 |
return PERL_constant_NOTDEF; |
| 890 |
#endif |
| 891 |
} |
| 892 |
break; |
| 893 |
case 'B': |
| 894 |
if (memEQ(name, "DB_RENUMBER", 11)) { |
| 895 |
/* ^ */ |
| 896 |
#ifdef DB_RENUMBER |
| 897 |
*iv_return = DB_RENUMBER; |
| 898 |
return PERL_constant_ISIV; |
| 899 |
#else |
| 900 |
return PERL_constant_NOTDEF; |
| 901 |
#endif |
| 902 |
} |
| 903 |
if (memEQ(name, "LOGREC_DBOP", 11)) { |
| 904 |
/* ^ */ |
| 905 |
#if (DB_VERSION_MAJOR > 5) || \ |
| 906 |
(DB_VERSION_MAJOR == 5 && DB_VERSION_MINOR > 0) || \ |
| 907 |
(DB_VERSION_MAJOR == 5 && DB_VERSION_MINOR == 0 && \ |
| 908 |
DB_VERSION_PATCH >= 6) |
| 909 |
*iv_return = LOGREC_DBOP; |
| 910 |
return PERL_constant_ISIV; |
| 911 |
#else |
| 912 |
return PERL_constant_NOTDEF; |
| 913 |
#endif |
| 914 |
} |
| 915 |
break; |
| 916 |
case 'C': |
| 917 |
if (memEQ(name, "DB_INIT_CDB", 11)) { |
| 918 |
/* ^ */ |
| 919 |
#ifdef DB_INIT_CDB |
| 920 |
*iv_return = DB_INIT_CDB; |
| 921 |
return PERL_constant_ISIV; |
| 922 |
#else |
| 923 |
return PERL_constant_NOTDEF; |
| 924 |
#endif |
| 925 |
} |
| 926 |
if (memEQ(name, "DB_OK_RECNO", 11)) { |
| 927 |
/* ^ */ |
| 928 |
#ifdef DB_OK_RECNO |
| 929 |
*iv_return = DB_OK_RECNO; |
| 930 |
return PERL_constant_ISIV; |
| 931 |
#else |
| 932 |
return PERL_constant_NOTDEF; |
| 933 |
#endif |
| 934 |
} |
| 935 |
if (memEQ(name, "DB_YIELDCPU", 11)) { |
| 936 |
/* ^ */ |
| 937 |
#ifdef DB_YIELDCPU |
| 938 |
*iv_return = DB_YIELDCPU; |
| 939 |
return PERL_constant_ISIV; |
| 940 |
#else |
| 941 |
return PERL_constant_NOTDEF; |
| 942 |
#endif |
| 943 |
} |
| 944 |
break; |
| 945 |
case 'D': |
| 946 |
if (memEQ(name, "DB_NEXT_DUP", 11)) { |
| 947 |
/* ^ */ |
| 948 |
#ifdef DB_NEXT_DUP |
| 949 |
*iv_return = DB_NEXT_DUP; |
| 950 |
return PERL_constant_ISIV; |
| 951 |
#else |
| 952 |
return PERL_constant_NOTDEF; |
| 953 |
#endif |
| 954 |
} |
| 955 |
if (memEQ(name, "DB_PREV_DUP", 11)) { |
| 956 |
/* ^ */ |
| 957 |
#ifdef DB_PREV_DUP |
| 958 |
*iv_return = DB_PREV_DUP; |
| 959 |
return PERL_constant_ISIV; |
| 960 |
#else |
| 961 |
return PERL_constant_NOTDEF; |
| 962 |
#endif |
| 963 |
} |
| 964 |
break; |
| 965 |
case 'E': |
| 966 |
if (memEQ(name, "DB_DEGREE_2", 11)) { |
| 967 |
/* ^ */ |
| 968 |
#ifdef DB_DEGREE_2 |
| 969 |
*iv_return = DB_DEGREE_2; |
| 970 |
return PERL_constant_ISIV; |
| 971 |
#else |
| 972 |
return PERL_constant_NOTDEF; |
| 973 |
#endif |
| 974 |
} |
| 975 |
if (memEQ(name, "DB_LOG_PERM", 11)) { |
| 976 |
/* ^ */ |
| 977 |
#ifdef DB_LOG_PERM |
| 978 |
*iv_return = DB_LOG_PERM; |
| 979 |
return PERL_constant_ISIV; |
| 980 |
#else |
| 981 |
return PERL_constant_NOTDEF; |
| 982 |
#endif |
| 983 |
} |
| 984 |
if (memEQ(name, "DB_LOG_ZERO", 11)) { |
| 985 |
/* ^ */ |
| 986 |
#ifdef DB_LOG_ZERO |
| 987 |
*iv_return = DB_LOG_ZERO; |
| 988 |
return PERL_constant_ISIV; |
| 989 |
#else |
| 990 |
return PERL_constant_NOTDEF; |
| 991 |
#endif |
| 992 |
} |
| 993 |
if (memEQ(name, "DB_OK_QUEUE", 11)) { |
| 994 |
/* ^ */ |
| 995 |
#ifdef DB_OK_QUEUE |
| 996 |
*iv_return = DB_OK_QUEUE; |
| 997 |
return PERL_constant_ISIV; |
| 998 |
#else |
| 999 |
return PERL_constant_NOTDEF; |
| 1000 |
#endif |
| 1001 |
} |
| 1002 |
if (memEQ(name, "DB_TXN_REDO", 11)) { |
| 1003 |
/* ^ */ |
| 1004 |
#ifdef DB_TXN_REDO |
| 1005 |
*iv_return = DB_TXN_REDO; |
| 1006 |
return PERL_constant_ISIV; |
| 1007 |
#else |
| 1008 |
return PERL_constant_NOTDEF; |
| 1009 |
#endif |
| 1010 |
} |
| 1011 |
break; |
| 1012 |
case 'G': |
| 1013 |
if (memEQ(name, "DB_LOCK_GET", 11)) { |
| 1014 |
/* ^ */ |
| 1015 |
#if (DB_VERSION_MAJOR > 2) || \ |
| 1016 |
(DB_VERSION_MAJOR == 2 && DB_VERSION_MINOR > 0) || \ |
| 1017 |
(DB_VERSION_MAJOR == 2 && DB_VERSION_MINOR == 0 && \ |
| 1018 |
DB_VERSION_PATCH >= 3) |
| 1019 |
*iv_return = DB_LOCK_GET; |
| 1020 |
return PERL_constant_ISIV; |
| 1021 |
#else |
| 1022 |
return PERL_constant_NOTDEF; |
| 1023 |
#endif |
| 1024 |
} |
| 1025 |
if (memEQ(name, "DB_LOGMAGIC", 11)) { |
| 1026 |
/* ^ */ |
| 1027 |
#ifdef DB_LOGMAGIC |
| 1028 |
*iv_return = DB_LOGMAGIC; |
| 1029 |
return PERL_constant_ISIV; |
| 1030 |
#else |
| 1031 |
return PERL_constant_NOTDEF; |
| 1032 |
#endif |
| 1033 |
} |
| 1034 |
if (memEQ(name, "DB_QAMMAGIC", 11)) { |
| 1035 |
/* ^ */ |
| 1036 |
#ifdef DB_QAMMAGIC |
| 1037 |
*iv_return = DB_QAMMAGIC; |
| 1038 |
return PERL_constant_ISIV; |
| 1039 |
#else |
| 1040 |
return PERL_constant_NOTDEF; |
| 1041 |
#endif |
| 1042 |
} |
| 1043 |
if (memEQ(name, "DB_TXNMAGIC", 11)) { |
| 1044 |
/* ^ */ |
| 1045 |
#ifdef DB_TXNMAGIC |
| 1046 |
*iv_return = DB_TXNMAGIC; |
| 1047 |
return PERL_constant_ISIV; |
| 1048 |
#else |
| 1049 |
return PERL_constant_NOTDEF; |
| 1050 |
#endif |
| 1051 |
} |
| 1052 |
break; |
| 1053 |
case 'H': |
| 1054 |
if (memEQ(name, "DB_SNAPSHOT", 11)) { |
| 1055 |
/* ^ */ |
| 1056 |
#ifdef DB_SNAPSHOT |
| 1057 |
*iv_return = DB_SNAPSHOT; |
| 1058 |
return PERL_constant_ISIV; |
| 1059 |
#else |
| 1060 |
return PERL_constant_NOTDEF; |
| 1061 |
#endif |
| 1062 |
} |
| 1063 |
break; |
| 1064 |
case 'I': |
| 1065 |
if (memEQ(name, "DB_GID_SIZE", 11)) { |
| 1066 |
/* ^ */ |
| 1067 |
#ifdef DB_GID_SIZE |
| 1068 |
*iv_return = DB_GID_SIZE; |
| 1069 |
return PERL_constant_ISIV; |
| 1070 |
#else |
| 1071 |
return PERL_constant_NOTDEF; |
| 1072 |
#endif |
| 1073 |
} |
| 1074 |
if (memEQ(name, "DB_KEYEXIST", 11)) { |
| 1075 |
/* ^ */ |
| 1076 |
#ifdef DB_KEYEXIST |
| 1077 |
*iv_return = DB_KEYEXIST; |
| 1078 |
return PERL_constant_ISIV; |
| 1079 |
#else |
| 1080 |
return PERL_constant_NOTDEF; |
| 1081 |
#endif |
| 1082 |
} |
| 1083 |
if (memEQ(name, "DB_LOG_DISK", 11)) { |
| 1084 |
/* ^ */ |
| 1085 |
#ifdef DB_LOG_DISK |
| 1086 |
*iv_return = DB_LOG_DISK; |
| 1087 |
return PERL_constant_ISIV; |
| 1088 |
#else |
| 1089 |
return PERL_constant_NOTDEF; |
| 1090 |
#endif |
| 1091 |
} |
| 1092 |
if (memEQ(name, "DB_POSITION", 11)) { |
| 1093 |
/* ^ */ |
| 1094 |
#ifdef DB_POSITION |
| 1095 |
*iv_return = DB_POSITION; |
| 1096 |
return PERL_constant_ISIV; |
| 1097 |
#else |
| 1098 |
return PERL_constant_NOTDEF; |
| 1099 |
#endif |
| 1100 |
} |
| 1101 |
if (memEQ(name, "LOGREC_TIME", 11)) { |
| 1102 |
/* ^ */ |
| 1103 |
#if (DB_VERSION_MAJOR > 5) || \ |
| 1104 |
(DB_VERSION_MAJOR == 5 && DB_VERSION_MINOR > 0) || \ |
| 1105 |
(DB_VERSION_MAJOR == 5 && DB_VERSION_MINOR == 0 && \ |
| 1106 |
DB_VERSION_PATCH >= 6) |
| 1107 |
*iv_return = LOGREC_TIME; |
| 1108 |
return PERL_constant_ISIV; |
| 1109 |
#else |
| 1110 |
return PERL_constant_NOTDEF; |
| 1111 |
#endif |
| 1112 |
} |
| 1113 |
break; |
| 1114 |
case 'L': |
| 1115 |
if (memEQ(name, "DB_ARCH_LOG", 11)) { |
| 1116 |
/* ^ */ |
| 1117 |
#ifdef DB_ARCH_LOG |
| 1118 |
*iv_return = DB_ARCH_LOG; |
| 1119 |
return PERL_constant_ISIV; |
| 1120 |
#else |
| 1121 |
return PERL_constant_NOTDEF; |
| 1122 |
#endif |
| 1123 |
} |
| 1124 |
if (memEQ(name, "DB_FIXEDLEN", 11)) { |
| 1125 |
/* ^ */ |
| 1126 |
#ifdef DB_FIXEDLEN |
| 1127 |
*iv_return = DB_FIXEDLEN; |
| 1128 |
return PERL_constant_ISIV; |
| 1129 |
#else |
| 1130 |
return PERL_constant_NOTDEF; |
| 1131 |
#endif |
| 1132 |
} |
| 1133 |
if (memEQ(name, "DB_INIT_LOG", 11)) { |
| 1134 |
/* ^ */ |
| 1135 |
#ifdef DB_INIT_LOG |
| 1136 |
*iv_return = DB_INIT_LOG; |
| 1137 |
return PERL_constant_ISIV; |
| 1138 |
#else |
| 1139 |
return PERL_constant_NOTDEF; |
| 1140 |
#endif |
| 1141 |
} |
| 1142 |
if (memEQ(name, "DB_ST_RELEN", 11)) { |
| 1143 |
/* ^ */ |
| 1144 |
#ifdef DB_ST_RELEN |
| 1145 |
*iv_return = DB_ST_RELEN; |
| 1146 |
return PERL_constant_ISIV; |
| 1147 |
#else |
| 1148 |
return PERL_constant_NOTDEF; |
| 1149 |
#endif |
| 1150 |
} |
| 1151 |
break; |
| 1152 |
case 'N': |
| 1153 |
if (memEQ(name, "DB_APP_INIT", 11)) { |
| 1154 |
/* ^ */ |
| 1155 |
#ifdef DB_APP_INIT |
| 1156 |
*iv_return = DB_APP_INIT; |
| 1157 |
return PERL_constant_ISIV; |
| 1158 |
#else |
| 1159 |
return PERL_constant_NOTDEF; |
| 1160 |
#endif |
| 1161 |
} |
| 1162 |
if (memEQ(name, "DB_TXN_UNDO", 11)) { |
| 1163 |
/* ^ */ |
| 1164 |
#ifdef DB_TXN_UNDO |
| 1165 |
*iv_return = DB_TXN_UNDO; |
| 1166 |
return PERL_constant_ISIV; |
| 1167 |
#else |
| 1168 |
return PERL_constant_NOTDEF; |
| 1169 |
#endif |
| 1170 |
} |
| 1171 |
break; |
| 1172 |
case 'O': |
| 1173 |
if (memEQ(name, "DB_GET_BOTH", 11)) { |
| 1174 |
/* ^ */ |
| 1175 |
#ifdef DB_GET_BOTH |
| 1176 |
*iv_return = DB_GET_BOTH; |
| 1177 |
return PERL_constant_ISIV; |
| 1178 |
#else |
| 1179 |
return PERL_constant_NOTDEF; |
| 1180 |
#endif |
| 1181 |
} |
| 1182 |
if (memEQ(name, "DB_LOCKDOWN", 11)) { |
| 1183 |
/* ^ */ |
| 1184 |
#ifdef DB_LOCKDOWN |
| 1185 |
*iv_return = DB_LOCKDOWN; |
| 1186 |
return PERL_constant_ISIV; |
| 1187 |
#else |
| 1188 |
return PERL_constant_NOTDEF; |
| 1189 |
#endif |
| 1190 |
} |
| 1191 |
if (memEQ(name, "DB_MEM_LOCK", 11)) { |
| 1192 |
/* ^ */ |
| 1193 |
#if (DB_VERSION_MAJOR > 5) || \ |
| 1194 |
(DB_VERSION_MAJOR == 5 && DB_VERSION_MINOR > 2) || \ |
| 1195 |
(DB_VERSION_MAJOR == 5 && DB_VERSION_MINOR == 2 && \ |
| 1196 |
DB_VERSION_PATCH >= 14) |
| 1197 |
*iv_return = DB_MEM_LOCK; |
| 1198 |
return PERL_constant_ISIV; |
| 1199 |
#else |
| 1200 |
return PERL_constant_NOTDEF; |
| 1201 |
#endif |
| 1202 |
} |
| 1203 |
if (memEQ(name, "DB_TXN_LOCK", 11)) { |
| 1204 |
/* ^ */ |
| 1205 |
#ifdef DB_TXN_LOCK |
| 1206 |
*iv_return = DB_TXN_LOCK; |
| 1207 |
return PERL_constant_ISIV; |
| 1208 |
#else |
| 1209 |
return PERL_constant_NOTDEF; |
| 1210 |
#endif |
| 1211 |
} |
| 1212 |
break; |
| 1213 |
case 'P': |
| 1214 |
if (memEQ(name, "DB_FILEOPEN", 11)) { |
| 1215 |
/* ^ */ |
| 1216 |
#ifdef DB_FILEOPEN |
| 1217 |
*iv_return = DB_FILEOPEN; |
| 1218 |
return PERL_constant_ISIV; |
| 1219 |
#else |
| 1220 |
return PERL_constant_NOTDEF; |
| 1221 |
#endif |
| 1222 |
} |
| 1223 |
if (memEQ(name, "DB_KEYEMPTY", 11)) { |
| 1224 |
/* ^ */ |
| 1225 |
#ifdef DB_KEYEMPTY |
| 1226 |
*iv_return = DB_KEYEMPTY; |
| 1227 |
return PERL_constant_ISIV; |
| 1228 |
#else |
| 1229 |
return PERL_constant_NOTDEF; |
| 1230 |
#endif |
| 1231 |
} |
| 1232 |
if (memEQ(name, "DB_LOCK_PUT", 11)) { |
| 1233 |
/* ^ */ |
| 1234 |
#if (DB_VERSION_MAJOR > 2) || \ |
| 1235 |
(DB_VERSION_MAJOR == 2 && DB_VERSION_MINOR > 0) || \ |
| 1236 |
(DB_VERSION_MAJOR == 2 && DB_VERSION_MINOR == 0 && \ |
| 1237 |
DB_VERSION_PATCH >= 3) |
| 1238 |
*iv_return = DB_LOCK_PUT; |
| 1239 |
return PERL_constant_ISIV; |
| 1240 |
#else |
| 1241 |
return PERL_constant_NOTDEF; |
| 1242 |
#endif |
| 1243 |
} |
| 1244 |
if (memEQ(name, "DB_MULTIPLE", 11)) { |
| 1245 |
/* ^ */ |
| 1246 |
#ifdef DB_MULTIPLE |
| 1247 |
*iv_return = DB_MULTIPLE; |
| 1248 |
return PERL_constant_ISIV; |
| 1249 |
#else |
| 1250 |
return PERL_constant_NOTDEF; |
| 1251 |
#endif |
| 1252 |
} |
| 1253 |
if (memEQ(name, "DB_ST_DUPOK", 11)) { |
| 1254 |
/* ^ */ |
| 1255 |
#ifdef DB_ST_DUPOK |
| 1256 |
*iv_return = DB_ST_DUPOK; |
| 1257 |
return PERL_constant_ISIV; |
| 1258 |
#else |
| 1259 |
return PERL_constant_NOTDEF; |
| 1260 |
#endif |
| 1261 |
} |
| 1262 |
break; |
| 1263 |
case 'R': |
| 1264 |
if (memEQ(name, "DB_INIT_REP", 11)) { |
| 1265 |
/* ^ */ |
| 1266 |
#ifdef DB_INIT_REP |
| 1267 |
*iv_return = DB_INIT_REP; |
| 1268 |
return PERL_constant_ISIV; |
| 1269 |
#else |
| 1270 |
return PERL_constant_NOTDEF; |
| 1271 |
#endif |
| 1272 |
} |
| 1273 |
if (memEQ(name, "DB_KEYFIRST", 11)) { |
| 1274 |
/* ^ */ |
| 1275 |
#ifdef DB_KEYFIRST |
| 1276 |
*iv_return = DB_KEYFIRST; |
| 1277 |
return PERL_constant_ISIV; |
| 1278 |
#else |
| 1279 |
return PERL_constant_NOTDEF; |
| 1280 |
#endif |
| 1281 |
} |
| 1282 |
if (memEQ(name, "DB_OK_BTREE", 11)) { |
| 1283 |
/* ^ */ |
| 1284 |
#ifdef DB_OK_BTREE |
| 1285 |
*iv_return = DB_OK_BTREE; |
| 1286 |
return PERL_constant_ISIV; |
| 1287 |
#else |
| 1288 |
return PERL_constant_NOTDEF; |
| 1289 |
#endif |
| 1290 |
} |
| 1291 |
if (memEQ(name, "DB_SEQ_WRAP", 11)) { |
| 1292 |
/* ^ */ |
| 1293 |
#ifdef DB_SEQ_WRAP |
| 1294 |
*iv_return = DB_SEQ_WRAP; |
| 1295 |
return PERL_constant_ISIV; |
| 1296 |
#else |
| 1297 |
return PERL_constant_NOTDEF; |
| 1298 |
#endif |
| 1299 |
} |
| 1300 |
break; |
| 1301 |
case 'T': |
| 1302 |
if (memEQ(name, "DB_INIT_TXN", 11)) { |
| 1303 |
/* ^ */ |
| 1304 |
#ifdef DB_INIT_TXN |
| 1305 |
*iv_return = DB_INIT_TXN; |
| 1306 |
return PERL_constant_ISIV; |
| 1307 |
#else |
| 1308 |
return PERL_constant_NOTDEF; |
| 1309 |
#endif |
| 1310 |
} |
| 1311 |
if (memEQ(name, "DB_REGISTER", 11)) { |
| 1312 |
/* ^ */ |
| 1313 |
#ifdef DB_REGISTER |
| 1314 |
*iv_return = DB_REGISTER; |
| 1315 |
return PERL_constant_ISIV; |
| 1316 |
#else |
| 1317 |
return PERL_constant_NOTDEF; |
| 1318 |
#endif |
| 1319 |
} |
| 1320 |
break; |
| 1321 |
case 'U': |
| 1322 |
if (memEQ(name, "DB_NOTFOUND", 11)) { |
| 1323 |
/* ^ */ |
| 1324 |
#ifdef DB_NOTFOUND |
| 1325 |
*iv_return = DB_NOTFOUND; |
| 1326 |
return PERL_constant_ISIV; |
| 1327 |
#else |
| 1328 |
return PERL_constant_NOTDEF; |
| 1329 |
#endif |
| 1330 |
} |
| 1331 |
if (memEQ(name, "DB_TXN_BULK", 11)) { |
| 1332 |
/* ^ */ |
| 1333 |
#ifdef DB_TXN_BULK |
| 1334 |
*iv_return = DB_TXN_BULK; |
| 1335 |
return PERL_constant_ISIV; |
| 1336 |
#else |
| 1337 |
return PERL_constant_NOTDEF; |
| 1338 |
#endif |
| 1339 |
} |
| 1340 |
break; |
| 1341 |
case 'V': |
| 1342 |
if (memEQ(name, "DB_NOSERVER", 11)) { |
| 1343 |
/* ^ */ |
| 1344 |
#ifdef DB_NOSERVER |
| 1345 |
*iv_return = DB_NOSERVER; |
| 1346 |
return PERL_constant_ISIV; |
| 1347 |
#else |
| 1348 |
return PERL_constant_NOTDEF; |
| 1349 |
#endif |
| 1350 |
} |
| 1351 |
break; |
| 1352 |
case 'X': |
| 1353 |
if (memEQ(name, "DB2_AM_EXCL", 11)) { |
| 1354 |
/* ^ */ |
| 1355 |
#ifdef DB2_AM_EXCL |
| 1356 |
*iv_return = DB2_AM_EXCL; |
| 1357 |
return PERL_constant_ISIV; |
| 1358 |
#else |
| 1359 |
return PERL_constant_NOTDEF; |
| 1360 |
#endif |
| 1361 |
} |
| 1362 |
break; |
| 1363 |
case 'Y': |
| 1364 |
if (memEQ(name, "DB_TXN_SYNC", 11)) { |
| 1365 |
/* ^ */ |
| 1366 |
#ifdef DB_TXN_SYNC |
| 1367 |
*iv_return = DB_TXN_SYNC; |
| 1368 |
return PERL_constant_ISIV; |
| 1369 |
#else |
| 1370 |
return PERL_constant_NOTDEF; |
| 1371 |
#endif |
| 1372 |
} |
| 1373 |
if (memEQ(name, "DB_WRNOSYNC", 11)) { |
| 1374 |
/* ^ */ |
| 1375 |
#ifdef DB_WRNOSYNC |
| 1376 |
*iv_return = DB_WRNOSYNC; |
| 1377 |
return PERL_constant_ISIV; |
| 1378 |
#else |
| 1379 |
return PERL_constant_NOTDEF; |
| 1380 |
#endif |
| 1381 |
} |
| 1382 |
break; |
| 1383 |
case '_': |
| 1384 |
if (memEQ(name, "DB_DSYNC_DB", 11)) { |
| 1385 |
/* ^ */ |
| 1386 |
#ifdef DB_DSYNC_DB |
| 1387 |
*iv_return = DB_DSYNC_DB; |
| 1388 |
return PERL_constant_ISIV; |
| 1389 |
#else |
| 1390 |
return PERL_constant_NOTDEF; |
| 1391 |
#endif |
| 1392 |
} |
| 1393 |
break; |
| 1394 |
case 'o': |
| 1395 |
if (memEQ(name, "LOGREC_Done", 11)) { |
| 1396 |
/* ^ */ |
| 1397 |
#if (DB_VERSION_MAJOR > 5) || \ |
| 1398 |
(DB_VERSION_MAJOR == 5 && DB_VERSION_MINOR > 0) || \ |
| 1399 |
(DB_VERSION_MAJOR == 5 && DB_VERSION_MINOR == 0 && \ |
| 1400 |
DB_VERSION_PATCH >= 6) |
| 1401 |
*iv_return = LOGREC_Done; |
| 1402 |
return PERL_constant_ISIV; |
| 1403 |
#else |
| 1404 |
return PERL_constant_NOTDEF; |
| 1405 |
#endif |
| 1406 |
} |
| 1407 |
break; |
| 1408 |
} |
| 1409 |
return PERL_constant_NOTFOUND; |
| 1410 |
} |
| 1411 |
|
| 1412 |
static int |
| 1413 |
constant_12 (pTHX_ const char *name, IV *iv_return) { |
| 1414 |
/* When generated this function returned values for the list of names given |
| 1415 |
here. However, subsequent manual editing may have added or removed some. |
| 1416 |
DB_ARCH_DATA DB_CDB_ALLDB DB_CL_WRITER DB_DELIMITER DB_DIRECT_DB |
| 1417 |
DB_DSYNC_LOG DB_DUPCURSOR DB_ENV_FATAL DB_FAST_STAT DB_FORCESYNC |
| 1418 |
DB_GET_BOTHC DB_GET_RECNO DB_HASHMAGIC DB_HEAPMAGIC DB_HEAP_FULL |
| 1419 |
DB_INIT_LOCK DB_JOIN_ITEM DB_LOCKMAGIC DB_LOCK_DUMP DB_LOCK_RW_N |
| 1420 |
DB_LOGCHKSUM DB_LOGOLDVER DB_LOG_DSYNC DB_MAX_PAGES DB_MEM_LOGID |
| 1421 |
DB_MPOOL_NEW DB_MPOOL_TRY DB_NEEDSPLIT DB_NODUPDATA DB_NOLOCKING |
| 1422 |
DB_NORECURSE DB_OVERWRITE DB_PAGEYIELD DB_PAGE_LOCK DB_PERMANENT |
| 1423 |
DB_POSITIONI DB_PRINTABLE DB_QAMOLDVER DB_RPCCLIENT DB_SET_RANGE |
| 1424 |
DB_SET_RECNO DB_ST_DUPSET DB_ST_RECNUM DB_SWAPBYTES DB_TEMPORARY |
| 1425 |
DB_TXN_ABORT DB_TXN_APPLY DB_TXN_PRINT DB_WRITELOCK DB_WRITEOPEN |
| 1426 |
DB_XA_CREATE LOGREC_LOCKS LOGREC_PGDBT */ |
| 1427 |
/* Offset 3 gives the best switch position. */ |
| 1428 |
switch (name[3]) { |
| 1429 |
case 'A': |
| 1430 |
if (memEQ(name, "DB_ARCH_DATA", 12)) { |
| 1431 |
/* ^ */ |
| 1432 |
#ifdef DB_ARCH_DATA |
| 1433 |
*iv_return = DB_ARCH_DATA; |
| 1434 |
return PERL_constant_ISIV; |
| 1435 |
#else |
| 1436 |
return PERL_constant_NOTDEF; |
| 1437 |
#endif |
| 1438 |
} |
| 1439 |
break; |
| 1440 |
case 'C': |
| 1441 |
if (memEQ(name, "DB_CDB_ALLDB", 12)) { |
| 1442 |
/* ^ */ |
| 1443 |
#ifdef DB_CDB_ALLDB |
| 1444 |
*iv_return = DB_CDB_ALLDB; |
| 1445 |
return PERL_constant_ISIV; |
| 1446 |
#else |
| 1447 |
return PERL_constant_NOTDEF; |
| 1448 |
#endif |
| 1449 |
} |
| 1450 |
if (memEQ(name, "DB_CL_WRITER", 12)) { |
| 1451 |
/* ^ */ |
| 1452 |
#ifdef DB_CL_WRITER |
| 1453 |
*iv_return = DB_CL_WRITER; |
| 1454 |
return PERL_constant_ISIV; |
| 1455 |
#else |
| 1456 |
return PERL_constant_NOTDEF; |
| 1457 |
#endif |
| 1458 |
} |
| 1459 |
break; |
| 1460 |
case 'D': |
| 1461 |
if (memEQ(name, "DB_DELIMITER", 12)) { |
| 1462 |
/* ^ */ |
| 1463 |
#ifdef DB_DELIMITER |
| 1464 |
*iv_return = DB_DELIMITER; |
| 1465 |
return PERL_constant_ISIV; |
| 1466 |
#else |
| 1467 |
return PERL_constant_NOTDEF; |
| 1468 |
#endif |
| 1469 |
} |
| 1470 |
if (memEQ(name, "DB_DIRECT_DB", 12)) { |
| 1471 |
/* ^ */ |
| 1472 |
#ifdef DB_DIRECT_DB |
| 1473 |
*iv_return = DB_DIRECT_DB; |
| 1474 |
return PERL_constant_ISIV; |
| 1475 |
#else |
| 1476 |
return PERL_constant_NOTDEF; |
| 1477 |
#endif |
| 1478 |
} |
| 1479 |
if (memEQ(name, "DB_DSYNC_LOG", 12)) { |
| 1480 |
/* ^ */ |
| 1481 |
#ifdef DB_DSYNC_LOG |
| 1482 |
*iv_return = DB_DSYNC_LOG; |
| 1483 |
return PERL_constant_ISIV; |
| 1484 |
#else |
| 1485 |
return PERL_constant_NOTDEF; |
| 1486 |
#endif |
| 1487 |
} |
| 1488 |
if (memEQ(name, "DB_DUPCURSOR", 12)) { |
| 1489 |
/* ^ */ |
| 1490 |
#ifdef DB_DUPCURSOR |
| 1491 |
*iv_return = DB_DUPCURSOR; |
| 1492 |
return PERL_constant_ISIV; |
| 1493 |
#else |
| 1494 |
return PERL_constant_NOTDEF; |
| 1495 |
#endif |
| 1496 |
} |
| 1497 |
break; |
| 1498 |
case 'E': |
| 1499 |
if (memEQ(name, "DB_ENV_FATAL", 12)) { |
| 1500 |
/* ^ */ |
| 1501 |
#ifdef DB_ENV_FATAL |
| 1502 |
*iv_return = DB_ENV_FATAL; |
| 1503 |
return PERL_constant_ISIV; |
| 1504 |
#else |
| 1505 |
return PERL_constant_NOTDEF; |
| 1506 |
#endif |
| 1507 |
} |
| 1508 |
break; |
| 1509 |
case 'F': |
| 1510 |
if (memEQ(name, "DB_FAST_STAT", 12)) { |
| 1511 |
/* ^ */ |
| 1512 |
#ifdef DB_FAST_STAT |
| 1513 |
*iv_return = DB_FAST_STAT; |
| 1514 |
return PERL_constant_ISIV; |
| 1515 |
#else |
| 1516 |
return PERL_constant_NOTDEF; |
| 1517 |
#endif |
| 1518 |
} |
| 1519 |
if (memEQ(name, "DB_FORCESYNC", 12)) { |
| 1520 |
/* ^ */ |
| 1521 |
#ifdef DB_FORCESYNC |
| 1522 |
*iv_return = DB_FORCESYNC; |
| 1523 |
return PERL_constant_ISIV; |
| 1524 |
#else |
| 1525 |
return PERL_constant_NOTDEF; |
| 1526 |
#endif |
| 1527 |
} |
| 1528 |
break; |
| 1529 |
case 'G': |
| 1530 |
if (memEQ(name, "DB_GET_BOTHC", 12)) { |
| 1531 |
/* ^ */ |
| 1532 |
#ifdef DB_GET_BOTHC |
| 1533 |
*iv_return = DB_GET_BOTHC; |
| 1534 |
return PERL_constant_ISIV; |
| 1535 |
#else |
| 1536 |
return PERL_constant_NOTDEF; |
| 1537 |
#endif |
| 1538 |
} |
| 1539 |
if (memEQ(name, "DB_GET_RECNO", 12)) { |
| 1540 |
/* ^ */ |
| 1541 |
#ifdef DB_GET_RECNO |
| 1542 |
*iv_return = DB_GET_RECNO; |
| 1543 |
return PERL_constant_ISIV; |
| 1544 |
#else |
| 1545 |
return PERL_constant_NOTDEF; |
| 1546 |
#endif |
| 1547 |
} |
| 1548 |
break; |
| 1549 |
case 'H': |
| 1550 |
if (memEQ(name, "DB_HASHMAGIC", 12)) { |
| 1551 |
/* ^ */ |
| 1552 |
#ifdef DB_HASHMAGIC |
| 1553 |
*iv_return = DB_HASHMAGIC; |
| 1554 |
return PERL_constant_ISIV; |
| 1555 |
#else |
| 1556 |
return PERL_constant_NOTDEF; |
| 1557 |
#endif |
| 1558 |
} |
| 1559 |
if (memEQ(name, "DB_HEAPMAGIC", 12)) { |
| 1560 |
/* ^ */ |
| 1561 |
#ifdef DB_HEAPMAGIC |
| 1562 |
*iv_return = DB_HEAPMAGIC; |
| 1563 |
return PERL_constant_ISIV; |
| 1564 |
#else |
| 1565 |
return PERL_constant_NOTDEF; |
| 1566 |
#endif |
| 1567 |
} |
| 1568 |
if (memEQ(name, "DB_HEAP_FULL", 12)) { |
| 1569 |
/* ^ */ |
| 1570 |
#ifdef DB_HEAP_FULL |
| 1571 |
*iv_return = DB_HEAP_FULL; |
| 1572 |
return PERL_constant_ISIV; |
| 1573 |
#else |
| 1574 |
return PERL_constant_NOTDEF; |
| 1575 |
#endif |
| 1576 |
} |
| 1577 |
break; |
| 1578 |
case 'I': |
| 1579 |
if (memEQ(name, "DB_INIT_LOCK", 12)) { |
| 1580 |
/* ^ */ |
| 1581 |
#ifdef DB_INIT_LOCK |
| 1582 |
*iv_return = DB_INIT_LOCK; |
| 1583 |
return PERL_constant_ISIV; |
| 1584 |
#else |
| 1585 |
return PERL_constant_NOTDEF; |
| 1586 |
#endif |
| 1587 |
} |
| 1588 |
break; |
| 1589 |
case 'J': |
| 1590 |
if (memEQ(name, "DB_JOIN_ITEM", 12)) { |
| 1591 |
/* ^ */ |
| 1592 |
#ifdef DB_JOIN_ITEM |
| 1593 |
*iv_return = DB_JOIN_ITEM; |
| 1594 |
return PERL_constant_ISIV; |
| 1595 |
#else |
| 1596 |
return PERL_constant_NOTDEF; |
| 1597 |
#endif |
| 1598 |
} |
| 1599 |
break; |
| 1600 |
case 'L': |
| 1601 |
if (memEQ(name, "DB_LOCKMAGIC", 12)) { |
| 1602 |
/* ^ */ |
| 1603 |
#ifdef DB_LOCKMAGIC |
| 1604 |
*iv_return = DB_LOCKMAGIC; |
| 1605 |
return PERL_constant_ISIV; |
| 1606 |
#else |
| 1607 |
return PERL_constant_NOTDEF; |
| 1608 |
#endif |
| 1609 |
} |
| 1610 |
if (memEQ(name, "DB_LOCK_DUMP", 12)) { |
| 1611 |
/* ^ */ |
| 1612 |
#if (DB_VERSION_MAJOR > 2) || \ |
| 1613 |
(DB_VERSION_MAJOR == 2 && DB_VERSION_MINOR > 0) || \ |
| 1614 |
(DB_VERSION_MAJOR == 2 && DB_VERSION_MINOR == 0 && \ |
| 1615 |
DB_VERSION_PATCH >= 3) |
| 1616 |
*iv_return = DB_LOCK_DUMP; |
| 1617 |
return PERL_constant_ISIV; |
| 1618 |
#else |
| 1619 |
return PERL_constant_NOTDEF; |
| 1620 |
#endif |
| 1621 |
} |
| 1622 |
if (memEQ(name, "DB_LOCK_RW_N", 12)) { |
| 1623 |
/* ^ */ |
| 1624 |
#ifdef DB_LOCK_RW_N |
| 1625 |
*iv_return = DB_LOCK_RW_N; |
| 1626 |
return PERL_constant_ISIV; |
| 1627 |
#else |
| 1628 |
return PERL_constant_NOTDEF; |
| 1629 |
#endif |
| 1630 |
} |
| 1631 |
if (memEQ(name, "DB_LOGCHKSUM", 12)) { |
| 1632 |
/* ^ */ |
| 1633 |
#ifdef DB_LOGCHKSUM |
| 1634 |
*iv_return = DB_LOGCHKSUM; |
| 1635 |
return PERL_constant_ISIV; |
| 1636 |
#else |
| 1637 |
return PERL_constant_NOTDEF; |
| 1638 |
#endif |
| 1639 |
} |
| 1640 |
if (memEQ(name, "DB_LOGOLDVER", 12)) { |
| 1641 |
/* ^ */ |
| 1642 |
#ifdef DB_LOGOLDVER |
| 1643 |
*iv_return = DB_LOGOLDVER; |
| 1644 |
return PERL_constant_ISIV; |
| 1645 |
#else |
| 1646 |
return PERL_constant_NOTDEF; |
| 1647 |
#endif |
| 1648 |
} |
| 1649 |
if (memEQ(name, "DB_LOG_DSYNC", 12)) { |
| 1650 |
/* ^ */ |
| 1651 |
#ifdef DB_LOG_DSYNC |
| 1652 |
*iv_return = DB_LOG_DSYNC; |
| 1653 |
return PERL_constant_ISIV; |
| 1654 |
#else |
| 1655 |
return PERL_constant_NOTDEF; |
| 1656 |
#endif |
| 1657 |
} |
| 1658 |
break; |
| 1659 |
case 'M': |
| 1660 |
if (memEQ(name, "DB_MAX_PAGES", 12)) { |
| 1661 |
/* ^ */ |
| 1662 |
#ifdef DB_MAX_PAGES |
| 1663 |
*iv_return = DB_MAX_PAGES; |
| 1664 |
return PERL_constant_ISIV; |
| 1665 |
#else |
| 1666 |
return PERL_constant_NOTDEF; |
| 1667 |
#endif |
| 1668 |
} |
| 1669 |
if (memEQ(name, "DB_MEM_LOGID", 12)) { |
| 1670 |
/* ^ */ |
| 1671 |
#if (DB_VERSION_MAJOR > 5) || \ |
| 1672 |
(DB_VERSION_MAJOR == 5 && DB_VERSION_MINOR > 2) || \ |
| 1673 |
(DB_VERSION_MAJOR == 5 && DB_VERSION_MINOR == 2 && \ |
| 1674 |
DB_VERSION_PATCH >= 14) |
| 1675 |
*iv_return = DB_MEM_LOGID; |
| 1676 |
return PERL_constant_ISIV; |
| 1677 |
#else |
| 1678 |
return PERL_constant_NOTDEF; |
| 1679 |
#endif |
| 1680 |
} |
| 1681 |
if (memEQ(name, "DB_MPOOL_NEW", 12)) { |
| 1682 |
/* ^ */ |
| 1683 |
#ifdef DB_MPOOL_NEW |
| 1684 |
*iv_return = DB_MPOOL_NEW; |
| 1685 |
return PERL_constant_ISIV; |
| 1686 |
#else |
| 1687 |
return PERL_constant_NOTDEF; |
| 1688 |
#endif |
| 1689 |
} |
| 1690 |
if (memEQ(name, "DB_MPOOL_TRY", 12)) { |
| 1691 |
/* ^ */ |
| 1692 |
#ifdef DB_MPOOL_TRY |
| 1693 |
*iv_return = DB_MPOOL_TRY; |
| 1694 |
return PERL_constant_ISIV; |
| 1695 |
#else |
| 1696 |
return PERL_constant_NOTDEF; |
| 1697 |
#endif |
| 1698 |
} |
| 1699 |
break; |
| 1700 |
case 'N': |
| 1701 |
if (memEQ(name, "DB_NEEDSPLIT", 12)) { |
| 1702 |
/* ^ */ |
| 1703 |
#ifdef DB_NEEDSPLIT |
| 1704 |
*iv_return = DB_NEEDSPLIT; |
| 1705 |
return PERL_constant_ISIV; |
| 1706 |
#else |
| 1707 |
return PERL_constant_NOTDEF; |
| 1708 |
#endif |
| 1709 |
} |
| 1710 |
if (memEQ(name, "DB_NODUPDATA", 12)) { |
| 1711 |
/* ^ */ |
| 1712 |
#ifdef DB_NODUPDATA |
| 1713 |
*iv_return = DB_NODUPDATA; |
| 1714 |
return PERL_constant_ISIV; |
| 1715 |
#else |
| 1716 |
return PERL_constant_NOTDEF; |
| 1717 |
#endif |
| 1718 |
} |
| 1719 |
if (memEQ(name, "DB_NOLOCKING", 12)) { |
| 1720 |
/* ^ */ |
| 1721 |
#ifdef DB_NOLOCKING |
| 1722 |
*iv_return = DB_NOLOCKING; |
| 1723 |
return PERL_constant_ISIV; |
| 1724 |
#else |
| 1725 |
return PERL_constant_NOTDEF; |
| 1726 |
#endif |
| 1727 |
} |
| 1728 |
if (memEQ(name, "DB_NORECURSE", 12)) { |
| 1729 |
/* ^ */ |
| 1730 |
#ifdef DB_NORECURSE |
| 1731 |
*iv_return = DB_NORECURSE; |
| 1732 |
return PERL_constant_ISIV; |
| 1733 |
#else |
| 1734 |
return PERL_constant_NOTDEF; |
| 1735 |
#endif |
| 1736 |
} |
| 1737 |
break; |
| 1738 |
case 'O': |
| 1739 |
if (memEQ(name, "DB_OVERWRITE", 12)) { |
| 1740 |
/* ^ */ |
| 1741 |
#ifdef DB_OVERWRITE |
| 1742 |
*iv_return = DB_OVERWRITE; |
| 1743 |
return PERL_constant_ISIV; |
| 1744 |
#else |
| 1745 |
return PERL_constant_NOTDEF; |
| 1746 |
#endif |
| 1747 |
} |
| 1748 |
break; |
| 1749 |
case 'P': |
| 1750 |
if (memEQ(name, "DB_PAGEYIELD", 12)) { |
| 1751 |
/* ^ */ |
| 1752 |
#ifdef DB_PAGEYIELD |
| 1753 |
*iv_return = DB_PAGEYIELD; |
| 1754 |
return PERL_constant_ISIV; |
| 1755 |
#else |
| 1756 |
return PERL_constant_NOTDEF; |
| 1757 |
#endif |
| 1758 |
} |
| 1759 |
if (memEQ(name, "DB_PAGE_LOCK", 12)) { |
| 1760 |
/* ^ */ |
| 1761 |
#ifdef DB_PAGE_LOCK |
| 1762 |
*iv_return = DB_PAGE_LOCK; |
| 1763 |
return PERL_constant_ISIV; |
| 1764 |
#else |
| 1765 |
return PERL_constant_NOTDEF; |
| 1766 |
#endif |
| 1767 |
} |
| 1768 |
if (memEQ(name, "DB_PERMANENT", 12)) { |
| 1769 |
/* ^ */ |
| 1770 |
#ifdef DB_PERMANENT |
| 1771 |
*iv_return = DB_PERMANENT; |
| 1772 |
return PERL_constant_ISIV; |
| 1773 |
#else |
| 1774 |
return PERL_constant_NOTDEF; |
| 1775 |
#endif |
| 1776 |
} |
| 1777 |
if (memEQ(name, "DB_POSITIONI", 12)) { |
| 1778 |
/* ^ */ |
| 1779 |
#ifdef DB_POSITIONI |
| 1780 |
*iv_return = DB_POSITIONI; |
| 1781 |
return PERL_constant_ISIV; |
| 1782 |
#else |
| 1783 |
return PERL_constant_NOTDEF; |
| 1784 |
#endif |
| 1785 |
} |
| 1786 |
if (memEQ(name, "DB_PRINTABLE", 12)) { |
| 1787 |
/* ^ */ |
| 1788 |
#ifdef DB_PRINTABLE |
| 1789 |
*iv_return = DB_PRINTABLE; |
| 1790 |
return PERL_constant_ISIV; |
| 1791 |
#else |
| 1792 |
return PERL_constant_NOTDEF; |
| 1793 |
#endif |
| 1794 |
} |
| 1795 |
break; |
| 1796 |
case 'Q': |
| 1797 |
if (memEQ(name, "DB_QAMOLDVER", 12)) { |
| 1798 |
/* ^ */ |
| 1799 |
#ifdef DB_QAMOLDVER |
| 1800 |
*iv_return = DB_QAMOLDVER; |
| 1801 |
return PERL_constant_ISIV; |
| 1802 |
#else |
| 1803 |
return PERL_constant_NOTDEF; |
| 1804 |
#endif |
| 1805 |
} |
| 1806 |
break; |
| 1807 |
case 'R': |
| 1808 |
if (memEQ(name, "DB_RPCCLIENT", 12)) { |
| 1809 |
/* ^ */ |
| 1810 |
#ifdef DB_RPCCLIENT |
| 1811 |
*iv_return = DB_RPCCLIENT; |
| 1812 |
return PERL_constant_ISIV; |
| 1813 |
#else |
| 1814 |
return PERL_constant_NOTDEF; |
| 1815 |
#endif |
| 1816 |
} |
| 1817 |
if (memEQ(name, "LOGREC_LOCKS", 12)) { |
| 1818 |
/* ^ */ |
| 1819 |
#if (DB_VERSION_MAJOR > 5) || \ |
| 1820 |
(DB_VERSION_MAJOR == 5 && DB_VERSION_MINOR > 0) || \ |
| 1821 |
(DB_VERSION_MAJOR == 5 && DB_VERSION_MINOR == 0 && \ |
| 1822 |
DB_VERSION_PATCH >= 6) |
| 1823 |
*iv_return = LOGREC_LOCKS; |
| 1824 |
return PERL_constant_ISIV; |
| 1825 |
#else |
| 1826 |
return PERL_constant_NOTDEF; |
| 1827 |
#endif |
| 1828 |
} |
| 1829 |
if (memEQ(name, "LOGREC_PGDBT", 12)) { |
| 1830 |
/* ^ */ |
| 1831 |
#if (DB_VERSION_MAJOR > 5) || \ |
| 1832 |
(DB_VERSION_MAJOR == 5 && DB_VERSION_MINOR > 0) || \ |
| 1833 |
(DB_VERSION_MAJOR == 5 && DB_VERSION_MINOR == 0 && \ |
| 1834 |
DB_VERSION_PATCH >= 6) |
| 1835 |
*iv_return = LOGREC_PGDBT; |
| 1836 |
return PERL_constant_ISIV; |
| 1837 |
#else |
| 1838 |
return PERL_constant_NOTDEF; |
| 1839 |
#endif |
| 1840 |
} |
| 1841 |
break; |
| 1842 |
case 'S': |
| 1843 |
if (memEQ(name, "DB_SET_RANGE", 12)) { |
| 1844 |
/* ^ */ |
| 1845 |
#ifdef DB_SET_RANGE |
| 1846 |
*iv_return = DB_SET_RANGE; |
| 1847 |
return PERL_constant_ISIV; |
| 1848 |
#else |
| 1849 |
return PERL_constant_NOTDEF; |
| 1850 |
#endif |
| 1851 |
} |
| 1852 |
if (memEQ(name, "DB_SET_RECNO", 12)) { |
| 1853 |
/* ^ */ |
| 1854 |
#ifdef DB_SET_RECNO |
| 1855 |
*iv_return = DB_SET_RECNO; |
| 1856 |
return PERL_constant_ISIV; |
| 1857 |
#else |
| 1858 |
return PERL_constant_NOTDEF; |
| 1859 |
#endif |
| 1860 |
} |
| 1861 |
if (memEQ(name, "DB_ST_DUPSET", 12)) { |
| 1862 |
/* ^ */ |
| 1863 |
#ifdef DB_ST_DUPSET |
| 1864 |
*iv_return = DB_ST_DUPSET; |
| 1865 |
return PERL_constant_ISIV; |
| 1866 |
#else |
| 1867 |
return PERL_constant_NOTDEF; |
| 1868 |
#endif |
| 1869 |
} |
| 1870 |
if (memEQ(name, "DB_ST_RECNUM", 12)) { |
| 1871 |
/* ^ */ |
| 1872 |
#ifdef DB_ST_RECNUM |
| 1873 |
*iv_return = DB_ST_RECNUM; |
| 1874 |
return PERL_constant_ISIV; |
| 1875 |
#else |
| 1876 |
return PERL_constant_NOTDEF; |
| 1877 |
#endif |
| 1878 |
} |
| 1879 |
if (memEQ(name, "DB_SWAPBYTES", 12)) { |
| 1880 |
/* ^ */ |
| 1881 |
#ifdef DB_SWAPBYTES |
| 1882 |
*iv_return = DB_SWAPBYTES; |
| 1883 |
return PERL_constant_ISIV; |
| 1884 |
#else |
| 1885 |
return PERL_constant_NOTDEF; |
| 1886 |
#endif |
| 1887 |
} |
| 1888 |
break; |
| 1889 |
case 'T': |
| 1890 |
if (memEQ(name, "DB_TEMPORARY", 12)) { |
| 1891 |
/* ^ */ |
| 1892 |
#ifdef DB_TEMPORARY |
| 1893 |
*iv_return = DB_TEMPORARY; |
| 1894 |
return PERL_constant_ISIV; |
| 1895 |
#else |
| 1896 |
return PERL_constant_NOTDEF; |
| 1897 |
#endif |
| 1898 |
} |
| 1899 |
if (memEQ(name, "DB_TXN_ABORT", 12)) { |
| 1900 |
/* ^ */ |
| 1901 |
#if (DB_VERSION_MAJOR > 3) || \ |
| 1902 |
(DB_VERSION_MAJOR == 3 && DB_VERSION_MINOR > 1) || \ |
| 1903 |
(DB_VERSION_MAJOR == 3 && DB_VERSION_MINOR == 1 && \ |
| 1904 |
DB_VERSION_PATCH >= 14) |
| 1905 |
*iv_return = DB_TXN_ABORT; |
| 1906 |
return PERL_constant_ISIV; |
| 1907 |
#else |
| 1908 |
return PERL_constant_NOTDEF; |
| 1909 |
#endif |
| 1910 |
} |
| 1911 |
if (memEQ(name, "DB_TXN_APPLY", 12)) { |
| 1912 |
/* ^ */ |
| 1913 |
#if (DB_VERSION_MAJOR > 4) || \ |
| 1914 |
(DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR > 0) || \ |
| 1915 |
(DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR == 0 && \ |
| 1916 |
DB_VERSION_PATCH >= 14) |
| 1917 |
*iv_return = DB_TXN_APPLY; |
| 1918 |
return PERL_constant_ISIV; |
| 1919 |
#else |
| 1920 |
return PERL_constant_NOTDEF; |
| 1921 |
#endif |
| 1922 |
} |
| 1923 |
if (memEQ(name, "DB_TXN_PRINT", 12)) { |
| 1924 |
/* ^ */ |
| 1925 |
#if (DB_VERSION_MAJOR > 4) || \ |
| 1926 |
(DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR > 1) || \ |
| 1927 |
(DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR == 1 && \ |
| 1928 |
DB_VERSION_PATCH >= 24) |
| 1929 |
*iv_return = DB_TXN_PRINT; |
| 1930 |
return PERL_constant_ISIV; |
| 1931 |
#else |
| 1932 |
return PERL_constant_NOTDEF; |
| 1933 |
#endif |
| 1934 |
} |
| 1935 |
break; |
| 1936 |
case 'W': |
| 1937 |
if (memEQ(name, "DB_WRITELOCK", 12)) { |
| 1938 |
/* ^ */ |
| 1939 |
#ifdef DB_WRITELOCK |
| 1940 |
*iv_return = DB_WRITELOCK; |
| 1941 |
return PERL_constant_ISIV; |
| 1942 |
#else |
| 1943 |
return PERL_constant_NOTDEF; |
| 1944 |
#endif |
| 1945 |
} |
| 1946 |
if (memEQ(name, "DB_WRITEOPEN", 12)) { |
| 1947 |
/* ^ */ |
| 1948 |
#ifdef DB_WRITEOPEN |
| 1949 |
*iv_return = DB_WRITEOPEN; |
| 1950 |
return PERL_constant_ISIV; |
| 1951 |
#else |
| 1952 |
return PERL_constant_NOTDEF; |
| 1953 |
#endif |
| 1954 |
} |
| 1955 |
break; |
| 1956 |
case 'X': |
| 1957 |
if (memEQ(name, "DB_XA_CREATE", 12)) { |
| 1958 |
/* ^ */ |
| 1959 |
#ifdef DB_XA_CREATE |
| 1960 |
*iv_return = DB_XA_CREATE; |
| 1961 |
return PERL_constant_ISIV; |
| 1962 |
#else |
| 1963 |
return PERL_constant_NOTDEF; |
| 1964 |
#endif |
| 1965 |
} |
| 1966 |
break; |
| 1967 |
} |
| 1968 |
return PERL_constant_NOTFOUND; |
| 1969 |
} |
| 1970 |
|
| 1971 |
static int |
| 1972 |
constant_13 (pTHX_ const char *name, IV *iv_return) { |
| 1973 |
/* When generated this function returned values for the list of names given |
| 1974 |
here. However, subsequent manual editing may have added or removed some. |
| 1975 |
DB2_AM_NOWAIT DB_AGGRESSIVE DB_BTREEMAGIC DB_CHECKPOINT DB_DIRECT_LOG |
| 1976 |
DB_DIRTY_READ DB_DONOTINDEX DB_EID_MASTER DB_ENV_CREATE DB_ENV_NOMMAP |
| 1977 |
DB_ENV_THREAD DB_FREE_SPACE DB_HASHOLDVER DB_HEAPOLDVER DB_INCOMPLETE |
| 1978 |
DB_INIT_MPOOL DB_INIT_MUTEX DB_LOCAL_SITE DB_LOCK_ABORT DB_LOCK_CHECK |
| 1979 |
DB_LOCK_NORUN DB_LOCK_RIW_N DB_LOCK_TRADE DB_LOGVERSION DB_LOG_CHKPNT |
| 1980 |
DB_LOG_COMMIT DB_LOG_DIRECT DB_LOG_LOCKED DB_LOG_NOCOPY DB_LOG_RESEND |
| 1981 |
DB_MEM_LOCKER DB_MEM_THREAD DB_MPOOL_EDIT DB_MPOOL_FREE DB_MPOOL_LAST |
| 1982 |
DB_MUTEXDEBUG DB_MUTEXLOCKS DB_NEXT_NODUP DB_NOORDERCHK DB_PREV_NODUP |
| 1983 |
DB_PR_HEADERS DB_QAMVERSION DB_RDWRMASTER DB_REGISTERED DB_REP_CLIENT |
| 1984 |
DB_REP_CREATE DB_REP_IGNORE DB_REP_ISPERM DB_REP_MASTER DB_SEQUENTIAL |
| 1985 |
DB_SPARE_FLAG DB_STAT_ALLOC DB_STAT_CLEAR DB_ST_DUPSORT DB_SYSTEM_MEM |
| 1986 |
DB_TXNVERSION DB_TXN_FAMILY DB_TXN_NOSYNC DB_TXN_NOWAIT DB_VERIFY_BAD |
| 1987 |
DB_debug_FLAG DB_user_BEGIN LOGREC_PGDDBT LOGREC_PGLIST */ |
| 1988 |
/* Offset 5 gives the best switch position. */ |
| 1989 |
switch (name[5]) { |
| 1990 |
case 'A': |
| 1991 |
if (memEQ(name, "DB_HEAPOLDVER", 13)) { |
| 1992 |
/* ^ */ |
| 1993 |
#ifdef DB_HEAPOLDVER |
| 1994 |
*iv_return = DB_HEAPOLDVER; |
| 1995 |
return PERL_constant_ISIV; |
| 1996 |
#else |
| 1997 |
return PERL_constant_NOTDEF; |
| 1998 |
#endif |
| 1999 |
} |
| 2000 |
if (memEQ(name, "DB_SPARE_FLAG", 13)) { |
| 2001 |
/* ^ */ |
| 2002 |
#ifdef DB_SPARE_FLAG |
| 2003 |
*iv_return = DB_SPARE_FLAG; |
| 2004 |
return PERL_constant_ISIV; |
| 2005 |
#else |
| 2006 |
return PERL_constant_NOTDEF; |
| 2007 |
#endif |
| 2008 |
} |
| 2009 |
if (memEQ(name, "DB_STAT_ALLOC", 13)) { |
| 2010 |
/* ^ */ |
| 2011 |
#ifdef DB_STAT_ALLOC |
| 2012 |
*iv_return = DB_STAT_ALLOC; |
| 2013 |
return PERL_constant_ISIV; |
| 2014 |
#else |
| 2015 |
return PERL_constant_NOTDEF; |
| 2016 |
#endif |
| 2017 |
} |
| 2018 |
if (memEQ(name, "DB_STAT_CLEAR", 13)) { |
| 2019 |
/* ^ */ |
| 2020 |
#ifdef DB_STAT_CLEAR |
| 2021 |
*iv_return = DB_STAT_CLEAR; |
| 2022 |
return PERL_constant_ISIV; |
| 2023 |
#else |
| 2024 |
return PERL_constant_NOTDEF; |
| 2025 |
#endif |
| 2026 |
} |
| 2027 |
break; |
| 2028 |
case 'C': |
| 2029 |
if (memEQ(name, "DB_INCOMPLETE", 13)) { |
| 2030 |
/* ^ */ |
| 2031 |
#ifdef DB_INCOMPLETE |
| 2032 |
*iv_return = DB_INCOMPLETE; |
| 2033 |
return PERL_constant_ISIV; |
| 2034 |
#else |
| 2035 |
return PERL_constant_NOTDEF; |
| 2036 |
#endif |
| 2037 |
} |
| 2038 |
if (memEQ(name, "DB_LOCAL_SITE", 13)) { |
| 2039 |
/* ^ */ |
| 2040 |
#ifdef DB_LOCAL_SITE |
| 2041 |
*iv_return = DB_LOCAL_SITE; |
| 2042 |
return PERL_constant_ISIV; |
| 2043 |
#else |
| 2044 |
return PERL_constant_NOTDEF; |
| 2045 |
#endif |
| 2046 |
} |
| 2047 |
if (memEQ(name, "DB_LOCK_ABORT", 13)) { |
| 2048 |
/* ^ */ |
| 2049 |
#ifdef DB_LOCK_ABORT |
| 2050 |
*iv_return = DB_LOCK_ABORT; |
| 2051 |
return PERL_constant_ISIV; |
| 2052 |
#else |
| 2053 |
return PERL_constant_NOTDEF; |
| 2054 |
#endif |
| 2055 |
} |
| 2056 |
if (memEQ(name, "DB_LOCK_CHECK", 13)) { |
| 2057 |
/* ^ */ |
| 2058 |
#ifdef DB_LOCK_CHECK |
| 2059 |
*iv_return = DB_LOCK_CHECK; |
| 2060 |
return PERL_constant_ISIV; |
| 2061 |
#else |
| 2062 |
return PERL_constant_NOTDEF; |
| 2063 |
#endif |
| 2064 |
} |
| 2065 |
if (memEQ(name, "DB_LOCK_NORUN", 13)) { |
| 2066 |
/* ^ */ |
| 2067 |
#ifdef DB_LOCK_NORUN |
| 2068 |
*iv_return = DB_LOCK_NORUN; |
| 2069 |
return PERL_constant_ISIV; |
| 2070 |
#else |
| 2071 |
return PERL_constant_NOTDEF; |
| 2072 |
#endif |
| 2073 |
} |
| 2074 |
if (memEQ(name, "DB_LOCK_RIW_N", 13)) { |
| 2075 |
/* ^ */ |
| 2076 |
#ifdef DB_LOCK_RIW_N |
| 2077 |
*iv_return = DB_LOCK_RIW_N; |
| 2078 |
return PERL_constant_ISIV; |
| 2079 |
#else |
| 2080 |
return PERL_constant_NOTDEF; |
| 2081 |
#endif |
| 2082 |
} |
| 2083 |
if (memEQ(name, "DB_LOCK_TRADE", 13)) { |
| 2084 |
/* ^ */ |
| 2085 |
#if (DB_VERSION_MAJOR > 4) || \ |
| 2086 |
(DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR > 1) || \ |
| 2087 |
(DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR == 1 && \ |
| 2088 |
DB_VERSION_PATCH >= 24) |
| 2089 |
*iv_return = DB_LOCK_TRADE; |
| 2090 |
return PERL_constant_ISIV; |
| 2091 |
#else |
| 2092 |
return PERL_constant_NOTDEF; |
| 2093 |
#endif |
| 2094 |
} |
| 2095 |
if (memEQ(name, "LOGREC_PGDDBT", 13)) { |
| 2096 |
/* ^ */ |
| 2097 |
#if (DB_VERSION_MAJOR > 5) || \ |
| 2098 |
(DB_VERSION_MAJOR == 5 && DB_VERSION_MINOR > 0) || \ |
| 2099 |
(DB_VERSION_MAJOR == 5 && DB_VERSION_MINOR == 0 && \ |
| 2100 |
DB_VERSION_PATCH >= 6) |
| 2101 |
*iv_return = LOGREC_PGDDBT; |
| 2102 |
return PERL_constant_ISIV; |
| 2103 |
#else |
| 2104 |
return PERL_constant_NOTDEF; |
| 2105 |
#endif |
| 2106 |
} |
| 2107 |
if (memEQ(name, "LOGREC_PGLIST", 13)) { |
| 2108 |
/* ^ */ |
| 2109 |
#if (DB_VERSION_MAJOR > 5) || \ |
| 2110 |
(DB_VERSION_MAJOR == 5 && DB_VERSION_MINOR > 0) || \ |
| 2111 |
(DB_VERSION_MAJOR == 5 && DB_VERSION_MINOR == 0 && \ |
| 2112 |
DB_VERSION_PATCH >= 6) |
| 2113 |
*iv_return = LOGREC_PGLIST; |
| 2114 |
return PERL_constant_ISIV; |
| 2115 |
#else |
| 2116 |
return PERL_constant_NOTDEF; |
| 2117 |
#endif |
| 2118 |
} |
| 2119 |
break; |
| 2120 |
case 'D': |
| 2121 |
if (memEQ(name, "DB_EID_MASTER", 13)) { |
| 2122 |
/* ^ */ |
| 2123 |
#ifdef DB_EID_MASTER |
| 2124 |
*iv_return = DB_EID_MASTER; |
| 2125 |
return PERL_constant_ISIV; |
| 2126 |
#else |
| 2127 |
return PERL_constant_NOTDEF; |
| 2128 |
#endif |
| 2129 |
} |
| 2130 |
break; |
| 2131 |
case 'E': |
| 2132 |
if (memEQ(name, "DB_CHECKPOINT", 13)) { |
| 2133 |
/* ^ */ |
| 2134 |
#ifdef DB_CHECKPOINT |
| 2135 |
*iv_return = DB_CHECKPOINT; |
| 2136 |
return PERL_constant_ISIV; |
| 2137 |
#else |
| 2138 |
return PERL_constant_NOTDEF; |
| 2139 |
#endif |
| 2140 |
} |
| 2141 |
if (memEQ(name, "DB_FREE_SPACE", 13)) { |
| 2142 |
/* ^ */ |
| 2143 |
#ifdef DB_FREE_SPACE |
| 2144 |
*iv_return = DB_FREE_SPACE; |
| 2145 |
return PERL_constant_ISIV; |
| 2146 |
#else |
| 2147 |
return PERL_constant_NOTDEF; |
| 2148 |
#endif |
| 2149 |
} |
| 2150 |
if (memEQ(name, "DB_PREV_NODUP", 13)) { |
| 2151 |
/* ^ */ |
| 2152 |
#ifdef DB_PREV_NODUP |
| 2153 |
*iv_return = DB_PREV_NODUP; |
| 2154 |
return PERL_constant_ISIV; |
| 2155 |
#else |
| 2156 |
return PERL_constant_NOTDEF; |
| 2157 |
#endif |
| 2158 |
} |
| 2159 |
break; |
| 2160 |
case 'G': |
| 2161 |
if (memEQ(name, "DB_AGGRESSIVE", 13)) { |
| 2162 |
/* ^ */ |
| 2163 |
#ifdef DB_AGGRESSIVE |
| 2164 |
*iv_return = DB_AGGRESSIVE; |
| 2165 |
return PERL_constant_ISIV; |
| 2166 |
#else |
| 2167 |
return PERL_constant_NOTDEF; |
| 2168 |
#endif |
| 2169 |
} |
| 2170 |
if (memEQ(name, "DB_LOGVERSION", 13)) { |
| 2171 |
/* ^ */ |
| 2172 |
#ifdef DB_LOGVERSION |
| 2173 |
*iv_return = DB_LOGVERSION; |
| 2174 |
return PERL_constant_ISIV; |
| 2175 |
#else |
| 2176 |
return PERL_constant_NOTDEF; |
| 2177 |
#endif |
| 2178 |
} |
| 2179 |
if (memEQ(name, "DB_LOG_CHKPNT", 13)) { |
| 2180 |
/* ^ */ |
| 2181 |
#ifdef DB_LOG_CHKPNT |
| 2182 |
*iv_return = DB_LOG_CHKPNT; |
| 2183 |
return PERL_constant_ISIV; |
| 2184 |
#else |
| 2185 |
return PERL_constant_NOTDEF; |
| 2186 |
#endif |
| 2187 |
} |
| 2188 |
if (memEQ(name, "DB_LOG_COMMIT", 13)) { |
| 2189 |
/* ^ */ |
| 2190 |
#ifdef DB_LOG_COMMIT |
| 2191 |
*iv_return = DB_LOG_COMMIT; |
| 2192 |
return PERL_constant_ISIV; |
| 2193 |
#else |
| 2194 |
return PERL_constant_NOTDEF; |
| 2195 |
#endif |
| 2196 |
} |
| 2197 |
if (memEQ(name, "DB_LOG_DIRECT", 13)) { |
| 2198 |
/* ^ */ |
| 2199 |
#ifdef DB_LOG_DIRECT |
| 2200 |
*iv_return = DB_LOG_DIRECT; |
| 2201 |
return PERL_constant_ISIV; |
| 2202 |
#else |
| 2203 |
return PERL_constant_NOTDEF; |
| 2204 |
#endif |
| 2205 |
} |
| 2206 |
if (memEQ(name, "DB_LOG_LOCKED", 13)) { |
| 2207 |
/* ^ */ |
| 2208 |
#ifdef DB_LOG_LOCKED |
| 2209 |
*iv_return = DB_LOG_LOCKED; |
| 2210 |
return PERL_constant_ISIV; |
| 2211 |
#else |
| 2212 |
return PERL_constant_NOTDEF; |
| 2213 |
#endif |
| 2214 |
} |
| 2215 |
if (memEQ(name, "DB_LOG_NOCOPY", 13)) { |
| 2216 |
/* ^ */ |
| 2217 |
#ifdef DB_LOG_NOCOPY |
| 2218 |
*iv_return = DB_LOG_NOCOPY; |
| 2219 |
return PERL_constant_ISIV; |
| 2220 |
#else |
| 2221 |
return PERL_constant_NOTDEF; |
| 2222 |
#endif |
| 2223 |
} |
| 2224 |
if (memEQ(name, "DB_LOG_RESEND", 13)) { |
| 2225 |
/* ^ */ |
| 2226 |
#ifdef DB_LOG_RESEND |
| 2227 |
*iv_return = DB_LOG_RESEND; |
| 2228 |
return PERL_constant_ISIV; |
| 2229 |
#else |
| 2230 |
return PERL_constant_NOTDEF; |
| 2231 |
#endif |
| 2232 |
} |
| 2233 |
if (memEQ(name, "DB_REGISTERED", 13)) { |
| 2234 |
/* ^ */ |
| 2235 |
#ifdef DB_REGISTERED |
| 2236 |
*iv_return = DB_REGISTERED; |
| 2237 |
return PERL_constant_ISIV; |
| 2238 |
#else |
| 2239 |
return PERL_constant_NOTDEF; |
| 2240 |
#endif |
| 2241 |
} |
| 2242 |
break; |
| 2243 |
case 'I': |
| 2244 |
if (memEQ(name, "DB_INIT_MPOOL", 13)) { |
| 2245 |
/* ^ */ |
| 2246 |
#ifdef DB_INIT_MPOOL |
| 2247 |
*iv_return = DB_INIT_MPOOL; |
| 2248 |
return PERL_constant_ISIV; |
| 2249 |
#else |
| 2250 |
return PERL_constant_NOTDEF; |
| 2251 |
#endif |
| 2252 |
} |
| 2253 |
if (memEQ(name, "DB_INIT_MUTEX", 13)) { |
| 2254 |
/* ^ */ |
| 2255 |
#ifdef DB_INIT_MUTEX |
| 2256 |
*iv_return = DB_INIT_MUTEX; |
| 2257 |
return PERL_constant_ISIV; |
| 2258 |
#else |
| 2259 |
return PERL_constant_NOTDEF; |
| 2260 |
#endif |
| 2261 |
} |
| 2262 |
break; |
| 2263 |
case 'M': |
| 2264 |
if (memEQ(name, "DB2_AM_NOWAIT", 13)) { |
| 2265 |
/* ^ */ |
| 2266 |
#ifdef DB2_AM_NOWAIT |
| 2267 |
*iv_return = DB2_AM_NOWAIT; |
| 2268 |
return PERL_constant_ISIV; |
| 2269 |
#else |
| 2270 |
return PERL_constant_NOTDEF; |
| 2271 |
#endif |
| 2272 |
} |
| 2273 |
if (memEQ(name, "DB_MEM_LOCKER", 13)) { |
| 2274 |
/* ^ */ |
| 2275 |
#if (DB_VERSION_MAJOR > 5) || \ |
| 2276 |
(DB_VERSION_MAJOR == 5 && DB_VERSION_MINOR > 2) || \ |
| 2277 |
(DB_VERSION_MAJOR == 5 && DB_VERSION_MINOR == 2 && \ |
| 2278 |
DB_VERSION_PATCH >= 14) |
| 2279 |
*iv_return = DB_MEM_LOCKER; |
| 2280 |
return PERL_constant_ISIV; |
| 2281 |
#else |
| 2282 |
return PERL_constant_NOTDEF; |
| 2283 |
#endif |
| 2284 |
} |
| 2285 |
if (memEQ(name, "DB_MEM_THREAD", 13)) { |
| 2286 |
/* ^ */ |
| 2287 |
#if (DB_VERSION_MAJOR > 5) || \ |
| 2288 |
(DB_VERSION_MAJOR == 5 && DB_VERSION_MINOR > 2) || \ |
| 2289 |
(DB_VERSION_MAJOR == 5 && DB_VERSION_MINOR == 2 && \ |
| 2290 |
DB_VERSION_PATCH >= 14) |
| 2291 |
*iv_return = DB_MEM_THREAD; |
| 2292 |
return PERL_constant_ISIV; |
| 2293 |
#else |
| 2294 |
return PERL_constant_NOTDEF; |
| 2295 |
#endif |
| 2296 |
} |
| 2297 |
if (memEQ(name, "DB_QAMVERSION", 13)) { |
| 2298 |
/* ^ */ |
| 2299 |
#ifdef DB_QAMVERSION |
| 2300 |
*iv_return = DB_QAMVERSION; |
| 2301 |
return PERL_constant_ISIV; |
| 2302 |
#else |
| 2303 |
return PERL_constant_NOTDEF; |
| 2304 |
#endif |
| 2305 |
} |
| 2306 |
break; |
| 2307 |
case 'N': |
| 2308 |
if (memEQ(name, "DB_DONOTINDEX", 13)) { |
| 2309 |
/* ^ */ |
| 2310 |
#ifdef DB_DONOTINDEX |
| 2311 |
*iv_return = DB_DONOTINDEX; |
| 2312 |
return PERL_constant_ISIV; |
| 2313 |
#else |
| 2314 |
return PERL_constant_NOTDEF; |
| 2315 |
#endif |
| 2316 |
} |
| 2317 |
if (memEQ(name, "DB_TXNVERSION", 13)) { |
| 2318 |
/* ^ */ |
| 2319 |
#ifdef DB_TXNVERSION |
| 2320 |
*iv_return = DB_TXNVERSION; |
| 2321 |
return PERL_constant_ISIV; |
| 2322 |
#else |
| 2323 |
return PERL_constant_NOTDEF; |
| 2324 |
#endif |
| 2325 |
} |
| 2326 |
if (memEQ(name, "DB_TXN_FAMILY", 13)) { |
| 2327 |
/* ^ */ |
| 2328 |
#ifdef DB_TXN_FAMILY |
| 2329 |
*iv_return = DB_TXN_FAMILY; |
| 2330 |
return PERL_constant_ISIV; |
| 2331 |
#else |
| 2332 |
return PERL_constant_NOTDEF; |
| 2333 |
#endif |
| 2334 |
} |
| 2335 |
if (memEQ(name, "DB_TXN_NOSYNC", 13)) { |
| 2336 |
/* ^ */ |
| 2337 |
#ifdef DB_TXN_NOSYNC |
| 2338 |
*iv_return = DB_TXN_NOSYNC; |
| 2339 |
return PERL_constant_ISIV; |
| 2340 |
#else |
| 2341 |
return PERL_constant_NOTDEF; |
| 2342 |
#endif |
| 2343 |
} |
| 2344 |
if (memEQ(name, "DB_TXN_NOWAIT", 13)) { |
| 2345 |
/* ^ */ |
| 2346 |
#ifdef DB_TXN_NOWAIT |
| 2347 |
*iv_return = DB_TXN_NOWAIT; |
| 2348 |
return PERL_constant_ISIV; |
| 2349 |
#else |
| 2350 |
return PERL_constant_NOTDEF; |
| 2351 |
#endif |
| 2352 |
} |
| 2353 |
break; |
| 2354 |
case 'O': |
| 2355 |
if (memEQ(name, "DB_MPOOL_EDIT", 13)) { |
| 2356 |
/* ^ */ |
| 2357 |
#ifdef DB_MPOOL_EDIT |
| 2358 |
*iv_return = DB_MPOOL_EDIT; |
| 2359 |
return PERL_constant_ISIV; |
| 2360 |
#else |
| 2361 |
return PERL_constant_NOTDEF; |
| 2362 |
#endif |
| 2363 |
} |
| 2364 |
if (memEQ(name, "DB_MPOOL_FREE", 13)) { |
| 2365 |
/* ^ */ |
| 2366 |
#ifdef DB_MPOOL_FREE |
| 2367 |
*iv_return = DB_MPOOL_FREE; |
| 2368 |
return PERL_constant_ISIV; |
| 2369 |
#else |
| 2370 |
return PERL_constant_NOTDEF; |
| 2371 |
#endif |
| 2372 |
} |
| 2373 |
if (memEQ(name, "DB_MPOOL_LAST", 13)) { |
| 2374 |
/* ^ */ |
| 2375 |
#ifdef DB_MPOOL_LAST |
| 2376 |
*iv_return = DB_MPOOL_LAST; |
| 2377 |
return PERL_constant_ISIV; |
| 2378 |
#else |
| 2379 |
return PERL_constant_NOTDEF; |
| 2380 |
#endif |
| 2381 |
} |
| 2382 |
if (memEQ(name, "DB_NOORDERCHK", 13)) { |
| 2383 |
/* ^ */ |
| 2384 |
#ifdef DB_NOORDERCHK |
| 2385 |
*iv_return = DB_NOORDERCHK; |
| 2386 |
return PERL_constant_ISIV; |
| 2387 |
#else |
| 2388 |
return PERL_constant_NOTDEF; |
| 2389 |
#endif |
| 2390 |
} |
| 2391 |
break; |
| 2392 |
case 'P': |
| 2393 |
if (memEQ(name, "DB_REP_CLIENT", 13)) { |
| 2394 |
/* ^ */ |
| 2395 |
#ifdef DB_REP_CLIENT |
| 2396 |
*iv_return = DB_REP_CLIENT; |
| 2397 |
return PERL_constant_ISIV; |
| 2398 |
#else |
| 2399 |
return PERL_constant_NOTDEF; |
| 2400 |
#endif |
| 2401 |
} |
| 2402 |
if (memEQ(name, "DB_REP_CREATE", 13)) { |
| 2403 |
/* ^ */ |
| 2404 |
#ifdef DB_REP_CREATE |
| 2405 |
*iv_return = DB_REP_CREATE; |
| 2406 |
return PERL_constant_ISIV; |
| 2407 |
#else |
| 2408 |
return PERL_constant_NOTDEF; |
| 2409 |
#endif |
| 2410 |
} |
| 2411 |
if (memEQ(name, "DB_REP_IGNORE", 13)) { |
| 2412 |
/* ^ */ |
| 2413 |
#ifdef DB_REP_IGNORE |
| 2414 |
*iv_return = DB_REP_IGNORE; |
| 2415 |
return PERL_constant_ISIV; |
| 2416 |
#else |
| 2417 |
return PERL_constant_NOTDEF; |
| 2418 |
#endif |
| 2419 |
} |
| 2420 |
if (memEQ(name, "DB_REP_ISPERM", 13)) { |
| 2421 |
/* ^ */ |
| 2422 |
#ifdef DB_REP_ISPERM |
| 2423 |
*iv_return = DB_REP_ISPERM; |
| 2424 |
return PERL_constant_ISIV; |
| 2425 |
#else |
| 2426 |
return PERL_constant_NOTDEF; |
| 2427 |
#endif |
| 2428 |
} |
| 2429 |
if (memEQ(name, "DB_REP_MASTER", 13)) { |
| 2430 |
/* ^ */ |
| 2431 |
#ifdef DB_REP_MASTER |
| 2432 |
*iv_return = DB_REP_MASTER; |
| 2433 |
return PERL_constant_ISIV; |
| 2434 |
#else |
| 2435 |
return PERL_constant_NOTDEF; |
| 2436 |
#endif |
| 2437 |
} |
| 2438 |
break; |
| 2439 |
case 'Q': |
| 2440 |
if (memEQ(name, "DB_SEQUENTIAL", 13)) { |
| 2441 |
/* ^ */ |
| 2442 |
#ifdef DB_SEQUENTIAL |
| 2443 |
*iv_return = DB_SEQUENTIAL; |
| 2444 |
return PERL_constant_ISIV; |
| 2445 |
#else |
| 2446 |
return PERL_constant_NOTDEF; |
| 2447 |
#endif |
| 2448 |
} |
| 2449 |
break; |
| 2450 |
case 'R': |
| 2451 |
if (memEQ(name, "DB_BTREEMAGIC", 13)) { |
| 2452 |
/* ^ */ |
| 2453 |
#ifdef DB_BTREEMAGIC |
| 2454 |
*iv_return = DB_BTREEMAGIC; |
| 2455 |
return PERL_constant_ISIV; |
| 2456 |
#else |
| 2457 |
return PERL_constant_NOTDEF; |
| 2458 |
#endif |
| 2459 |
} |
| 2460 |
if (memEQ(name, "DB_DIRECT_LOG", 13)) { |
| 2461 |
/* ^ */ |
| 2462 |
#ifdef DB_DIRECT_LOG |
| 2463 |
*iv_return = DB_DIRECT_LOG; |
| 2464 |
return PERL_constant_ISIV; |
| 2465 |
#else |
| 2466 |
return PERL_constant_NOTDEF; |
| 2467 |
#endif |
| 2468 |
} |
| 2469 |
if (memEQ(name, "DB_DIRTY_READ", 13)) { |
| 2470 |
/* ^ */ |
| 2471 |
#ifdef DB_DIRTY_READ |
| 2472 |
*iv_return = DB_DIRTY_READ; |
| 2473 |
return PERL_constant_ISIV; |
| 2474 |
#else |
| 2475 |
return PERL_constant_NOTDEF; |
| 2476 |
#endif |
| 2477 |
} |
| 2478 |
if (memEQ(name, "DB_VERIFY_BAD", 13)) { |
| 2479 |
/* ^ */ |
| 2480 |
#ifdef DB_VERIFY_BAD |
| 2481 |
*iv_return = DB_VERIFY_BAD; |
| 2482 |
return PERL_constant_ISIV; |
| 2483 |
#else |
| 2484 |
return PERL_constant_NOTDEF; |
| 2485 |
#endif |
| 2486 |
} |
| 2487 |
break; |
| 2488 |
case 'S': |
| 2489 |
if (memEQ(name, "DB_HASHOLDVER", 13)) { |
| 2490 |
/* ^ */ |
| 2491 |
#ifdef DB_HASHOLDVER |
| 2492 |
*iv_return = DB_HASHOLDVER; |
| 2493 |
return PERL_constant_ISIV; |
| 2494 |
#else |
| 2495 |
return PERL_constant_NOTDEF; |
| 2496 |
#endif |
| 2497 |
} |
| 2498 |
if (memEQ(name, "DB_SYSTEM_MEM", 13)) { |
| 2499 |
/* ^ */ |
| 2500 |
#ifdef DB_SYSTEM_MEM |
| 2501 |
*iv_return = DB_SYSTEM_MEM; |
| 2502 |
return PERL_constant_ISIV; |
| 2503 |
#else |
| 2504 |
return PERL_constant_NOTDEF; |
| 2505 |
#endif |
| 2506 |
} |
| 2507 |
break; |
| 2508 |
case 'T': |
| 2509 |
if (memEQ(name, "DB_MUTEXDEBUG", 13)) { |
| 2510 |
/* ^ */ |
| 2511 |
#ifdef DB_MUTEXDEBUG |
| 2512 |
*iv_return = DB_MUTEXDEBUG; |
| 2513 |
return PERL_constant_ISIV; |
| 2514 |
#else |
| 2515 |
return PERL_constant_NOTDEF; |
| 2516 |
#endif |
| 2517 |
} |
| 2518 |
if (memEQ(name, "DB_MUTEXLOCKS", 13)) { |
| 2519 |
/* ^ */ |
| 2520 |
#ifdef DB_MUTEXLOCKS |
| 2521 |
*iv_return = DB_MUTEXLOCKS; |
| 2522 |
return PERL_constant_ISIV; |
| 2523 |
#else |
| 2524 |
return PERL_constant_NOTDEF; |
| 2525 |
#endif |
| 2526 |
} |
| 2527 |
break; |
| 2528 |
case 'V': |
| 2529 |
if (memEQ(name, "DB_ENV_CREATE", 13)) { |
| 2530 |
/* ^ */ |
| 2531 |
#ifdef DB_ENV_CREATE |
| 2532 |
*iv_return = DB_ENV_CREATE; |
| 2533 |
return PERL_constant_ISIV; |
| 2534 |
#else |
| 2535 |
return PERL_constant_NOTDEF; |
| 2536 |
#endif |
| 2537 |
} |
| 2538 |
if (memEQ(name, "DB_ENV_NOMMAP", 13)) { |
| 2539 |
/* ^ */ |
| 2540 |
#ifdef DB_ENV_NOMMAP |
| 2541 |
*iv_return = DB_ENV_NOMMAP; |
| 2542 |
return PERL_constant_ISIV; |
| 2543 |
#else |
| 2544 |
return PERL_constant_NOTDEF; |
| 2545 |
#endif |
| 2546 |
} |
| 2547 |
if (memEQ(name, "DB_ENV_THREAD", 13)) { |
| 2548 |
/* ^ */ |
| 2549 |
#ifdef DB_ENV_THREAD |
| 2550 |
*iv_return = DB_ENV_THREAD; |
| 2551 |
return PERL_constant_ISIV; |
| 2552 |
#else |
| 2553 |
return PERL_constant_NOTDEF; |
| 2554 |
#endif |
| 2555 |
} |
| 2556 |
break; |
| 2557 |
case 'W': |
| 2558 |
if (memEQ(name, "DB_RDWRMASTER", 13)) { |
| 2559 |
/* ^ */ |
| 2560 |
#ifdef DB_RDWRMASTER |
| 2561 |
*iv_return = DB_RDWRMASTER; |
| 2562 |
return PERL_constant_ISIV; |
| 2563 |
#else |
| 2564 |
return PERL_constant_NOTDEF; |
| 2565 |
#endif |
| 2566 |
} |
| 2567 |
break; |
| 2568 |
case 'X': |
| 2569 |
if (memEQ(name, "DB_NEXT_NODUP", 13)) { |
| 2570 |
/* ^ */ |
| 2571 |
#ifdef DB_NEXT_NODUP |
| 2572 |
*iv_return = DB_NEXT_NODUP; |
| 2573 |
return PERL_constant_ISIV; |
| 2574 |
#else |
| 2575 |
return PERL_constant_NOTDEF; |
| 2576 |
#endif |
| 2577 |
} |
| 2578 |
break; |
| 2579 |
case '_': |
| 2580 |
if (memEQ(name, "DB_PR_HEADERS", 13)) { |
| 2581 |
/* ^ */ |
| 2582 |
#ifdef DB_PR_HEADERS |
| 2583 |
*iv_return = DB_PR_HEADERS; |
| 2584 |
return PERL_constant_ISIV; |
| 2585 |
#else |
| 2586 |
return PERL_constant_NOTDEF; |
| 2587 |
#endif |
| 2588 |
} |
| 2589 |
if (memEQ(name, "DB_ST_DUPSORT", 13)) { |
| 2590 |
/* ^ */ |
| 2591 |
#ifdef DB_ST_DUPSORT |
| 2592 |
*iv_return = DB_ST_DUPSORT; |
| 2593 |
return PERL_constant_ISIV; |
| 2594 |
#else |
| 2595 |
return PERL_constant_NOTDEF; |
| 2596 |
#endif |
| 2597 |
} |
| 2598 |
break; |
| 2599 |
case 'b': |
| 2600 |
if (memEQ(name, "DB_debug_FLAG", 13)) { |
| 2601 |
/* ^ */ |
| 2602 |
#ifdef DB_debug_FLAG |
| 2603 |
*iv_return = DB_debug_FLAG; |
| 2604 |
return PERL_constant_ISIV; |
| 2605 |
#else |
| 2606 |
return PERL_constant_NOTDEF; |
| 2607 |
#endif |
| 2608 |
} |
| 2609 |
break; |
| 2610 |
case 'e': |
| 2611 |
if (memEQ(name, "DB_user_BEGIN", 13)) { |
| 2612 |
/* ^ */ |
| 2613 |
#ifdef DB_user_BEGIN |
| 2614 |
*iv_return = DB_user_BEGIN; |
| 2615 |
return PERL_constant_ISIV; |
| 2616 |
#else |
| 2617 |
return PERL_constant_NOTDEF; |
| 2618 |
#endif |
| 2619 |
} |
| 2620 |
break; |
| 2621 |
} |
| 2622 |
return PERL_constant_NOTFOUND; |
| 2623 |
} |
| 2624 |
|
| 2625 |
static int |
| 2626 |
constant_14 (pTHX_ const char *name, IV *iv_return) { |
| 2627 |
/* When generated this function returned values for the list of names given |
| 2628 |
here. However, subsequent manual editing may have added or removed some. |
| 2629 |
DB2_AM_INTEXCL DB_ARCH_REMOVE DB_AUTO_COMMIT DB_BACKUP_SIZE DB_BTREEOLDVER |
| 2630 |
DB_CHKSUM_SHA1 DB_CURSOR_BULK DB_EID_INVALID DB_ENCRYPT_AES DB_ENV_APPINIT |
| 2631 |
DB_ENV_DBLOCAL DB_ENV_FAILCHK DB_ENV_LOCKING DB_ENV_LOGGING DB_ENV_NOFLUSH |
| 2632 |
DB_ENV_NOPANIC DB_ENV_PRIVATE DB_EVENT_PANIC DB_FILE_ID_LEN DB_HANDLE_LOCK |
| 2633 |
DB_HASHVERSION DB_HEAPVERSION DB_HEAP_RID_SZ DB_INTERNAL_DB DB_JOIN_NOSORT |
| 2634 |
DB_LOCKVERSION DB_LOCK_EXPIRE DB_LOCK_NOWAIT DB_LOCK_OLDEST DB_LOCK_RANDOM |
| 2635 |
DB_LOCK_RECORD DB_LOCK_REMOVE DB_LOCK_SWITCH DB_LOG_NO_DATA DB_MAX_RECORDS |
| 2636 |
DB_MPOOL_CLEAN DB_MPOOL_DIRTY DB_NOOVERWRITE DB_NOSERVER_ID DB_ODDFILESIZE |
| 2637 |
DB_OLD_VERSION DB_OPEN_CALLED DB_RECORDCOUNT DB_RECORD_LOCK DB_REGION_ANON |
| 2638 |
DB_REGION_INIT DB_REGION_NAME DB_RENAMEMAGIC DB_REPMGR_PEER DB_REP_BULKOVF |
| 2639 |
DB_REP_EGENCHG DB_REP_LOCKOUT DB_REP_NEWSITE DB_REP_NOTPERM DB_REP_UNAVAIL |
| 2640 |
DB_REVSPLITOFF DB_RUNRECOVERY DB_SEQ_WRAPPED DB_SET_TXN_NOW DB_SHALLOW_DUP |
| 2641 |
DB_ST_IS_RECNO DB_ST_TOPLEVEL DB_USE_ENVIRON DB_VERB_BACKUP DB_WRITECURSOR |
| 2642 |
DB_XIDDATASIZE LOGREC_POINTER */ |
| 2643 |
/* Offset 13 gives the best switch position. */ |
| 2644 |
switch (name[13]) { |
| 2645 |
case '1': |
| 2646 |
if (memEQ(name, "DB_CHKSUM_SHA", 13)) { |
| 2647 |
/* 1 */ |
| 2648 |
#ifdef DB_CHKSUM_SHA1 |
| 2649 |
*iv_return = DB_CHKSUM_SHA1; |
| 2650 |
return PERL_constant_ISIV; |
| 2651 |
#else |
| 2652 |
return PERL_constant_NOTDEF; |
| 2653 |
#endif |
| 2654 |
} |
| 2655 |
break; |
| 2656 |
case 'A': |
| 2657 |
if (memEQ(name, "DB_LOG_NO_DAT", 13)) { |
| 2658 |
/* A */ |
| 2659 |
#ifdef DB_LOG_NO_DATA |
| 2660 |
*iv_return = DB_LOG_NO_DATA; |
| 2661 |
return PERL_constant_ISIV; |
| 2662 |
#else |
| 2663 |
return PERL_constant_NOTDEF; |
| 2664 |
#endif |
| 2665 |
} |
| 2666 |
break; |
| 2667 |
case 'B': |
| 2668 |
if (memEQ(name, "DB_INTERNAL_D", 13)) { |
| 2669 |
/* B */ |
| 2670 |
#ifdef DB_INTERNAL_DB |
| 2671 |
*iv_return = DB_INTERNAL_DB; |
| 2672 |
return PERL_constant_ISIV; |
| 2673 |
#else |
| 2674 |
return PERL_constant_NOTDEF; |
| 2675 |
#endif |
| 2676 |
} |
| 2677 |
break; |
| 2678 |
case 'C': |
| 2679 |
if (memEQ(name, "DB_ENV_NOPANI", 13)) { |
| 2680 |
/* C */ |
| 2681 |
#ifdef DB_ENV_NOPANIC |
| 2682 |
*iv_return = DB_ENV_NOPANIC; |
| 2683 |
return PERL_constant_ISIV; |
| 2684 |
#else |
| 2685 |
return PERL_constant_NOTDEF; |
| 2686 |
#endif |
| 2687 |
} |
| 2688 |
if (memEQ(name, "DB_EVENT_PANI", 13)) { |
| 2689 |
/* C */ |
| 2690 |
#ifdef DB_EVENT_PANIC |
| 2691 |
*iv_return = DB_EVENT_PANIC; |
| 2692 |
return PERL_constant_ISIV; |
| 2693 |
#else |
| 2694 |
return PERL_constant_NOTDEF; |
| 2695 |
#endif |
| 2696 |
} |
| 2697 |
if (memEQ(name, "DB_RENAMEMAGI", 13)) { |
| 2698 |
/* C */ |
| 2699 |
#ifdef DB_RENAMEMAGIC |
| 2700 |
*iv_return = DB_RENAMEMAGIC; |
| 2701 |
return PERL_constant_ISIV; |
| 2702 |
#else |
| 2703 |
return PERL_constant_NOTDEF; |
| 2704 |
#endif |
| 2705 |
} |
| 2706 |
break; |
| 2707 |
case 'D': |
| 2708 |
if (memEQ(name, "DB_EID_INVALI", 13)) { |
| 2709 |
/* D */ |
| 2710 |
#ifdef DB_EID_INVALID |
| 2711 |
*iv_return = DB_EID_INVALID; |
| 2712 |
return PERL_constant_ISIV; |
| 2713 |
#else |
| 2714 |
return PERL_constant_NOTDEF; |
| 2715 |
#endif |
| 2716 |
} |
| 2717 |
if (memEQ(name, "DB_LOCK_RECOR", 13)) { |
| 2718 |
/* D */ |
| 2719 |
#ifdef DB_LOCK_RECORD |
| 2720 |
*iv_return = DB_LOCK_RECORD; |
| 2721 |
return PERL_constant_ISIV; |
| 2722 |
#else |
| 2723 |
return PERL_constant_NOTDEF; |
| 2724 |
#endif |
| 2725 |
} |
| 2726 |
if (memEQ(name, "DB_NOSERVER_I", 13)) { |
| 2727 |
/* D */ |
| 2728 |
#ifdef DB_NOSERVER_ID |
| 2729 |
*iv_return = DB_NOSERVER_ID; |
| 2730 |
return PERL_constant_ISIV; |
| 2731 |
#else |
| 2732 |
return PERL_constant_NOTDEF; |
| 2733 |
#endif |
| 2734 |
} |
| 2735 |
if (memEQ(name, "DB_OPEN_CALLE", 13)) { |
| 2736 |
/* D */ |
| 2737 |
#ifdef DB_OPEN_CALLED |
| 2738 |
*iv_return = DB_OPEN_CALLED; |
| 2739 |
return PERL_constant_ISIV; |
| 2740 |
#else |
| 2741 |
return PERL_constant_NOTDEF; |
| 2742 |
#endif |
| 2743 |
} |
| 2744 |
if (memEQ(name, "DB_SEQ_WRAPPE", 13)) { |
| 2745 |
/* D */ |
| 2746 |
#ifdef DB_SEQ_WRAPPED |
| 2747 |
*iv_return = DB_SEQ_WRAPPED; |
| 2748 |
return PERL_constant_ISIV; |
| 2749 |
#else |
| 2750 |
return PERL_constant_NOTDEF; |
| 2751 |
#endif |
| 2752 |
} |
| 2753 |
break; |
| 2754 |
case 'E': |
| 2755 |
if (memEQ(name, "DB_ARCH_REMOV", 13)) { |
| 2756 |
/* E */ |
| 2757 |
#ifdef DB_ARCH_REMOVE |
| 2758 |
*iv_return = DB_ARCH_REMOVE; |
| 2759 |
return PERL_constant_ISIV; |
| 2760 |
#else |
| 2761 |
return PERL_constant_NOTDEF; |
| 2762 |
#endif |
| 2763 |
} |
| 2764 |
if (memEQ(name, "DB_BACKUP_SIZ", 13)) { |
| 2765 |
/* E */ |
| 2766 |
#if (DB_VERSION_MAJOR > 5) || \ |
| 2767 |
(DB_VERSION_MAJOR == 5 && DB_VERSION_MINOR > 3) || \ |
| 2768 |
(DB_VERSION_MAJOR == 5 && DB_VERSION_MINOR == 3 && \ |
| 2769 |
DB_VERSION_PATCH >= 5) |
| 2770 |
*iv_return = DB_BACKUP_SIZE; |
| 2771 |
return PERL_constant_ISIV; |
| 2772 |
#else |
| 2773 |
return PERL_constant_NOTDEF; |
| 2774 |
#endif |
| 2775 |
} |
| 2776 |
if (memEQ(name, "DB_ENV_PRIVAT", 13)) { |
| 2777 |
/* E */ |
| 2778 |
#ifdef DB_ENV_PRIVATE |
| 2779 |
*iv_return = DB_ENV_PRIVATE; |
| 2780 |
return PERL_constant_ISIV; |
| 2781 |
#else |
| 2782 |
return PERL_constant_NOTDEF; |
| 2783 |
#endif |
| 2784 |
} |
| 2785 |
if (memEQ(name, "DB_LOCK_EXPIR", 13)) { |
| 2786 |
/* E */ |
| 2787 |
#ifdef DB_LOCK_EXPIRE |
| 2788 |
*iv_return = DB_LOCK_EXPIRE; |
| 2789 |
return PERL_constant_ISIV; |
| 2790 |
#else |
| 2791 |
return PERL_constant_NOTDEF; |
| 2792 |
#endif |
| 2793 |
} |
| 2794 |
if (memEQ(name, "DB_LOCK_REMOV", 13)) { |
| 2795 |
/* E */ |
| 2796 |
#ifdef DB_LOCK_REMOVE |
| 2797 |
*iv_return = DB_LOCK_REMOVE; |
| 2798 |
return PERL_constant_ISIV; |
| 2799 |
#else |
| 2800 |
return PERL_constant_NOTDEF; |
| 2801 |
#endif |
| 2802 |
} |
| 2803 |
if (memEQ(name, "DB_NOOVERWRIT", 13)) { |
| 2804 |
/* E */ |
| 2805 |
#ifdef DB_NOOVERWRITE |
| 2806 |
*iv_return = DB_NOOVERWRITE; |
| 2807 |
return PERL_constant_ISIV; |
| 2808 |
#else |
| 2809 |
return PERL_constant_NOTDEF; |
| 2810 |
#endif |
| 2811 |
} |
| 2812 |
if (memEQ(name, "DB_ODDFILESIZ", 13)) { |
| 2813 |
/* E */ |
| 2814 |
#ifdef DB_ODDFILESIZE |
| 2815 |
*iv_return = DB_ODDFILESIZE; |
| 2816 |
return PERL_constant_ISIV; |
| 2817 |
#else |
| 2818 |
return PERL_constant_NOTDEF; |
| 2819 |
#endif |
| 2820 |
} |
| 2821 |
if (memEQ(name, "DB_REGION_NAM", 13)) { |
| 2822 |
/* E */ |
| 2823 |
#ifdef DB_REGION_NAME |
| 2824 |
*iv_return = DB_REGION_NAME; |
| 2825 |
return PERL_constant_ISIV; |
| 2826 |
#else |
| 2827 |
return PERL_constant_NOTDEF; |
| 2828 |
#endif |
| 2829 |
} |
| 2830 |
if (memEQ(name, "DB_REP_NEWSIT", 13)) { |
| 2831 |
/* E */ |
| 2832 |
#ifdef DB_REP_NEWSITE |
| 2833 |
*iv_return = DB_REP_NEWSITE; |
| 2834 |
return PERL_constant_ISIV; |
| 2835 |
#else |
| 2836 |
return PERL_constant_NOTDEF; |
| 2837 |
#endif |
| 2838 |
} |
| 2839 |
if (memEQ(name, "DB_XIDDATASIZ", 13)) { |
| 2840 |
/* E */ |
| 2841 |
#ifdef DB_XIDDATASIZE |
| 2842 |
*iv_return = DB_XIDDATASIZE; |
| 2843 |
return PERL_constant_ISIV; |
| 2844 |
#else |
| 2845 |
return PERL_constant_NOTDEF; |
| 2846 |
#endif |
| 2847 |
} |
| 2848 |
break; |
| 2849 |
case 'F': |
| 2850 |
if (memEQ(name, "DB_REP_BULKOV", 13)) { |
| 2851 |
/* F */ |
| 2852 |
#ifdef DB_REP_BULKOVF |
| 2853 |
*iv_return = DB_REP_BULKOVF; |
| 2854 |
return PERL_constant_ISIV; |
| 2855 |
#else |
| 2856 |
return PERL_constant_NOTDEF; |
| 2857 |
#endif |
| 2858 |
} |
| 2859 |
if (memEQ(name, "DB_REVSPLITOF", 13)) { |
| 2860 |
/* F */ |
| 2861 |
#ifdef DB_REVSPLITOFF |
| 2862 |
*iv_return = DB_REVSPLITOFF; |
| 2863 |
return PERL_constant_ISIV; |
| 2864 |
#else |
| 2865 |
return PERL_constant_NOTDEF; |
| 2866 |
#endif |
| 2867 |
} |
| 2868 |
break; |
| 2869 |
case 'G': |
| 2870 |
if (memEQ(name, "DB_ENV_LOCKIN", 13)) { |
| 2871 |
/* G */ |
| 2872 |
#ifdef DB_ENV_LOCKING |
| 2873 |
*iv_return = DB_ENV_LOCKING; |
| 2874 |
return PERL_constant_ISIV; |
| 2875 |
#else |
| 2876 |
return PERL_constant_NOTDEF; |
| 2877 |
#endif |
| 2878 |
} |
| 2879 |
if (memEQ(name, "DB_ENV_LOGGIN", 13)) { |
| 2880 |
/* G */ |
| 2881 |
#ifdef DB_ENV_LOGGING |
| 2882 |
*iv_return = DB_ENV_LOGGING; |
| 2883 |
return PERL_constant_ISIV; |
| 2884 |
#else |
| 2885 |
return PERL_constant_NOTDEF; |
| 2886 |
#endif |
| 2887 |
} |
| 2888 |
if (memEQ(name, "DB_REP_EGENCH", 13)) { |
| 2889 |
/* G */ |
| 2890 |
#ifdef DB_REP_EGENCHG |
| 2891 |
*iv_return = DB_REP_EGENCHG; |
| 2892 |
return PERL_constant_ISIV; |
| 2893 |
#else |
| 2894 |
return PERL_constant_NOTDEF; |
| 2895 |
#endif |
| 2896 |
} |
| 2897 |
break; |
| 2898 |
case 'H': |
| 2899 |
if (memEQ(name, "DB_ENV_NOFLUS", 13)) { |
| 2900 |
/* H */ |
| 2901 |
#ifdef DB_ENV_NOFLUSH |
| 2902 |
*iv_return = DB_ENV_NOFLUSH; |
| 2903 |
return PERL_constant_ISIV; |
| 2904 |
#else |
| 2905 |
return PERL_constant_NOTDEF; |
| 2906 |
#endif |
| 2907 |
} |
| 2908 |
if (memEQ(name, "DB_LOCK_SWITC", 13)) { |
| 2909 |
/* H */ |
| 2910 |
#ifdef DB_LOCK_SWITCH |
| 2911 |
*iv_return = DB_LOCK_SWITCH; |
| 2912 |
return PERL_constant_ISIV; |
| 2913 |
#else |
| 2914 |
return PERL_constant_NOTDEF; |
| 2915 |
#endif |
| 2916 |
} |
| 2917 |
break; |
| 2918 |
case 'K': |
| 2919 |
if (memEQ(name, "DB_CURSOR_BUL", 13)) { |
| 2920 |
/* K */ |
| 2921 |
#ifdef DB_CURSOR_BULK |
| 2922 |
*iv_return = DB_CURSOR_BULK; |
| 2923 |
return PERL_constant_ISIV; |
| 2924 |
#else |
| 2925 |
return PERL_constant_NOTDEF; |
| 2926 |
#endif |
| 2927 |
} |
| 2928 |
if (memEQ(name, "DB_ENV_FAILCH", 13)) { |
| 2929 |
/* K */ |
| 2930 |
#ifdef DB_ENV_FAILCHK |
| 2931 |
*iv_return = DB_ENV_FAILCHK; |
| 2932 |
return PERL_constant_ISIV; |
| 2933 |
#else |
| 2934 |
return PERL_constant_NOTDEF; |
| 2935 |
#endif |
| 2936 |
} |
| 2937 |
if (memEQ(name, "DB_HANDLE_LOC", 13)) { |
| 2938 |
/* K */ |
| 2939 |
#ifdef DB_HANDLE_LOCK |
| 2940 |
*iv_return = DB_HANDLE_LOCK; |
| 2941 |
return PERL_constant_ISIV; |
| 2942 |
#else |
| 2943 |
return PERL_constant_NOTDEF; |
| 2944 |
#endif |
| 2945 |
} |
| 2946 |
if (memEQ(name, "DB_RECORD_LOC", 13)) { |
| 2947 |
/* K */ |
| 2948 |
#ifdef DB_RECORD_LOCK |
| 2949 |
*iv_return = DB_RECORD_LOCK; |
| 2950 |
return PERL_constant_ISIV; |
| 2951 |
#else |
| 2952 |
return PERL_constant_NOTDEF; |
| 2953 |
#endif |
| 2954 |
} |
| 2955 |
break; |
| 2956 |
case 'L': |
| 2957 |
if (memEQ(name, "DB2_AM_INTEXC", 13)) { |
| 2958 |
/* L */ |
| 2959 |
#ifdef DB2_AM_INTEXCL |
| 2960 |
*iv_return = DB2_AM_INTEXCL; |
| 2961 |
return PERL_constant_ISIV; |
| 2962 |
#else |
| 2963 |
return PERL_constant_NOTDEF; |
| 2964 |
#endif |
| 2965 |
} |
| 2966 |
if (memEQ(name, "DB_ENV_DBLOCA", 13)) { |
| 2967 |
/* L */ |
| 2968 |
#ifdef DB_ENV_DBLOCAL |
| 2969 |
*iv_return = DB_ENV_DBLOCAL; |
| 2970 |
return PERL_constant_ISIV; |
| 2971 |
#else |
| 2972 |
return PERL_constant_NOTDEF; |
| 2973 |
#endif |
| 2974 |
} |
| 2975 |
if (memEQ(name, "DB_REP_UNAVAI", 13)) { |
| 2976 |
/* L */ |
| 2977 |
#ifdef DB_REP_UNAVAIL |
| 2978 |
*iv_return = DB_REP_UNAVAIL; |
| 2979 |
return PERL_constant_ISIV; |
| 2980 |
#else |
| 2981 |
return PERL_constant_NOTDEF; |
| 2982 |
#endif |
| 2983 |
} |
| 2984 |
if (memEQ(name, "DB_ST_TOPLEVE", 13)) { |
| 2985 |
/* L */ |
| 2986 |
#ifdef DB_ST_TOPLEVEL |
| 2987 |
*iv_return = DB_ST_TOPLEVEL; |
| 2988 |
return PERL_constant_ISIV; |
| 2989 |
#else |
| 2990 |
return PERL_constant_NOTDEF; |
| 2991 |
#endif |
| 2992 |
} |
| 2993 |
break; |
| 2994 |
case 'M': |
| 2995 |
if (memEQ(name, "DB_LOCK_RANDO", 13)) { |
| 2996 |
/* M */ |
| 2997 |
#ifdef DB_LOCK_RANDOM |
| 2998 |
*iv_return = DB_LOCK_RANDOM; |
| 2999 |
return PERL_constant_ISIV; |
| 3000 |
#else |
| 3001 |
return PERL_constant_NOTDEF; |
| 3002 |
#endif |
| 3003 |
} |
| 3004 |
if (memEQ(name, "DB_REP_NOTPER", 13)) { |
| 3005 |
/* M */ |
| 3006 |
#ifdef DB_REP_NOTPERM |
| 3007 |
*iv_return = DB_REP_NOTPERM; |
| 3008 |
return PERL_constant_ISIV; |
| 3009 |
#else |
| 3010 |
return PERL_constant_NOTDEF; |
| 3011 |
#endif |
| 3012 |
} |
| 3013 |
break; |
| 3014 |
case 'N': |
| 3015 |
if (memEQ(name, "DB_FILE_ID_LE", 13)) { |
| 3016 |
/* N */ |
| 3017 |
#ifdef DB_FILE_ID_LEN |
| 3018 |
*iv_return = DB_FILE_ID_LEN; |
| 3019 |
return PERL_constant_ISIV; |
| 3020 |
#else |
| 3021 |
return PERL_constant_NOTDEF; |
| 3022 |
#endif |
| 3023 |
} |
| 3024 |
if (memEQ(name, "DB_HASHVERSIO", 13)) { |
| 3025 |
/* N */ |
| 3026 |
#ifdef DB_HASHVERSION |
| 3027 |
*iv_return = DB_HASHVERSION; |
| 3028 |
return PERL_constant_ISIV; |
| 3029 |
#else |
| 3030 |
return PERL_constant_NOTDEF; |
| 3031 |
#endif |
| 3032 |
} |
| 3033 |
if (memEQ(name, "DB_HEAPVERSIO", 13)) { |
| 3034 |
/* N */ |
| 3035 |
#ifdef DB_HEAPVERSION |
| 3036 |
*iv_return = DB_HEAPVERSION; |
| 3037 |
return PERL_constant_ISIV; |
| 3038 |
#else |
| 3039 |
return PERL_constant_NOTDEF; |
| 3040 |
#endif |
| 3041 |
} |
| 3042 |
if (memEQ(name, "DB_LOCKVERSIO", 13)) { |
| 3043 |
/* N */ |
| 3044 |
#ifdef DB_LOCKVERSION |
| 3045 |
*iv_return = DB_LOCKVERSION; |
| 3046 |
return PERL_constant_ISIV; |
| 3047 |
#else |
| 3048 |
return PERL_constant_NOTDEF; |
| 3049 |
#endif |
| 3050 |
} |
| 3051 |
if (memEQ(name, "DB_MPOOL_CLEA", 13)) { |
| 3052 |
/* N */ |
| 3053 |
#ifdef DB_MPOOL_CLEAN |
| 3054 |
*iv_return = DB_MPOOL_CLEAN; |
| 3055 |
return PERL_constant_ISIV; |
| 3056 |
#else |
| 3057 |
return PERL_constant_NOTDEF; |
| 3058 |
#endif |
| 3059 |
} |
| 3060 |
if (memEQ(name, "DB_OLD_VERSIO", 13)) { |
| 3061 |
/* N */ |
| 3062 |
#ifdef DB_OLD_VERSION |
| 3063 |
*iv_return = DB_OLD_VERSION; |
| 3064 |
return PERL_constant_ISIV; |
| 3065 |
#else |
| 3066 |
return PERL_constant_NOTDEF; |
| 3067 |
#endif |
| 3068 |
} |
| 3069 |
if (memEQ(name, "DB_REGION_ANO", 13)) { |
| 3070 |
/* N */ |
| 3071 |
#ifdef DB_REGION_ANON |
| 3072 |
*iv_return = DB_REGION_ANON; |
| 3073 |
return PERL_constant_ISIV; |
| 3074 |
#else |
| 3075 |
return PERL_constant_NOTDEF; |
| 3076 |
#endif |
| 3077 |
} |
| 3078 |
if (memEQ(name, "DB_USE_ENVIRO", 13)) { |
| 3079 |
/* N */ |
| 3080 |
#ifdef DB_USE_ENVIRON |
| 3081 |
*iv_return = DB_USE_ENVIRON; |
| 3082 |
return PERL_constant_ISIV; |
| 3083 |
#else |
| 3084 |
return PERL_constant_NOTDEF; |
| 3085 |
#endif |
| 3086 |
} |
| 3087 |
break; |
| 3088 |
case 'O': |
| 3089 |
if (memEQ(name, "DB_ST_IS_RECN", 13)) { |
| 3090 |
/* O */ |
| 3091 |
#ifdef DB_ST_IS_RECNO |
| 3092 |
*iv_return = DB_ST_IS_RECNO; |
| 3093 |
return PERL_constant_ISIV; |
| 3094 |
#else |
| 3095 |
return PERL_constant_NOTDEF; |
| 3096 |
#endif |
| 3097 |
} |
| 3098 |
break; |
| 3099 |
case 'P': |
| 3100 |
if (memEQ(name, "DB_SHALLOW_DU", 13)) { |
| 3101 |
/* P */ |
| 3102 |
#ifdef DB_SHALLOW_DUP |
| 3103 |
*iv_return = DB_SHALLOW_DUP; |
| 3104 |
return PERL_constant_ISIV; |
| 3105 |
#else |
| 3106 |
return PERL_constant_NOTDEF; |
| 3107 |
#endif |
| 3108 |
} |
| 3109 |
if (memEQ(name, "DB_VERB_BACKU", 13)) { |
| 3110 |
/* P */ |
| 3111 |
#ifdef DB_VERB_BACKUP |
| 3112 |
*iv_return = DB_VERB_BACKUP; |
| 3113 |
return PERL_constant_ISIV; |
| 3114 |
#else |
| 3115 |
return PERL_constant_NOTDEF; |
| 3116 |
#endif |
| 3117 |
} |
| 3118 |
break; |
| 3119 |
case 'R': |
| 3120 |
if (memEQ(name, "DB_BTREEOLDVE", 13)) { |
| 3121 |
/* R */ |
| 3122 |
#ifdef DB_BTREEOLDVER |
| 3123 |
*iv_return = DB_BTREEOLDVER; |
| 3124 |
return PERL_constant_ISIV; |
| 3125 |
#else |
| 3126 |
return PERL_constant_NOTDEF; |
| 3127 |
#endif |
| 3128 |
} |
| 3129 |
if (memEQ(name, "DB_REPMGR_PEE", 13)) { |
| 3130 |
/* R */ |
| 3131 |
#ifdef DB_REPMGR_PEER |
| 3132 |
*iv_return = DB_REPMGR_PEER; |
| 3133 |
return PERL_constant_ISIV; |
| 3134 |
#else |
| 3135 |
return PERL_constant_NOTDEF; |
| 3136 |
#endif |
| 3137 |
} |
| 3138 |
if (memEQ(name, "DB_WRITECURSO", 13)) { |
| 3139 |
/* R */ |
| 3140 |
#ifdef DB_WRITECURSOR |
| 3141 |
*iv_return = DB_WRITECURSOR; |
| 3142 |
return PERL_constant_ISIV; |
| 3143 |
#else |
| 3144 |
return PERL_constant_NOTDEF; |
| 3145 |
#endif |
| 3146 |
} |
| 3147 |
if (memEQ(name, "LOGREC_POINTE", 13)) { |
| 3148 |
/* R */ |
| 3149 |
#if (DB_VERSION_MAJOR > 5) || \ |
| 3150 |
(DB_VERSION_MAJOR == 5 && DB_VERSION_MINOR > 0) || \ |
| 3151 |
(DB_VERSION_MAJOR == 5 && DB_VERSION_MINOR == 0 && \ |
| 3152 |
DB_VERSION_PATCH >= 6) |
| 3153 |
*iv_return = LOGREC_POINTER; |
| 3154 |
return PERL_constant_ISIV; |
| 3155 |
#else |
| 3156 |
return PERL_constant_NOTDEF; |
| 3157 |
#endif |
| 3158 |
} |
| 3159 |
break; |
| 3160 |
case 'S': |
| 3161 |
if (memEQ(name, "DB_ENCRYPT_AE", 13)) { |
| 3162 |
/* S */ |
| 3163 |
#ifdef DB_ENCRYPT_AES |
| 3164 |
*iv_return = DB_ENCRYPT_AES; |
| 3165 |
return PERL_constant_ISIV; |
| 3166 |
#else |
| 3167 |
return PERL_constant_NOTDEF; |
| 3168 |
#endif |
| 3169 |
} |
| 3170 |
if (memEQ(name, "DB_MAX_RECORD", 13)) { |
| 3171 |
/* S */ |
| 3172 |
#ifdef DB_MAX_RECORDS |
| 3173 |
*iv_return = DB_MAX_RECORDS; |
| 3174 |
return PERL_constant_ISIV; |
| 3175 |
#else |
| 3176 |
return PERL_constant_NOTDEF; |
| 3177 |
#endif |
| 3178 |
} |
| 3179 |
break; |
| 3180 |
case 'T': |
| 3181 |
if (memEQ(name, "DB_AUTO_COMMI", 13)) { |
| 3182 |
/* T */ |
| 3183 |
#ifdef DB_AUTO_COMMIT |
| 3184 |
*iv_return = DB_AUTO_COMMIT; |
| 3185 |
return PERL_constant_ISIV; |
| 3186 |
#else |
| 3187 |
return PERL_constant_NOTDEF; |
| 3188 |
#endif |
| 3189 |
} |
| 3190 |
if (memEQ(name, "DB_ENV_APPINI", 13)) { |
| 3191 |
/* T */ |
| 3192 |
#ifdef DB_ENV_APPINIT |
| 3193 |
*iv_return = DB_ENV_APPINIT; |
| 3194 |
return PERL_constant_ISIV; |
| 3195 |
#else |
| 3196 |
return PERL_constant_NOTDEF; |
| 3197 |
#endif |
| 3198 |
} |
| 3199 |
if (memEQ(name, "DB_JOIN_NOSOR", 13)) { |
| 3200 |
/* T */ |
| 3201 |
#ifdef DB_JOIN_NOSORT |
| 3202 |
*iv_return = DB_JOIN_NOSORT; |
| 3203 |
return PERL_constant_ISIV; |
| 3204 |
#else |
| 3205 |
return PERL_constant_NOTDEF; |
| 3206 |
#endif |
| 3207 |
} |
| 3208 |
if (memEQ(name, "DB_LOCK_NOWAI", 13)) { |
| 3209 |
/* T */ |
| 3210 |
#ifdef DB_LOCK_NOWAIT |
| 3211 |
*iv_return = DB_LOCK_NOWAIT; |
| 3212 |
return PERL_constant_ISIV; |
| 3213 |
#else |
| 3214 |
return PERL_constant_NOTDEF; |
| 3215 |
#endif |
| 3216 |
} |
| 3217 |
if (memEQ(name, "DB_LOCK_OLDES", 13)) { |
| 3218 |
/* T */ |
| 3219 |
#ifdef DB_LOCK_OLDEST |
| 3220 |
*iv_return = DB_LOCK_OLDEST; |
| 3221 |
return PERL_constant_ISIV; |
| 3222 |
#else |
| 3223 |
return PERL_constant_NOTDEF; |
| 3224 |
#endif |
| 3225 |
} |
| 3226 |
if (memEQ(name, "DB_RECORDCOUN", 13)) { |
| 3227 |
/* T */ |
| 3228 |
#ifdef DB_RECORDCOUNT |
| 3229 |
*iv_return = DB_RECORDCOUNT; |
| 3230 |
return PERL_constant_ISIV; |
| 3231 |
#else |
| 3232 |
return PERL_constant_NOTDEF; |
| 3233 |
#endif |
| 3234 |
} |
| 3235 |
if (memEQ(name, "DB_REGION_INI", 13)) { |
| 3236 |
/* T */ |
| 3237 |
#ifdef DB_REGION_INIT |
| 3238 |
*iv_return = DB_REGION_INIT; |
| 3239 |
return PERL_constant_ISIV; |
| 3240 |
#else |
| 3241 |
return PERL_constant_NOTDEF; |
| 3242 |
#endif |
| 3243 |
} |
| 3244 |
if (memEQ(name, "DB_REP_LOCKOU", 13)) { |
| 3245 |
/* T */ |
| 3246 |
#ifdef DB_REP_LOCKOUT |
| 3247 |
*iv_return = DB_REP_LOCKOUT; |
| 3248 |
return PERL_constant_ISIV; |
| 3249 |
#else |
| 3250 |
return PERL_constant_NOTDEF; |
| 3251 |
#endif |
| 3252 |
} |
| 3253 |
break; |
| 3254 |
case 'W': |
| 3255 |
if (memEQ(name, "DB_SET_TXN_NO", 13)) { |
| 3256 |
/* W */ |
| 3257 |
#ifdef DB_SET_TXN_NOW |
| 3258 |
*iv_return = DB_SET_TXN_NOW; |
| 3259 |
return PERL_constant_ISIV; |
| 3260 |
#else |
| 3261 |
return PERL_constant_NOTDEF; |
| 3262 |
#endif |
| 3263 |
} |
| 3264 |
break; |
| 3265 |
case 'Y': |
| 3266 |
if (memEQ(name, "DB_MPOOL_DIRT", 13)) { |
| 3267 |
/* Y */ |
| 3268 |
#ifdef DB_MPOOL_DIRTY |
| 3269 |
*iv_return = DB_MPOOL_DIRTY; |
| 3270 |
return PERL_constant_ISIV; |
| 3271 |
#else |
| 3272 |
return PERL_constant_NOTDEF; |
| 3273 |
#endif |
| 3274 |
} |
| 3275 |
if (memEQ(name, "DB_RUNRECOVER", 13)) { |
| 3276 |
/* Y */ |
| 3277 |
#ifdef DB_RUNRECOVERY |
| 3278 |
*iv_return = DB_RUNRECOVERY; |
| 3279 |
return PERL_constant_ISIV; |
| 3280 |
#else |
| 3281 |
return PERL_constant_NOTDEF; |
| 3282 |
#endif |
| 3283 |
} |
| 3284 |
break; |
| 3285 |
case 'Z': |
| 3286 |
if (memEQ(name, "DB_HEAP_RID_S", 13)) { |
| 3287 |
/* Z */ |
| 3288 |
#ifdef DB_HEAP_RID_SZ |
| 3289 |
*iv_return = DB_HEAP_RID_SZ; |
| 3290 |
return PERL_constant_ISIV; |
| 3291 |
#else |
| 3292 |
return PERL_constant_NOTDEF; |
| 3293 |
#endif |
| 3294 |
} |
| 3295 |
break; |
| 3296 |
} |
| 3297 |
return PERL_constant_NOTFOUND; |
| 3298 |
} |
| 3299 |
|
| 3300 |
static int |
| 3301 |
constant_15 (pTHX_ const char *name, IV *iv_return) { |
| 3302 |
/* When generated this function returned values for the list of names given |
| 3303 |
here. However, subsequent manual editing may have added or removed some. |
| 3304 |
DB_APPLY_LOGREG DB_ASSOC_CREATE DB_BACKUP_CLEAN DB_BACKUP_FILES |
| 3305 |
DB_BTREEVERSION DB_BUFFER_SMALL DB_CKP_INTERNAL DB_CONSUME_WAIT |
| 3306 |
DB_ENV_DSYNC_DB DB_ENV_LOCKDOWN DB_ENV_YIELDCPU DB_GET_BOTH_LTE |
| 3307 |
DB_IGNORE_LEASE DB_LOCK_DEFAULT DB_LOCK_INHERIT DB_LOCK_NOTHELD |
| 3308 |
DB_LOCK_PUT_ALL DB_LOCK_PUT_OBJ DB_LOCK_TIMEOUT DB_LOCK_UPGRADE |
| 3309 |
DB_LOG_INMEMORY DB_LOG_WRNOSYNC DB_MPOOL_CREATE DB_MPOOL_EXTENT |
| 3310 |
DB_MPOOL_NOFILE DB_MPOOL_NOLOCK DB_MPOOL_UNLINK DB_MULTIPLE_KEY |
| 3311 |
DB_MULTIVERSION DB_MUTEX_LOCKED DB_MUTEX_SHARED DB_MUTEX_THREAD |
| 3312 |
DB_OPFLAGS_MASK DB_ORDERCHKONLY DB_PRIORITY_LOW DB_REGION_MAGIC |
| 3313 |
DB_REP_ANYWHERE DB_REP_ELECTION DB_REP_LOGREADY DB_REP_LOGSONLY |
| 3314 |
DB_REP_NOBUFFER DB_REP_OUTDATED DB_REP_PAGEDONE DB_STAT_NOERROR |
| 3315 |
DB_STAT_SUMMARY DB_ST_OVFL_LEAF DB_SURPRISE_KID DB_TEST_POSTLOG |
| 3316 |
DB_TEST_PREOPEN DB_TEST_RECYCLE DB_TXN_LOCK_2PL DB_TXN_LOG_MASK |
| 3317 |
DB_TXN_LOG_REDO DB_TXN_LOG_UNDO DB_TXN_SNAPSHOT DB_VERB_FILEOPS |
| 3318 |
DB_VERIFY_FATAL */ |
| 3319 |
/* Offset 10 gives the best switch position. */ |
| 3320 |
switch (name[10]) { |
| 3321 |
case 'C': |
| 3322 |
if (memEQ(name, "DB_BACKUP_CLEAN", 15)) { |
| 3323 |
/* ^ */ |
| 3324 |
#ifdef DB_BACKUP_CLEAN |
| 3325 |
*iv_return = DB_BACKUP_CLEAN; |
| 3326 |
return PERL_constant_ISIV; |
| 3327 |
#else |
| 3328 |
return PERL_constant_NOTDEF; |
| 3329 |
#endif |
| 3330 |
} |
| 3331 |
if (memEQ(name, "DB_REP_ELECTION", 15)) { |
| 3332 |
/* ^ */ |
| 3333 |
#ifdef DB_REP_ELECTION |
| 3334 |
*iv_return = DB_REP_ELECTION; |
| 3335 |
return PERL_constant_ISIV; |
| 3336 |
#else |
| 3337 |
return PERL_constant_NOTDEF; |
| 3338 |
#endif |
| 3339 |
} |
| 3340 |
if (memEQ(name, "DB_TEST_RECYCLE", 15)) { |
| 3341 |
/* ^ */ |
| 3342 |
#ifdef DB_TEST_RECYCLE |
| 3343 |
*iv_return = DB_TEST_RECYCLE; |
| 3344 |
return PERL_constant_ISIV; |
| 3345 |
#else |
| 3346 |
return PERL_constant_NOTDEF; |
| 3347 |
#endif |
| 3348 |
} |
| 3349 |
break; |
| 3350 |
case 'D': |
| 3351 |
if (memEQ(name, "DB_REP_OUTDATED", 15)) { |
| 3352 |
/* ^ */ |
| 3353 |
#ifdef DB_REP_OUTDATED |
| 3354 |
*iv_return = DB_REP_OUTDATED; |
| 3355 |
return PERL_constant_ISIV; |
| 3356 |
#else |
| 3357 |
return PERL_constant_NOTDEF; |
| 3358 |
#endif |
| 3359 |
} |
| 3360 |
break; |
| 3361 |
case 'E': |
| 3362 |
if (memEQ(name, "DB_CKP_INTERNAL", 15)) { |
| 3363 |
/* ^ */ |
| 3364 |
#ifdef DB_CKP_INTERNAL |
| 3365 |
*iv_return = DB_CKP_INTERNAL; |
| 3366 |
return PERL_constant_ISIV; |
| 3367 |
#else |
| 3368 |
return PERL_constant_NOTDEF; |
| 3369 |
#endif |
| 3370 |
} |
| 3371 |
if (memEQ(name, "DB_LOG_INMEMORY", 15)) { |
| 3372 |
/* ^ */ |
| 3373 |
#ifdef DB_LOG_INMEMORY |
| 3374 |
*iv_return = DB_LOG_INMEMORY; |
| 3375 |
return PERL_constant_ISIV; |
| 3376 |
#else |
| 3377 |
return PERL_constant_NOTDEF; |
| 3378 |
#endif |
| 3379 |
} |
| 3380 |
if (memEQ(name, "DB_MULTIPLE_KEY", 15)) { |
| 3381 |
/* ^ */ |
| 3382 |
#ifdef DB_MULTIPLE_KEY |
| 3383 |
*iv_return = DB_MULTIPLE_KEY; |
| 3384 |
return PERL_constant_ISIV; |
| 3385 |
#else |
| 3386 |
return PERL_constant_NOTDEF; |
| 3387 |
#endif |
| 3388 |
} |
| 3389 |
if (memEQ(name, "DB_REP_PAGEDONE", 15)) { |
| 3390 |
/* ^ */ |
| 3391 |
#ifdef DB_REP_PAGEDONE |
| 3392 |
*iv_return = DB_REP_PAGEDONE; |
| 3393 |
return PERL_constant_ISIV; |
| 3394 |
#else |
| 3395 |
return PERL_constant_NOTDEF; |
| 3396 |
#endif |
| 3397 |
} |
| 3398 |
if (memEQ(name, "DB_STAT_NOERROR", 15)) { |
| 3399 |
/* ^ */ |
| 3400 |
#ifdef DB_STAT_NOERROR |
| 3401 |
*iv_return = DB_STAT_NOERROR; |
| 3402 |
return PERL_constant_ISIV; |
| 3403 |
#else |
| 3404 |
return PERL_constant_NOTDEF; |
| 3405 |
#endif |
| 3406 |
} |
| 3407 |
if (memEQ(name, "DB_SURPRISE_KID", 15)) { |
| 3408 |
/* ^ */ |
| 3409 |
#ifdef DB_SURPRISE_KID |
| 3410 |
*iv_return = DB_SURPRISE_KID; |
| 3411 |
return PERL_constant_ISIV; |
| 3412 |
#else |
| 3413 |
return PERL_constant_NOTDEF; |
| 3414 |
#endif |
| 3415 |
} |
| 3416 |
if (memEQ(name, "DB_TEST_PREOPEN", 15)) { |
| 3417 |
/* ^ */ |
| 3418 |
#ifdef DB_TEST_PREOPEN |
| 3419 |
*iv_return = DB_TEST_PREOPEN; |
| 3420 |
return PERL_constant_ISIV; |
| 3421 |
#else |
| 3422 |
return PERL_constant_NOTDEF; |
| 3423 |
#endif |
| 3424 |
} |
| 3425 |
break; |
| 3426 |
case 'F': |
| 3427 |
if (memEQ(name, "DB_BACKUP_FILES", 15)) { |
| 3428 |
/* ^ */ |
| 3429 |
#ifdef DB_BACKUP_FILES |
| 3430 |
*iv_return = DB_BACKUP_FILES; |
| 3431 |
return PERL_constant_ISIV; |
| 3432 |
#else |
| 3433 |
return PERL_constant_NOTDEF; |
| 3434 |
#endif |
| 3435 |
} |
| 3436 |
if (memEQ(name, "DB_LOCK_DEFAULT", 15)) { |
| 3437 |
/* ^ */ |
| 3438 |
#ifdef DB_LOCK_DEFAULT |
| 3439 |
*iv_return = DB_LOCK_DEFAULT; |
| 3440 |
return PERL_constant_ISIV; |
| 3441 |
#else |
| 3442 |
return PERL_constant_NOTDEF; |
| 3443 |
#endif |
| 3444 |
} |
| 3445 |
if (memEQ(name, "DB_VERIFY_FATAL", 15)) { |
| 3446 |
/* ^ */ |
| 3447 |
#ifdef DB_VERIFY_FATAL |
| 3448 |
*iv_return = DB_VERIFY_FATAL; |
| 3449 |
return PERL_constant_ISIV; |
| 3450 |
#else |
| 3451 |
return PERL_constant_NOTDEF; |
| 3452 |
#endif |
| 3453 |
} |
| 3454 |
break; |
| 3455 |
case 'G': |
| 3456 |
if (memEQ(name, "DB_LOCK_UPGRADE", 15)) { |
| 3457 |
/* ^ */ |
| 3458 |
#ifdef DB_LOCK_UPGRADE |
| 3459 |
*iv_return = DB_LOCK_UPGRADE; |
| 3460 |
return PERL_constant_ISIV; |
| 3461 |
#else |
| 3462 |
return PERL_constant_NOTDEF; |
| 3463 |
#endif |
| 3464 |
} |
| 3465 |
break; |
| 3466 |
case 'H': |
| 3467 |
if (memEQ(name, "DB_GET_BOTH_LTE", 15)) { |
| 3468 |
/* ^ */ |
| 3469 |
#ifdef DB_GET_BOTH_LTE |
| 3470 |
*iv_return = DB_GET_BOTH_LTE; |
| 3471 |
return PERL_constant_ISIV; |
| 3472 |
#else |
| 3473 |
return PERL_constant_NOTDEF; |
| 3474 |
#endif |
| 3475 |
} |
| 3476 |
if (memEQ(name, "DB_LOCK_INHERIT", 15)) { |
| 3477 |
/* ^ */ |
| 3478 |
#if (DB_VERSION_MAJOR > 2) || \ |
| 3479 |
(DB_VERSION_MAJOR == 2 && DB_VERSION_MINOR > 7) || \ |
| 3480 |
(DB_VERSION_MAJOR == 2 && DB_VERSION_MINOR == 7 && \ |
| 3481 |
DB_VERSION_PATCH >= 1) |
| 3482 |
*iv_return = DB_LOCK_INHERIT; |
| 3483 |
return PERL_constant_ISIV; |
| 3484 |
#else |
| 3485 |
return PERL_constant_NOTDEF; |
| 3486 |
#endif |
| 3487 |
} |
| 3488 |
if (memEQ(name, "DB_MUTEX_SHARED", 15)) { |
| 3489 |
/* ^ */ |
| 3490 |
#ifdef DB_MUTEX_SHARED |
| 3491 |
*iv_return = DB_MUTEX_SHARED; |
| 3492 |
return PERL_constant_ISIV; |
| 3493 |
#else |
| 3494 |
return PERL_constant_NOTDEF; |
| 3495 |
#endif |
| 3496 |
} |
| 3497 |
if (memEQ(name, "DB_MUTEX_THREAD", 15)) { |
| 3498 |
/* ^ */ |
| 3499 |
#ifdef DB_MUTEX_THREAD |
| 3500 |
*iv_return = DB_MUTEX_THREAD; |
| 3501 |
return PERL_constant_ISIV; |
| 3502 |
#else |
| 3503 |
return PERL_constant_NOTDEF; |
| 3504 |
#endif |
| 3505 |
} |
| 3506 |
break; |
| 3507 |
case 'K': |
| 3508 |
if (memEQ(name, "DB_ENV_LOCKDOWN", 15)) { |
| 3509 |
/* ^ */ |
| 3510 |
#ifdef DB_ENV_LOCKDOWN |
| 3511 |
*iv_return = DB_ENV_LOCKDOWN; |
| 3512 |
return PERL_constant_ISIV; |
| 3513 |
#else |
| 3514 |
return PERL_constant_NOTDEF; |
| 3515 |
#endif |
| 3516 |
} |
| 3517 |
if (memEQ(name, "DB_ORDERCHKONLY", 15)) { |
| 3518 |
/* ^ */ |
| 3519 |
#ifdef DB_ORDERCHKONLY |
| 3520 |
*iv_return = DB_ORDERCHKONLY; |
| 3521 |
return PERL_constant_ISIV; |
| 3522 |
#else |
| 3523 |
return PERL_constant_NOTDEF; |
| 3524 |
#endif |
| 3525 |
} |
| 3526 |
if (memEQ(name, "DB_TXN_LOCK_2PL", 15)) { |
| 3527 |
/* ^ */ |
| 3528 |
#ifdef DB_TXN_LOCK_2PL |
| 3529 |
*iv_return = DB_TXN_LOCK_2PL; |
| 3530 |
return PERL_constant_ISIV; |
| 3531 |
#else |
| 3532 |
return PERL_constant_NOTDEF; |
| 3533 |
#endif |
| 3534 |
} |
| 3535 |
break; |
| 3536 |
case 'L': |
| 3537 |
if (memEQ(name, "DB_ENV_YIELDCPU", 15)) { |
| 3538 |
/* ^ */ |
| 3539 |
#ifdef DB_ENV_YIELDCPU |
| 3540 |
*iv_return = DB_ENV_YIELDCPU; |
| 3541 |
return PERL_constant_ISIV; |
| 3542 |
#else |
| 3543 |
return PERL_constant_NOTDEF; |
| 3544 |
#endif |
| 3545 |
} |
| 3546 |
if (memEQ(name, "DB_IGNORE_LEASE", 15)) { |
| 3547 |
/* ^ */ |
| 3548 |
#ifdef DB_IGNORE_LEASE |
| 3549 |
*iv_return = DB_IGNORE_LEASE; |
| 3550 |
return PERL_constant_ISIV; |
| 3551 |
#else |
| 3552 |
return PERL_constant_NOTDEF; |
| 3553 |
#endif |
| 3554 |
} |
| 3555 |
if (memEQ(name, "DB_VERB_FILEOPS", 15)) { |
| 3556 |
/* ^ */ |
| 3557 |
#ifdef DB_VERB_FILEOPS |
| 3558 |
*iv_return = DB_VERB_FILEOPS; |
| 3559 |
return PERL_constant_ISIV; |
| 3560 |
#else |
| 3561 |
return PERL_constant_NOTDEF; |
| 3562 |
#endif |
| 3563 |
} |
| 3564 |
break; |
| 3565 |
case 'M': |
| 3566 |
if (memEQ(name, "DB_LOCK_TIMEOUT", 15)) { |
| 3567 |
/* ^ */ |
| 3568 |
#if (DB_VERSION_MAJOR > 4) || \ |
| 3569 |
(DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR > 0) || \ |
| 3570 |
(DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR == 0 && \ |
| 3571 |
DB_VERSION_PATCH >= 14) |
| 3572 |
*iv_return = DB_LOCK_TIMEOUT; |
| 3573 |
return PERL_constant_ISIV; |
| 3574 |
#else |
| 3575 |
return PERL_constant_NOTDEF; |
| 3576 |
#endif |
| 3577 |
} |
| 3578 |
if (memEQ(name, "DB_REGION_MAGIC", 15)) { |
| 3579 |
/* ^ */ |
| 3580 |
#ifdef DB_REGION_MAGIC |
| 3581 |
*iv_return = DB_REGION_MAGIC; |
| 3582 |
return PERL_constant_ISIV; |
| 3583 |
#else |
| 3584 |
return PERL_constant_NOTDEF; |
| 3585 |
#endif |
| 3586 |
} |
| 3587 |
if (memEQ(name, "DB_STAT_SUMMARY", 15)) { |
| 3588 |
/* ^ */ |
| 3589 |
#ifdef DB_STAT_SUMMARY |
| 3590 |
*iv_return = DB_STAT_SUMMARY; |
| 3591 |
return PERL_constant_ISIV; |
| 3592 |
#else |
| 3593 |
return PERL_constant_NOTDEF; |
| 3594 |
#endif |
| 3595 |
} |
| 3596 |
break; |
| 3597 |
case 'N': |
| 3598 |
if (memEQ(name, "DB_ENV_DSYNC_DB", 15)) { |
| 3599 |
/* ^ */ |
| 3600 |
#ifdef DB_ENV_DSYNC_DB |
| 3601 |
*iv_return = DB_ENV_DSYNC_DB; |
| 3602 |
return PERL_constant_ISIV; |
| 3603 |
#else |
| 3604 |
return PERL_constant_NOTDEF; |
| 3605 |
#endif |
| 3606 |
} |
| 3607 |
if (memEQ(name, "DB_MPOOL_UNLINK", 15)) { |
| 3608 |
/* ^ */ |
| 3609 |
#ifdef DB_MPOOL_UNLINK |
| 3610 |
*iv_return = DB_MPOOL_UNLINK; |
| 3611 |
return PERL_constant_ISIV; |
| 3612 |
#else |
| 3613 |
return PERL_constant_NOTDEF; |
| 3614 |
#endif |
| 3615 |
} |
| 3616 |
break; |
| 3617 |
case 'O': |
| 3618 |
if (memEQ(name, "DB_APPLY_LOGREG", 15)) { |
| 3619 |
/* ^ */ |
| 3620 |
#ifdef DB_APPLY_LOGREG |
| 3621 |
*iv_return = DB_APPLY_LOGREG; |
| 3622 |
return PERL_constant_ISIV; |
| 3623 |
#else |
| 3624 |
return PERL_constant_NOTDEF; |
| 3625 |
#endif |
| 3626 |
} |
| 3627 |
if (memEQ(name, "DB_LOG_WRNOSYNC", 15)) { |
| 3628 |
/* ^ */ |
| 3629 |
#ifdef DB_LOG_WRNOSYNC |
| 3630 |
*iv_return = DB_LOG_WRNOSYNC; |
| 3631 |
return PERL_constant_ISIV; |
| 3632 |
#else |
| 3633 |
return PERL_constant_NOTDEF; |
| 3634 |
#endif |
| 3635 |
} |
| 3636 |
if (memEQ(name, "DB_MPOOL_NOFILE", 15)) { |
| 3637 |
/* ^ */ |
| 3638 |
#ifdef DB_MPOOL_NOFILE |
| 3639 |
*iv_return = DB_MPOOL_NOFILE; |
| 3640 |
return PERL_constant_ISIV; |
| 3641 |
#else |
| 3642 |
return PERL_constant_NOTDEF; |
| 3643 |
#endif |
| 3644 |
} |
| 3645 |
if (memEQ(name, "DB_MPOOL_NOLOCK", 15)) { |
| 3646 |
/* ^ */ |
| 3647 |
#ifdef DB_MPOOL_NOLOCK |
| 3648 |
*iv_return = DB_MPOOL_NOLOCK; |
| 3649 |
return PERL_constant_ISIV; |
| 3650 |
#else |
| 3651 |
return PERL_constant_NOTDEF; |
| 3652 |
#endif |
| 3653 |
} |
| 3654 |
if (memEQ(name, "DB_MUTEX_LOCKED", 15)) { |
| 3655 |
/* ^ */ |
| 3656 |
#ifdef DB_MUTEX_LOCKED |
| 3657 |
*iv_return = DB_MUTEX_LOCKED; |
| 3658 |
return PERL_constant_ISIV; |
| 3659 |
#else |
| 3660 |
return PERL_constant_NOTDEF; |
| 3661 |
#endif |
| 3662 |
} |
| 3663 |
break; |
| 3664 |
case 'P': |
| 3665 |
if (memEQ(name, "DB_TXN_SNAPSHOT", 15)) { |
| 3666 |
/* ^ */ |
| 3667 |
#ifdef DB_TXN_SNAPSHOT |
| 3668 |
*iv_return = DB_TXN_SNAPSHOT; |
| 3669 |
return PERL_constant_ISIV; |
| 3670 |
#else |
| 3671 |
return PERL_constant_NOTDEF; |
| 3672 |
#endif |
| 3673 |
} |
| 3674 |
break; |
| 3675 |
case 'R': |
| 3676 |
if (memEQ(name, "DB_ASSOC_CREATE", 15)) { |
| 3677 |
/* ^ */ |
| 3678 |
#ifdef DB_ASSOC_CREATE |
| 3679 |
*iv_return = DB_ASSOC_CREATE; |
| 3680 |
return PERL_constant_ISIV; |
| 3681 |
#else |
| 3682 |
return PERL_constant_NOTDEF; |
| 3683 |
#endif |
| 3684 |
} |
| 3685 |
if (memEQ(name, "DB_BTREEVERSION", 15)) { |
| 3686 |
/* ^ */ |
| 3687 |
#ifdef DB_BTREEVERSION |
| 3688 |
*iv_return = DB_BTREEVERSION; |
| 3689 |
return PERL_constant_ISIV; |
| 3690 |
#else |
| 3691 |
return PERL_constant_NOTDEF; |
| 3692 |
#endif |
| 3693 |
} |
| 3694 |
if (memEQ(name, "DB_MPOOL_CREATE", 15)) { |
| 3695 |
/* ^ */ |
| 3696 |
#ifdef DB_MPOOL_CREATE |
| 3697 |
*iv_return = DB_MPOOL_CREATE; |
| 3698 |
return PERL_constant_ISIV; |
| 3699 |
#else |
| 3700 |
return PERL_constant_NOTDEF; |
| 3701 |
#endif |
| 3702 |
} |
| 3703 |
if (memEQ(name, "DB_MULTIVERSION", 15)) { |
| 3704 |
/* ^ */ |
| 3705 |
#ifdef DB_MULTIVERSION |
| 3706 |
*iv_return = DB_MULTIVERSION; |
| 3707 |
return PERL_constant_ISIV; |
| 3708 |
#else |
| 3709 |
return PERL_constant_NOTDEF; |
| 3710 |
#endif |
| 3711 |
} |
| 3712 |
if (memEQ(name, "DB_REP_LOGREADY", 15)) { |
| 3713 |
/* ^ */ |
| 3714 |
#ifdef DB_REP_LOGREADY |
| 3715 |
*iv_return = DB_REP_LOGREADY; |
| 3716 |
return PERL_constant_ISIV; |
| 3717 |
#else |
| 3718 |
return PERL_constant_NOTDEF; |
| 3719 |
#endif |
| 3720 |
} |
| 3721 |
break; |
| 3722 |
case 'S': |
| 3723 |
if (memEQ(name, "DB_BUFFER_SMALL", 15)) { |
| 3724 |
/* ^ */ |
| 3725 |
#ifdef DB_BUFFER_SMALL |
| 3726 |
*iv_return = DB_BUFFER_SMALL; |
| 3727 |
return PERL_constant_ISIV; |
| 3728 |
#else |
| 3729 |
return PERL_constant_NOTDEF; |
| 3730 |
#endif |
| 3731 |
} |
| 3732 |
if (memEQ(name, "DB_REP_LOGSONLY", 15)) { |
| 3733 |
/* ^ */ |
| 3734 |
#ifdef DB_REP_LOGSONLY |
| 3735 |
*iv_return = DB_REP_LOGSONLY; |
| 3736 |
return PERL_constant_ISIV; |
| 3737 |
#else |
| 3738 |
return PERL_constant_NOTDEF; |
| 3739 |
#endif |
| 3740 |
} |
| 3741 |
if (memEQ(name, "DB_TEST_POSTLOG", 15)) { |
| 3742 |
/* ^ */ |
| 3743 |
#ifdef DB_TEST_POSTLOG |
| 3744 |
*iv_return = DB_TEST_POSTLOG; |
| 3745 |
return PERL_constant_ISIV; |
| 3746 |
#else |
| 3747 |
return PERL_constant_NOTDEF; |
| 3748 |
#endif |
| 3749 |
} |
| 3750 |
break; |
| 3751 |
case 'T': |
| 3752 |
if (memEQ(name, "DB_LOCK_NOTHELD", 15)) { |
| 3753 |
/* ^ */ |
| 3754 |
#ifdef DB_LOCK_NOTHELD |
| 3755 |
*iv_return = DB_LOCK_NOTHELD; |
| 3756 |
return PERL_constant_ISIV; |
| 3757 |
#else |
| 3758 |
return PERL_constant_NOTDEF; |
| 3759 |
#endif |
| 3760 |
} |
| 3761 |
if (memEQ(name, "DB_LOCK_PUT_ALL", 15)) { |
| 3762 |
/* ^ */ |
| 3763 |
#if (DB_VERSION_MAJOR > 2) || \ |
| 3764 |
(DB_VERSION_MAJOR == 2 && DB_VERSION_MINOR > 0) || \ |
| 3765 |
(DB_VERSION_MAJOR == 2 && DB_VERSION_MINOR == 0 && \ |
| 3766 |
DB_VERSION_PATCH >= 3) |
| 3767 |
*iv_return = DB_LOCK_PUT_ALL; |
| 3768 |
return PERL_constant_ISIV; |
| 3769 |
#else |
| 3770 |
return PERL_constant_NOTDEF; |
| 3771 |
#endif |
| 3772 |
} |
| 3773 |
if (memEQ(name, "DB_LOCK_PUT_OBJ", 15)) { |
| 3774 |
/* ^ */ |
| 3775 |
#if (DB_VERSION_MAJOR > 2) || \ |
| 3776 |
(DB_VERSION_MAJOR == 2 && DB_VERSION_MINOR > 0) || \ |
| 3777 |
(DB_VERSION_MAJOR == 2 && DB_VERSION_MINOR == 0 && \ |
| 3778 |
DB_VERSION_PATCH >= 3) |
| 3779 |
*iv_return = DB_LOCK_PUT_OBJ; |
| 3780 |
return PERL_constant_ISIV; |
| 3781 |
#else |
| 3782 |
return PERL_constant_NOTDEF; |
| 3783 |
#endif |
| 3784 |
} |
| 3785 |
break; |
| 3786 |
case 'U': |
| 3787 |
if (memEQ(name, "DB_REP_NOBUFFER", 15)) { |
| 3788 |
/* ^ */ |
| 3789 |
#ifdef DB_REP_NOBUFFER |
| 3790 |
*iv_return = DB_REP_NOBUFFER; |
| 3791 |
return PERL_constant_ISIV; |
| 3792 |
#else |
| 3793 |
return PERL_constant_NOTDEF; |
| 3794 |
#endif |
| 3795 |
} |
| 3796 |
break; |
| 3797 |
case 'W': |
| 3798 |
if (memEQ(name, "DB_REP_ANYWHERE", 15)) { |
| 3799 |
/* ^ */ |
| 3800 |
#ifdef DB_REP_ANYWHERE |
| 3801 |
*iv_return = DB_REP_ANYWHERE; |
| 3802 |
return PERL_constant_ISIV; |
| 3803 |
#else |
| 3804 |
return PERL_constant_NOTDEF; |
| 3805 |
#endif |
| 3806 |
} |
| 3807 |
break; |
| 3808 |
case 'X': |
| 3809 |
if (memEQ(name, "DB_MPOOL_EXTENT", 15)) { |
| 3810 |
/* ^ */ |
| 3811 |
#ifdef DB_MPOOL_EXTENT |
| 3812 |
*iv_return = DB_MPOOL_EXTENT; |
| 3813 |
return PERL_constant_ISIV; |
| 3814 |
#else |
| 3815 |
return PERL_constant_NOTDEF; |
| 3816 |
#endif |
| 3817 |
} |
| 3818 |
break; |
| 3819 |
case 'Y': |
| 3820 |
if (memEQ(name, "DB_PRIORITY_LOW", 15)) { |
| 3821 |
/* ^ */ |
| 3822 |
#if (DB_VERSION_MAJOR > 4) || \ |
| 3823 |
(DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR > 1) || \ |
| 3824 |
(DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR == 1 && \ |
| 3825 |
DB_VERSION_PATCH >= 24) |
| 3826 |
*iv_return = DB_PRIORITY_LOW; |
| 3827 |
return PERL_constant_ISIV; |
| 3828 |
#else |
| 3829 |
return PERL_constant_NOTDEF; |
| 3830 |
#endif |
| 3831 |
} |
| 3832 |
break; |
| 3833 |
case '_': |
| 3834 |
if (memEQ(name, "DB_CONSUME_WAIT", 15)) { |
| 3835 |
/* ^ */ |
| 3836 |
#ifdef DB_CONSUME_WAIT |
| 3837 |
*iv_return = DB_CONSUME_WAIT; |
| 3838 |
return PERL_constant_ISIV; |
| 3839 |
#else |
| 3840 |
return PERL_constant_NOTDEF; |
| 3841 |
#endif |
| 3842 |
} |
| 3843 |
if (memEQ(name, "DB_OPFLAGS_MASK", 15)) { |
| 3844 |
/* ^ */ |
| 3845 |
#ifdef DB_OPFLAGS_MASK |
| 3846 |
*iv_return = DB_OPFLAGS_MASK; |
| 3847 |
return PERL_constant_ISIV; |
| 3848 |
#else |
| 3849 |
return PERL_constant_NOTDEF; |
| 3850 |
#endif |
| 3851 |
} |
| 3852 |
if (memEQ(name, "DB_ST_OVFL_LEAF", 15)) { |
| 3853 |
/* ^ */ |
| 3854 |
#ifdef DB_ST_OVFL_LEAF |
| 3855 |
*iv_return = DB_ST_OVFL_LEAF; |
| 3856 |
return PERL_constant_ISIV; |
| 3857 |
#else |
| 3858 |
return PERL_constant_NOTDEF; |
| 3859 |
#endif |
| 3860 |
} |
| 3861 |
if (memEQ(name, "DB_TXN_LOG_MASK", 15)) { |
| 3862 |
/* ^ */ |
| 3863 |
#ifdef DB_TXN_LOG_MASK |
| 3864 |
*iv_return = DB_TXN_LOG_MASK; |
| 3865 |
return PERL_constant_ISIV; |
| 3866 |
#else |
| 3867 |
return PERL_constant_NOTDEF; |
| 3868 |
#endif |
| 3869 |
} |
| 3870 |
if (memEQ(name, "DB_TXN_LOG_REDO", 15)) { |
| 3871 |
/* ^ */ |
| 3872 |
#ifdef DB_TXN_LOG_REDO |
| 3873 |
*iv_return = DB_TXN_LOG_REDO; |
| 3874 |
return PERL_constant_ISIV; |
| 3875 |
#else |
| 3876 |
return PERL_constant_NOTDEF; |
| 3877 |
#endif |
| 3878 |
} |
| 3879 |
if (memEQ(name, "DB_TXN_LOG_UNDO", 15)) { |
| 3880 |
/* ^ */ |
| 3881 |
#ifdef DB_TXN_LOG_UNDO |
| 3882 |
*iv_return = DB_TXN_LOG_UNDO; |
| 3883 |
return PERL_constant_ISIV; |
| 3884 |
#else |
| 3885 |
return PERL_constant_NOTDEF; |
| 3886 |
#endif |
| 3887 |
} |
| 3888 |
break; |
| 3889 |
} |
| 3890 |
return PERL_constant_NOTFOUND; |
| 3891 |
} |
| 3892 |
|
| 3893 |
static int |
| 3894 |
constant_16 (pTHX_ const char *name, IV *iv_return) { |
| 3895 |
/* When generated this function returned values for the list of names given |
| 3896 |
here. However, subsequent manual editing may have added or removed some. |
| 3897 |
DB_BACKUP_UPDATE DB_CACHED_COUNTS DB_COMPACT_FLAGS DB_DATABASE_LOCK |
| 3898 |
DB_EID_BROADCAST DB_ENV_CDB_ALLDB DB_ENV_DIRECT_DB DB_ENV_DSYNC_LOG |
| 3899 |
DB_ENV_HOTBACKUP DB_ENV_NOLOCKING DB_ENV_OVERWRITE DB_ENV_RPCCLIENT |
| 3900 |
DB_FCNTL_LOCKING DB_FOREIGN_ABORT DB_FREELIST_ONLY DB_GROUP_CREATOR |
| 3901 |
DB_IMMUTABLE_KEY DB_JAVA_CALLBACK DB_LOCK_CONFLICT DB_LOCK_DEADLOCK |
| 3902 |
DB_LOCK_MAXLOCKS DB_LOCK_MAXWRITE DB_LOCK_MINLOCKS DB_LOCK_MINWRITE |
| 3903 |
DB_LOCK_NOTEXIST DB_LOCK_PUT_READ DB_LOCK_YOUNGEST DB_LOGC_BUF_SIZE |
| 3904 |
DB_LOG_IN_MEMORY DB_MPOOL_DISCARD DB_MPOOL_PRIVATE DB_NOSERVER_HOME |
| 3905 |
DB_NO_CHECKPOINT DB_OVERWRITE_DUP DB_PAGE_NOTFOUND DB_PRIORITY_HIGH |
| 3906 |
DB_RECOVER_FATAL DB_REPFLAGS_MASK DB_REPMGR_ISPEER DB_REP_CONF_BULK |
| 3907 |
DB_REP_DUPMASTER DB_REP_NEWMASTER DB_REP_PERMANENT DB_REP_REREQUEST |
| 3908 |
DB_SA_UNKNOWNKEY DB_SECONDARY_BAD DB_SEQ_RANGE_SET DB_TEST_POSTOPEN |
| 3909 |
DB_TEST_POSTSYNC DB_TXN_LOCK_MASK DB_TXN_OPENFILES DB_VERB_CHKPOINT |
| 3910 |
DB_VERB_DEADLOCK DB_VERB_RECOVERY DB_VERB_REGISTER DB_VERB_REP_MISC |
| 3911 |
DB_VERB_REP_MSGS DB_VERB_REP_SYNC DB_VERB_REP_TEST DB_VERB_WAITSFOR |
| 3912 |
DB_VERSION_MAJOR DB_VERSION_MINOR DB_VERSION_PATCH DB_VRFY_FLAGMASK */ |
| 3913 |
/* Offset 10 gives the best switch position. */ |
| 3914 |
switch (name[10]) { |
| 3915 |
case 'A': |
| 3916 |
if (memEQ(name, "DB_EID_BROADCAST", 16)) { |
| 3917 |
/* ^ */ |
| 3918 |
#ifdef DB_EID_BROADCAST |
| 3919 |
*iv_return = DB_EID_BROADCAST; |
| 3920 |
return PERL_constant_ISIV; |
| 3921 |
#else |
| 3922 |
return PERL_constant_NOTDEF; |
| 3923 |
#endif |
| 3924 |
} |
| 3925 |
if (memEQ(name, "DB_LOCK_DEADLOCK", 16)) { |
| 3926 |
/* ^ */ |
| 3927 |
#ifdef DB_LOCK_DEADLOCK |
| 3928 |
*iv_return = DB_LOCK_DEADLOCK; |
| 3929 |
return PERL_constant_ISIV; |
| 3930 |
#else |
| 3931 |
return PERL_constant_NOTDEF; |
| 3932 |
#endif |
| 3933 |
} |
| 3934 |
if (memEQ(name, "DB_VERB_DEADLOCK", 16)) { |
| 3935 |
/* ^ */ |
| 3936 |
#ifdef DB_VERB_DEADLOCK |
| 3937 |
*iv_return = DB_VERB_DEADLOCK; |
| 3938 |
return PERL_constant_ISIV; |
| 3939 |
#else |
| 3940 |
return PERL_constant_NOTDEF; |
| 3941 |
#endif |
| 3942 |
} |
| 3943 |
if (memEQ(name, "DB_VRFY_FLAGMASK", 16)) { |
| 3944 |
/* ^ */ |
| 3945 |
#ifdef DB_VRFY_FLAGMASK |
| 3946 |
*iv_return = DB_VRFY_FLAGMASK; |
| 3947 |
return PERL_constant_ISIV; |
| 3948 |
#else |
| 3949 |
return PERL_constant_NOTDEF; |
| 3950 |
#endif |
| 3951 |
} |
| 3952 |
break; |
| 3953 |
case 'B': |
| 3954 |
if (memEQ(name, "DB_ENV_HOTBACKUP", 16)) { |
| 3955 |
/* ^ */ |
| 3956 |
#ifdef DB_ENV_HOTBACKUP |
| 3957 |
*iv_return = DB_ENV_HOTBACKUP; |
| 3958 |
return PERL_constant_ISIV; |
| 3959 |
#else |
| 3960 |
return PERL_constant_NOTDEF; |
| 3961 |
#endif |
| 3962 |
} |
| 3963 |
break; |
| 3964 |
case 'C': |
| 3965 |
if (memEQ(name, "DB_CACHED_COUNTS", 16)) { |
| 3966 |
/* ^ */ |
| 3967 |
#ifdef DB_CACHED_COUNTS |
| 3968 |
*iv_return = DB_CACHED_COUNTS; |
| 3969 |
return PERL_constant_ISIV; |
| 3970 |
#else |
| 3971 |
return PERL_constant_NOTDEF; |
| 3972 |
#endif |
| 3973 |
} |
| 3974 |
if (memEQ(name, "DB_ENV_RPCCLIENT", 16)) { |
| 3975 |
/* ^ */ |
| 3976 |
#ifdef DB_ENV_RPCCLIENT |
| 3977 |
*iv_return = DB_ENV_RPCCLIENT; |
| 3978 |
return PERL_constant_ISIV; |
| 3979 |
#else |
| 3980 |
return PERL_constant_NOTDEF; |
| 3981 |
#endif |
| 3982 |
} |
| 3983 |
if (memEQ(name, "DB_VERB_RECOVERY", 16)) { |
| 3984 |
/* ^ */ |
| 3985 |
#ifdef DB_VERB_RECOVERY |
| 3986 |
*iv_return = DB_VERB_RECOVERY; |
| 3987 |
return PERL_constant_ISIV; |
| 3988 |
#else |
| 3989 |
return PERL_constant_NOTDEF; |
| 3990 |
#endif |
| 3991 |
} |
| 3992 |
break; |
| 3993 |
case 'E': |
| 3994 |
if (memEQ(name, "DB_DATABASE_LOCK", 16)) { |
| 3995 |
/* ^ */ |
| 3996 |
#ifdef DB_DATABASE_LOCK |
| 3997 |
*iv_return = DB_DATABASE_LOCK; |
| 3998 |
return PERL_constant_ISIV; |
| 3999 |
#else |
| 4000 |
return PERL_constant_NOTDEF; |
| 4001 |
#endif |
| 4002 |
} |
| 4003 |
if (memEQ(name, "DB_ENV_DIRECT_DB", 16)) { |
| 4004 |
/* ^ */ |
| 4005 |
#ifdef DB_ENV_DIRECT_DB |
| 4006 |
*iv_return = DB_ENV_DIRECT_DB; |
| 4007 |
return PERL_constant_ISIV; |
| 4008 |
#else |
| 4009 |
return PERL_constant_NOTDEF; |
| 4010 |
#endif |
| 4011 |
} |
| 4012 |
if (memEQ(name, "DB_REP_REREQUEST", 16)) { |
| 4013 |
/* ^ */ |
| 4014 |
#ifdef DB_REP_REREQUEST |
| 4015 |
*iv_return = DB_REP_REREQUEST; |
| 4016 |
return PERL_constant_ISIV; |
| 4017 |
#else |
| 4018 |
return PERL_constant_NOTDEF; |
| 4019 |
#endif |
| 4020 |
} |
| 4021 |
break; |
| 4022 |
case 'F': |
| 4023 |
if (memEQ(name, "DB_LOGC_BUF_SIZE", 16)) { |
| 4024 |
/* ^ */ |
| 4025 |
#ifdef DB_LOGC_BUF_SIZE |
| 4026 |
*iv_return = DB_LOGC_BUF_SIZE; |
| 4027 |
return PERL_constant_ISIV; |
| 4028 |
#else |
| 4029 |
return PERL_constant_NOTDEF; |
| 4030 |
#endif |
| 4031 |
} |
| 4032 |
if (memEQ(name, "DB_REP_CONF_BULK", 16)) { |
| 4033 |
/* ^ */ |
| 4034 |
#ifdef DB_REP_CONF_BULK |
| 4035 |
*iv_return = DB_REP_CONF_BULK; |
| 4036 |
return PERL_constant_ISIV; |
| 4037 |
#else |
| 4038 |
return PERL_constant_NOTDEF; |
| 4039 |
#endif |
| 4040 |
} |
| 4041 |
break; |
| 4042 |
case 'G': |
| 4043 |
if (memEQ(name, "DB_SEQ_RANGE_SET", 16)) { |
| 4044 |
/* ^ */ |
| 4045 |
#ifdef DB_SEQ_RANGE_SET |
| 4046 |
*iv_return = DB_SEQ_RANGE_SET; |
| 4047 |
return PERL_constant_ISIV; |
| 4048 |
#else |
| 4049 |
return PERL_constant_NOTDEF; |
| 4050 |
#endif |
| 4051 |
} |
| 4052 |
if (memEQ(name, "DB_VERB_REGISTER", 16)) { |
| 4053 |
/* ^ */ |
| 4054 |
#ifdef DB_VERB_REGISTER |
| 4055 |
*iv_return = DB_VERB_REGISTER; |
| 4056 |
return PERL_constant_ISIV; |
| 4057 |
#else |
| 4058 |
return PERL_constant_NOTDEF; |
| 4059 |
#endif |
| 4060 |
} |
| 4061 |
break; |
| 4062 |
case 'I': |
| 4063 |
if (memEQ(name, "DB_MPOOL_DISCARD", 16)) { |
| 4064 |
/* ^ */ |
| 4065 |
#ifdef DB_MPOOL_DISCARD |
| 4066 |
*iv_return = DB_MPOOL_DISCARD; |
| 4067 |
return PERL_constant_ISIV; |
| 4068 |
#else |
| 4069 |
return PERL_constant_NOTDEF; |
| 4070 |
#endif |
| 4071 |
} |
| 4072 |
if (memEQ(name, "DB_REPMGR_ISPEER", 16)) { |
| 4073 |
/* ^ */ |
| 4074 |
#ifdef DB_REPMGR_ISPEER |
| 4075 |
*iv_return = DB_REPMGR_ISPEER; |
| 4076 |
return PERL_constant_ISIV; |
| 4077 |
#else |
| 4078 |
return PERL_constant_NOTDEF; |
| 4079 |
#endif |
| 4080 |
} |
| 4081 |
if (memEQ(name, "DB_VERB_WAITSFOR", 16)) { |
| 4082 |
/* ^ */ |
| 4083 |
#ifdef DB_VERB_WAITSFOR |
| 4084 |
*iv_return = DB_VERB_WAITSFOR; |
| 4085 |
return PERL_constant_ISIV; |
| 4086 |
#else |
| 4087 |
return PERL_constant_NOTDEF; |
| 4088 |
#endif |
| 4089 |
} |
| 4090 |
break; |
| 4091 |
case 'K': |
| 4092 |
if (memEQ(name, "DB_NO_CHECKPOINT", 16)) { |
| 4093 |
/* ^ */ |
| 4094 |
#ifdef DB_NO_CHECKPOINT |
| 4095 |
*iv_return = DB_NO_CHECKPOINT; |
| 4096 |
return PERL_constant_ISIV; |
| 4097 |
#else |
| 4098 |
return PERL_constant_NOTDEF; |
| 4099 |
#endif |
| 4100 |
} |
| 4101 |
if (memEQ(name, "DB_TXN_LOCK_MASK", 16)) { |
| 4102 |
/* ^ */ |
| 4103 |
#ifdef DB_TXN_LOCK_MASK |
| 4104 |
*iv_return = DB_TXN_LOCK_MASK; |
| 4105 |
return PERL_constant_ISIV; |
| 4106 |
#else |
| 4107 |
return PERL_constant_NOTDEF; |
| 4108 |
#endif |
| 4109 |
} |
| 4110 |
if (memEQ(name, "DB_VERB_CHKPOINT", 16)) { |
| 4111 |
/* ^ */ |
| 4112 |
#ifdef DB_VERB_CHKPOINT |
| 4113 |
*iv_return = DB_VERB_CHKPOINT; |
| 4114 |
return PERL_constant_ISIV; |
| 4115 |
#else |
| 4116 |
return PERL_constant_NOTDEF; |
| 4117 |
#endif |
| 4118 |
} |
| 4119 |
break; |
| 4120 |
case 'L': |
| 4121 |
if (memEQ(name, "DB_IMMUTABLE_KEY", 16)) { |
| 4122 |
/* ^ */ |
| 4123 |
#ifdef DB_IMMUTABLE_KEY |
| 4124 |
*iv_return = DB_IMMUTABLE_KEY; |
| 4125 |
return PERL_constant_ISIV; |
| 4126 |
#else |
| 4127 |
return PERL_constant_NOTDEF; |
| 4128 |
#endif |
| 4129 |
} |
| 4130 |
if (memEQ(name, "DB_JAVA_CALLBACK", 16)) { |
| 4131 |
/* ^ */ |
| 4132 |
#ifdef DB_JAVA_CALLBACK |
| 4133 |
*iv_return = DB_JAVA_CALLBACK; |
| 4134 |
return PERL_constant_ISIV; |
| 4135 |
#else |
| 4136 |
return PERL_constant_NOTDEF; |
| 4137 |
#endif |
| 4138 |
} |
| 4139 |
break; |
| 4140 |
case 'M': |
| 4141 |
if (memEQ(name, "DB_LOG_IN_MEMORY", 16)) { |
| 4142 |
/* ^ */ |
| 4143 |
#ifdef DB_LOG_IN_MEMORY |
| 4144 |
*iv_return = DB_LOG_IN_MEMORY; |
| 4145 |
return PERL_constant_ISIV; |
| 4146 |
#else |
| 4147 |
return PERL_constant_NOTDEF; |
| 4148 |
#endif |
| 4149 |
} |
| 4150 |
if (memEQ(name, "DB_REP_DUPMASTER", 16)) { |
| 4151 |
/* ^ */ |
| 4152 |
#ifdef DB_REP_DUPMASTER |
| 4153 |
*iv_return = DB_REP_DUPMASTER; |
| 4154 |
return PERL_constant_ISIV; |
| 4155 |
#else |
| 4156 |
return PERL_constant_NOTDEF; |
| 4157 |
#endif |
| 4158 |
} |
| 4159 |
if (memEQ(name, "DB_REP_NEWMASTER", 16)) { |
| 4160 |
/* ^ */ |
| 4161 |
#ifdef DB_REP_NEWMASTER |
| 4162 |
*iv_return = DB_REP_NEWMASTER; |
| 4163 |
return PERL_constant_ISIV; |
| 4164 |
#else |
| 4165 |
return PERL_constant_NOTDEF; |
| 4166 |
#endif |
| 4167 |
} |
| 4168 |
if (memEQ(name, "DB_REP_PERMANENT", 16)) { |
| 4169 |
/* ^ */ |
| 4170 |
#ifdef DB_REP_PERMANENT |
| 4171 |
*iv_return = DB_REP_PERMANENT; |
| 4172 |
return PERL_constant_ISIV; |
| 4173 |
#else |
| 4174 |
return PERL_constant_NOTDEF; |
| 4175 |
#endif |
| 4176 |
} |
| 4177 |
break; |
| 4178 |
case 'N': |
| 4179 |
if (memEQ(name, "DB_ENV_DSYNC_LOG", 16)) { |
| 4180 |
/* ^ */ |
| 4181 |
#ifdef DB_ENV_DSYNC_LOG |
| 4182 |
*iv_return = DB_ENV_DSYNC_LOG; |
| 4183 |
return PERL_constant_ISIV; |
| 4184 |
#else |
| 4185 |
return PERL_constant_NOTDEF; |
| 4186 |
#endif |
| 4187 |
} |
| 4188 |
if (memEQ(name, "DB_LOCK_CONFLICT", 16)) { |
| 4189 |
/* ^ */ |
| 4190 |
#ifdef DB_LOCK_CONFLICT |
| 4191 |
*iv_return = DB_LOCK_CONFLICT; |
| 4192 |
return PERL_constant_ISIV; |
| 4193 |
#else |
| 4194 |
return PERL_constant_NOTDEF; |
| 4195 |
#endif |
| 4196 |
} |
| 4197 |
if (memEQ(name, "DB_LOCK_MINLOCKS", 16)) { |
| 4198 |
/* ^ */ |
| 4199 |
#ifdef DB_LOCK_MINLOCKS |
| 4200 |
*iv_return = DB_LOCK_MINLOCKS; |
| 4201 |
return PERL_constant_ISIV; |
| 4202 |
#else |
| 4203 |
return PERL_constant_NOTDEF; |
| 4204 |
#endif |
| 4205 |
} |
| 4206 |
if (memEQ(name, "DB_LOCK_MINWRITE", 16)) { |
| 4207 |
/* ^ */ |
| 4208 |
#ifdef DB_LOCK_MINWRITE |
| 4209 |
*iv_return = DB_LOCK_MINWRITE; |
| 4210 |
return PERL_constant_ISIV; |
| 4211 |
#else |
| 4212 |
return PERL_constant_NOTDEF; |
| 4213 |
#endif |
| 4214 |
} |
| 4215 |
if (memEQ(name, "DB_TXN_OPENFILES", 16)) { |
| 4216 |
/* ^ */ |
| 4217 |
#if (DB_VERSION_MAJOR > 3) || \ |
| 4218 |
(DB_VERSION_MAJOR == 3 && DB_VERSION_MINOR > 1) || \ |
| 4219 |
(DB_VERSION_MAJOR == 3 && DB_VERSION_MINOR == 1 && \ |
| 4220 |
DB_VERSION_PATCH >= 14) |
| 4221 |
*iv_return = DB_TXN_OPENFILES; |
| 4222 |
return PERL_constant_ISIV; |
| 4223 |
#else |
| 4224 |
return PERL_constant_NOTDEF; |
| 4225 |
#endif |
| 4226 |
} |
| 4227 |
break; |
| 4228 |
case 'O': |
| 4229 |
if (memEQ(name, "DB_ENV_NOLOCKING", 16)) { |
| 4230 |
/* ^ */ |
| 4231 |
#ifdef DB_ENV_NOLOCKING |
| 4232 |
*iv_return = DB_ENV_NOLOCKING; |
| 4233 |
return PERL_constant_ISIV; |
| 4234 |
#else |
| 4235 |
return PERL_constant_NOTDEF; |
| 4236 |
#endif |
| 4237 |
} |
| 4238 |
if (memEQ(name, "DB_FCNTL_LOCKING", 16)) { |
| 4239 |
/* ^ */ |
| 4240 |
#ifdef DB_FCNTL_LOCKING |
| 4241 |
*iv_return = DB_FCNTL_LOCKING; |
| 4242 |
return PERL_constant_ISIV; |
| 4243 |
#else |
| 4244 |
return PERL_constant_NOTDEF; |
| 4245 |
#endif |
| 4246 |
} |
| 4247 |
if (memEQ(name, "DB_SA_UNKNOWNKEY", 16)) { |
| 4248 |
/* ^ */ |
| 4249 |
#ifdef DB_SA_UNKNOWNKEY |
| 4250 |
*iv_return = DB_SA_UNKNOWNKEY; |
| 4251 |
return PERL_constant_ISIV; |
| 4252 |
#else |
| 4253 |
return PERL_constant_NOTDEF; |
| 4254 |
#endif |
| 4255 |
} |
| 4256 |
break; |
| 4257 |
case 'P': |
| 4258 |
if (memEQ(name, "DB_VERB_REP_MISC", 16)) { |
| 4259 |
/* ^ */ |
| 4260 |
#ifdef DB_VERB_REP_MISC |
| 4261 |
*iv_return = DB_VERB_REP_MISC; |
| 4262 |
return PERL_constant_ISIV; |
| 4263 |
#else |
| 4264 |
return PERL_constant_NOTDEF; |
| 4265 |
#endif |
| 4266 |
} |
| 4267 |
if (memEQ(name, "DB_VERB_REP_MSGS", 16)) { |
| 4268 |
/* ^ */ |
| 4269 |
#ifdef DB_VERB_REP_MSGS |
| 4270 |
*iv_return = DB_VERB_REP_MSGS; |
| 4271 |
return PERL_constant_ISIV; |
| 4272 |
#else |
| 4273 |
return PERL_constant_NOTDEF; |
| 4274 |
#endif |
| 4275 |
} |
| 4276 |
if (memEQ(name, "DB_VERB_REP_SYNC", 16)) { |
| 4277 |
/* ^ */ |
| 4278 |
#ifdef DB_VERB_REP_SYNC |
| 4279 |
*iv_return = DB_VERB_REP_SYNC; |
| 4280 |
return PERL_constant_ISIV; |
| 4281 |
#else |
| 4282 |
return PERL_constant_NOTDEF; |
| 4283 |
#endif |
| 4284 |
} |
| 4285 |
if (memEQ(name, "DB_VERB_REP_TEST", 16)) { |
| 4286 |
/* ^ */ |
| 4287 |
#ifdef DB_VERB_REP_TEST |
| 4288 |
*iv_return = DB_VERB_REP_TEST; |
| 4289 |
return PERL_constant_ISIV; |
| 4290 |
#else |
| 4291 |
return PERL_constant_NOTDEF; |
| 4292 |
#endif |
| 4293 |
} |
| 4294 |
break; |
| 4295 |
case 'R': |
| 4296 |
if (memEQ(name, "DB_ENV_OVERWRITE", 16)) { |
| 4297 |
/* ^ */ |
| 4298 |
#ifdef DB_ENV_OVERWRITE |
| 4299 |
*iv_return = DB_ENV_OVERWRITE; |
| 4300 |
return PERL_constant_ISIV; |
| 4301 |
#else |
| 4302 |
return PERL_constant_NOTDEF; |
| 4303 |
#endif |
| 4304 |
} |
| 4305 |
if (memEQ(name, "DB_GROUP_CREATOR", 16)) { |
| 4306 |
/* ^ */ |
| 4307 |
#ifdef DB_GROUP_CREATOR |
| 4308 |
*iv_return = DB_GROUP_CREATOR; |
| 4309 |
return PERL_constant_ISIV; |
| 4310 |
#else |
| 4311 |
return PERL_constant_NOTDEF; |
| 4312 |
#endif |
| 4313 |
} |
| 4314 |
if (memEQ(name, "DB_MPOOL_PRIVATE", 16)) { |
| 4315 |
/* ^ */ |
| 4316 |
#ifdef DB_MPOOL_PRIVATE |
| 4317 |
*iv_return = DB_MPOOL_PRIVATE; |
| 4318 |
return PERL_constant_ISIV; |
| 4319 |
#else |
| 4320 |
return PERL_constant_NOTDEF; |
| 4321 |
#endif |
| 4322 |
} |
| 4323 |
if (memEQ(name, "DB_NOSERVER_HOME", 16)) { |
| 4324 |
/* ^ */ |
| 4325 |
#ifdef DB_NOSERVER_HOME |
| 4326 |
*iv_return = DB_NOSERVER_HOME; |
| 4327 |
return PERL_constant_ISIV; |
| 4328 |
#else |
| 4329 |
return PERL_constant_NOTDEF; |
| 4330 |
#endif |
| 4331 |
} |
| 4332 |
if (memEQ(name, "DB_SECONDARY_BAD", 16)) { |
| 4333 |
/* ^ */ |
| 4334 |
#ifdef DB_SECONDARY_BAD |
| 4335 |
*iv_return = DB_SECONDARY_BAD; |
| 4336 |
return PERL_constant_ISIV; |
| 4337 |
#else |
| 4338 |
return PERL_constant_NOTDEF; |
| 4339 |
#endif |
| 4340 |
} |
| 4341 |
break; |
| 4342 |
case 'S': |
| 4343 |
if (memEQ(name, "DB_REPFLAGS_MASK", 16)) { |
| 4344 |
/* ^ */ |
| 4345 |
#ifdef DB_REPFLAGS_MASK |
| 4346 |
*iv_return = DB_REPFLAGS_MASK; |
| 4347 |
return PERL_constant_ISIV; |
| 4348 |
#else |
| 4349 |
return PERL_constant_NOTDEF; |
| 4350 |
#endif |
| 4351 |
} |
| 4352 |
if (memEQ(name, "DB_TEST_POSTOPEN", 16)) { |
| 4353 |
/* ^ */ |
| 4354 |
#ifdef DB_TEST_POSTOPEN |
| 4355 |
*iv_return = DB_TEST_POSTOPEN; |
| 4356 |
return PERL_constant_ISIV; |
| 4357 |
#else |
| 4358 |
return PERL_constant_NOTDEF; |
| 4359 |
#endif |
| 4360 |
} |
| 4361 |
if (memEQ(name, "DB_TEST_POSTSYNC", 16)) { |
| 4362 |
/* ^ */ |
| 4363 |
#ifdef DB_TEST_POSTSYNC |
| 4364 |
*iv_return = DB_TEST_POSTSYNC; |
| 4365 |
return PERL_constant_ISIV; |
| 4366 |
#else |
| 4367 |
return PERL_constant_NOTDEF; |
| 4368 |
#endif |
| 4369 |
} |
| 4370 |
break; |
| 4371 |
case 'T': |
| 4372 |
if (memEQ(name, "DB_FREELIST_ONLY", 16)) { |
| 4373 |
/* ^ */ |
| 4374 |
#ifdef DB_FREELIST_ONLY |
| 4375 |
*iv_return = DB_FREELIST_ONLY; |
| 4376 |
return PERL_constant_ISIV; |
| 4377 |
#else |
| 4378 |
return PERL_constant_NOTDEF; |
| 4379 |
#endif |
| 4380 |
} |
| 4381 |
if (memEQ(name, "DB_LOCK_NOTEXIST", 16)) { |
| 4382 |
/* ^ */ |
| 4383 |
#ifdef DB_LOCK_NOTEXIST |
| 4384 |
*iv_return = DB_LOCK_NOTEXIST; |
| 4385 |
return PERL_constant_ISIV; |
| 4386 |
#else |
| 4387 |
return PERL_constant_NOTDEF; |
| 4388 |
#endif |
| 4389 |
} |
| 4390 |
if (memEQ(name, "DB_LOCK_PUT_READ", 16)) { |
| 4391 |
/* ^ */ |
| 4392 |
#if (DB_VERSION_MAJOR > 4) || \ |
| 4393 |
(DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR > 0) || \ |
| 4394 |
(DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR == 0 && \ |
| 4395 |
DB_VERSION_PATCH >= 14) |
| 4396 |
*iv_return = DB_LOCK_PUT_READ; |
| 4397 |
return PERL_constant_ISIV; |
| 4398 |
#else |
| 4399 |
return PERL_constant_NOTDEF; |
| 4400 |
#endif |
| 4401 |
} |
| 4402 |
if (memEQ(name, "DB_OVERWRITE_DUP", 16)) { |
| 4403 |
/* ^ */ |
| 4404 |
#ifdef DB_OVERWRITE_DUP |
| 4405 |
*iv_return = DB_OVERWRITE_DUP; |
| 4406 |
return PERL_constant_ISIV; |
| 4407 |
#else |
| 4408 |
return PERL_constant_NOTDEF; |
| 4409 |
#endif |
| 4410 |
} |
| 4411 |
if (memEQ(name, "DB_PAGE_NOTFOUND", 16)) { |
| 4412 |
/* ^ */ |
| 4413 |
#ifdef DB_PAGE_NOTFOUND |
| 4414 |
*iv_return = DB_PAGE_NOTFOUND; |
| 4415 |
return PERL_constant_ISIV; |
| 4416 |
#else |
| 4417 |
return PERL_constant_NOTDEF; |
| 4418 |
#endif |
| 4419 |
} |
| 4420 |
break; |
| 4421 |
case 'U': |
| 4422 |
if (memEQ(name, "DB_BACKUP_UPDATE", 16)) { |
| 4423 |
/* ^ */ |
| 4424 |
#ifdef DB_BACKUP_UPDATE |
| 4425 |
*iv_return = DB_BACKUP_UPDATE; |
| 4426 |
return PERL_constant_ISIV; |
| 4427 |
#else |
| 4428 |
return PERL_constant_NOTDEF; |
| 4429 |
#endif |
| 4430 |
} |
| 4431 |
if (memEQ(name, "DB_LOCK_YOUNGEST", 16)) { |
| 4432 |
/* ^ */ |
| 4433 |
#ifdef DB_LOCK_YOUNGEST |
| 4434 |
*iv_return = DB_LOCK_YOUNGEST; |
| 4435 |
return PERL_constant_ISIV; |
| 4436 |
#else |
| 4437 |
return PERL_constant_NOTDEF; |
| 4438 |
#endif |
| 4439 |
} |
| 4440 |
break; |
| 4441 |
case 'X': |
| 4442 |
if (memEQ(name, "DB_LOCK_MAXLOCKS", 16)) { |
| 4443 |
/* ^ */ |
| 4444 |
#ifdef DB_LOCK_MAXLOCKS |
| 4445 |
*iv_return = DB_LOCK_MAXLOCKS; |
| 4446 |
return PERL_constant_ISIV; |
| 4447 |
#else |
| 4448 |
return PERL_constant_NOTDEF; |
| 4449 |
#endif |
| 4450 |
} |
| 4451 |
if (memEQ(name, "DB_LOCK_MAXWRITE", 16)) { |
| 4452 |
/* ^ */ |
| 4453 |
#ifdef DB_LOCK_MAXWRITE |
| 4454 |
*iv_return = DB_LOCK_MAXWRITE; |
| 4455 |
return PERL_constant_ISIV; |
| 4456 |
#else |
| 4457 |
return PERL_constant_NOTDEF; |
| 4458 |
#endif |
| 4459 |
} |
| 4460 |
break; |
| 4461 |
case 'Y': |
| 4462 |
if (memEQ(name, "DB_PRIORITY_HIGH", 16)) { |
| 4463 |
/* ^ */ |
| 4464 |
#if (DB_VERSION_MAJOR > 4) || \ |
| 4465 |
(DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR > 1) || \ |
| 4466 |
(DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR == 1 && \ |
| 4467 |
DB_VERSION_PATCH >= 24) |
| 4468 |
*iv_return = DB_PRIORITY_HIGH; |
| 4469 |
return PERL_constant_ISIV; |
| 4470 |
#else |
| 4471 |
return PERL_constant_NOTDEF; |
| 4472 |
#endif |
| 4473 |
} |
| 4474 |
break; |
| 4475 |
case '_': |
| 4476 |
if (memEQ(name, "DB_COMPACT_FLAGS", 16)) { |
| 4477 |
/* ^ */ |
| 4478 |
#ifdef DB_COMPACT_FLAGS |
| 4479 |
*iv_return = DB_COMPACT_FLAGS; |
| 4480 |
return PERL_constant_ISIV; |
| 4481 |
#else |
| 4482 |
return PERL_constant_NOTDEF; |
| 4483 |
#endif |
| 4484 |
} |
| 4485 |
if (memEQ(name, "DB_ENV_CDB_ALLDB", 16)) { |
| 4486 |
/* ^ */ |
| 4487 |
#ifdef DB_ENV_CDB_ALLDB |
| 4488 |
*iv_return = DB_ENV_CDB_ALLDB; |
| 4489 |
return PERL_constant_ISIV; |
| 4490 |
#else |
| 4491 |
return PERL_constant_NOTDEF; |
| 4492 |
#endif |
| 4493 |
} |
| 4494 |
if (memEQ(name, "DB_FOREIGN_ABORT", 16)) { |
| 4495 |
/* ^ */ |
| 4496 |
#ifdef DB_FOREIGN_ABORT |
| 4497 |
*iv_return = DB_FOREIGN_ABORT; |
| 4498 |
return PERL_constant_ISIV; |
| 4499 |
#else |
| 4500 |
return PERL_constant_NOTDEF; |
| 4501 |
#endif |
| 4502 |
} |
| 4503 |
if (memEQ(name, "DB_RECOVER_FATAL", 16)) { |
| 4504 |
/* ^ */ |
| 4505 |
#ifdef DB_RECOVER_FATAL |
| 4506 |
*iv_return = DB_RECOVER_FATAL; |
| 4507 |
return PERL_constant_ISIV; |
| 4508 |
#else |
| 4509 |
return PERL_constant_NOTDEF; |
| 4510 |
#endif |
| 4511 |
} |
| 4512 |
if (memEQ(name, "DB_VERSION_MAJOR", 16)) { |
| 4513 |
/* ^ */ |
| 4514 |
#ifdef DB_VERSION_MAJOR |
| 4515 |
*iv_return = DB_VERSION_MAJOR; |
| 4516 |
return PERL_constant_ISIV; |
| 4517 |
#else |
| 4518 |
return PERL_constant_NOTDEF; |
| 4519 |
#endif |
| 4520 |
} |
| 4521 |
if (memEQ(name, "DB_VERSION_MINOR", 16)) { |
| 4522 |
/* ^ */ |
| 4523 |
#ifdef DB_VERSION_MINOR |
| 4524 |
*iv_return = DB_VERSION_MINOR; |
| 4525 |
return PERL_constant_ISIV; |
| 4526 |
#else |
| 4527 |
return PERL_constant_NOTDEF; |
| 4528 |
#endif |
| 4529 |
} |
| 4530 |
if (memEQ(name, "DB_VERSION_PATCH", 16)) { |
| 4531 |
/* ^ */ |
| 4532 |
#ifdef DB_VERSION_PATCH |
| 4533 |
*iv_return = DB_VERSION_PATCH; |
| 4534 |
return PERL_constant_ISIV; |
| 4535 |
#else |
| 4536 |
return PERL_constant_NOTDEF; |
| 4537 |
#endif |
| 4538 |
} |
| 4539 |
break; |
| 4540 |
} |
| 4541 |
return PERL_constant_NOTFOUND; |
| 4542 |
} |
| 4543 |
|
| 4544 |
static int |
| 4545 |
constant_17 (pTHX_ const char *name, IV *iv_return, const char **pv_return) { |
| 4546 |
/* When generated this function returned values for the list of names given |
| 4547 |
here. However, subsequent manual editing may have added or removed some. |
| 4548 |
DB_BACKUP_NO_LOGS DB_ENV_DIRECT_LOG DB_ENV_REP_CLIENT DB_ENV_REP_MASTER |
| 4549 |
DB_ENV_STANDALONE DB_ENV_SYSTEM_MEM DB_ENV_TXN_NOSYNC DB_ENV_TXN_NOWAIT |
| 4550 |
DB_ENV_USER_ALLOC DB_GET_BOTH_RANGE DB_LOG_AUTOREMOVE DB_LOG_SILENT_ERR |
| 4551 |
DB_LOG_VERIFY_BAD DB_LOG_VERIFY_CAF DB_LOG_VERIFY_ERR DB_MEM_LOCKOBJECT |
| 4552 |
DB_NO_AUTO_COMMIT DB_READ_COMMITTED DB_REP_CONF_INMEM DB_REP_CONF_LEASE |
| 4553 |
DB_REP_PAGELOCKED DB_RPC_SERVERPROG DB_RPC_SERVERVERS DB_STAT_LOCK_CONF |
| 4554 |
DB_STAT_MEMP_HASH DB_STAT_SUBSYSTEM DB_TEST_ELECTINIT DB_TEST_ELECTSEND |
| 4555 |
DB_TEST_PRERENAME DB_TXN_LOG_VERIFY DB_TXN_POPENFILES DB_TXN_TOKEN_SIZE |
| 4556 |
DB_VERB_REP_ELECT DB_VERB_REP_LEASE DB_VERSION_FAMILY DB_VERSION_STRING */ |
| 4557 |
/* Offset 13 gives the best switch position. */ |
| 4558 |
switch (name[13]) { |
| 4559 |
case 'A': |
| 4560 |
if (memEQ(name, "DB_GET_BOTH_RANGE", 17)) { |
| 4561 |
/* ^ */ |
| 4562 |
#ifdef DB_GET_BOTH_RANGE |
| 4563 |
*iv_return = DB_GET_BOTH_RANGE; |
| 4564 |
return PERL_constant_ISIV; |
| 4565 |
#else |
| 4566 |
return PERL_constant_NOTDEF; |
| 4567 |
#endif |
| 4568 |
} |
| 4569 |
break; |
| 4570 |
case 'C': |
| 4571 |
if (memEQ(name, "DB_REP_PAGELOCKED", 17)) { |
| 4572 |
/* ^ */ |
| 4573 |
#ifdef DB_REP_PAGELOCKED |
| 4574 |
*iv_return = DB_REP_PAGELOCKED; |
| 4575 |
return PERL_constant_ISIV; |
| 4576 |
#else |
| 4577 |
return PERL_constant_NOTDEF; |
| 4578 |
#endif |
| 4579 |
} |
| 4580 |
if (memEQ(name, "DB_STAT_LOCK_CONF", 17)) { |
| 4581 |
/* ^ */ |
| 4582 |
#ifdef DB_STAT_LOCK_CONF |
| 4583 |
*iv_return = DB_STAT_LOCK_CONF; |
| 4584 |
return PERL_constant_ISIV; |
| 4585 |
#else |
| 4586 |
return PERL_constant_NOTDEF; |
| 4587 |
#endif |
| 4588 |
} |
| 4589 |
break; |
| 4590 |
case 'E': |
| 4591 |
if (memEQ(name, "DB_REP_CONF_LEASE", 17)) { |
| 4592 |
/* ^ */ |
| 4593 |
#ifdef DB_REP_CONF_LEASE |
| 4594 |
*iv_return = DB_REP_CONF_LEASE; |
| 4595 |
return PERL_constant_ISIV; |
| 4596 |
#else |
| 4597 |
return PERL_constant_NOTDEF; |
| 4598 |
#endif |
| 4599 |
} |
| 4600 |
if (memEQ(name, "DB_VERB_REP_LEASE", 17)) { |
| 4601 |
/* ^ */ |
| 4602 |
#ifdef DB_VERB_REP_LEASE |
| 4603 |
*iv_return = DB_VERB_REP_LEASE; |
| 4604 |
return PERL_constant_ISIV; |
| 4605 |
#else |
| 4606 |
return PERL_constant_NOTDEF; |
| 4607 |
#endif |
| 4608 |
} |
| 4609 |
break; |
| 4610 |
case 'H': |
| 4611 |
if (memEQ(name, "DB_STAT_MEMP_HASH", 17)) { |
| 4612 |
/* ^ */ |
| 4613 |
#ifdef DB_STAT_MEMP_HASH |
| 4614 |
*iv_return = DB_STAT_MEMP_HASH; |
| 4615 |
return PERL_constant_ISIV; |
| 4616 |
#else |
| 4617 |
return PERL_constant_NOTDEF; |
| 4618 |
#endif |
| 4619 |
} |
| 4620 |
break; |
| 4621 |
case 'I': |
| 4622 |
if (memEQ(name, "DB_ENV_REP_CLIENT", 17)) { |
| 4623 |
/* ^ */ |
| 4624 |
#ifdef DB_ENV_REP_CLIENT |
| 4625 |
*iv_return = DB_ENV_REP_CLIENT; |
| 4626 |
return PERL_constant_ISIV; |
| 4627 |
#else |
| 4628 |
return PERL_constant_NOTDEF; |
| 4629 |
#endif |
| 4630 |
} |
| 4631 |
if (memEQ(name, "DB_TEST_ELECTINIT", 17)) { |
| 4632 |
/* ^ */ |
| 4633 |
#ifdef DB_TEST_ELECTINIT |
| 4634 |
*iv_return = DB_TEST_ELECTINIT; |
| 4635 |
return PERL_constant_ISIV; |
| 4636 |
#else |
| 4637 |
return PERL_constant_NOTDEF; |
| 4638 |
#endif |
| 4639 |
} |
| 4640 |
if (memEQ(name, "DB_TXN_POPENFILES", 17)) { |
| 4641 |
/* ^ */ |
| 4642 |
#if (DB_VERSION_MAJOR > 4) || \ |
| 4643 |
(DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR > 0) || \ |
| 4644 |
(DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR == 0 && \ |
| 4645 |
DB_VERSION_PATCH >= 14) |
| 4646 |
*iv_return = DB_TXN_POPENFILES; |
| 4647 |
return PERL_constant_ISIV; |
| 4648 |
#else |
| 4649 |
return PERL_constant_NOTDEF; |
| 4650 |
#endif |
| 4651 |
} |
| 4652 |
break; |
| 4653 |
case 'J': |
| 4654 |
if (memEQ(name, "DB_MEM_LOCKOBJECT", 17)) { |
| 4655 |
/* ^ */ |
| 4656 |
#if (DB_VERSION_MAJOR > 5) || \ |
| 4657 |
(DB_VERSION_MAJOR == 5 && DB_VERSION_MINOR > 2) || \ |
| 4658 |
(DB_VERSION_MAJOR == 5 && DB_VERSION_MINOR == 2 && \ |
| 4659 |
DB_VERSION_PATCH >= 14) |
| 4660 |
*iv_return = DB_MEM_LOCKOBJECT; |
| 4661 |
return PERL_constant_ISIV; |
| 4662 |
#else |
| 4663 |
return PERL_constant_NOTDEF; |
| 4664 |
#endif |
| 4665 |
} |
| 4666 |
break; |
| 4667 |
case 'L': |
| 4668 |
if (memEQ(name, "DB_BACKUP_NO_LOGS", 17)) { |
| 4669 |
/* ^ */ |
| 4670 |
#ifdef DB_BACKUP_NO_LOGS |
| 4671 |
*iv_return = DB_BACKUP_NO_LOGS; |
| 4672 |
return PERL_constant_ISIV; |
| 4673 |
#else |
| 4674 |
return PERL_constant_NOTDEF; |
| 4675 |
#endif |
| 4676 |
} |
| 4677 |
if (memEQ(name, "DB_ENV_STANDALONE", 17)) { |
| 4678 |
/* ^ */ |
| 4679 |
#ifdef DB_ENV_STANDALONE |
| 4680 |
*iv_return = DB_ENV_STANDALONE; |
| 4681 |
return PERL_constant_ISIV; |
| 4682 |
#else |
| 4683 |
return PERL_constant_NOTDEF; |
| 4684 |
#endif |
| 4685 |
} |
| 4686 |
if (memEQ(name, "DB_ENV_USER_ALLOC", 17)) { |
| 4687 |
/* ^ */ |
| 4688 |
#ifdef DB_ENV_USER_ALLOC |
| 4689 |
*iv_return = DB_ENV_USER_ALLOC; |
| 4690 |
return PERL_constant_ISIV; |
| 4691 |
#else |
| 4692 |
return PERL_constant_NOTDEF; |
| 4693 |
#endif |
| 4694 |
} |
| 4695 |
if (memEQ(name, "DB_VERB_REP_ELECT", 17)) { |
| 4696 |
/* ^ */ |
| 4697 |
#ifdef DB_VERB_REP_ELECT |
| 4698 |
*iv_return = DB_VERB_REP_ELECT; |
| 4699 |
return PERL_constant_ISIV; |
| 4700 |
#else |
| 4701 |
return PERL_constant_NOTDEF; |
| 4702 |
#endif |
| 4703 |
} |
| 4704 |
break; |
| 4705 |
case 'M': |
| 4706 |
if (memEQ(name, "DB_LOG_AUTOREMOVE", 17)) { |
| 4707 |
/* ^ */ |
| 4708 |
#ifdef DB_LOG_AUTOREMOVE |
| 4709 |
*iv_return = DB_LOG_AUTOREMOVE; |
| 4710 |
return PERL_constant_ISIV; |
| 4711 |
#else |
| 4712 |
return PERL_constant_NOTDEF; |
| 4713 |
#endif |
| 4714 |
} |
| 4715 |
if (memEQ(name, "DB_NO_AUTO_COMMIT", 17)) { |
| 4716 |
/* ^ */ |
| 4717 |
#ifdef DB_NO_AUTO_COMMIT |
| 4718 |
*iv_return = DB_NO_AUTO_COMMIT; |
| 4719 |
return PERL_constant_ISIV; |
| 4720 |
#else |
| 4721 |
return PERL_constant_NOTDEF; |
| 4722 |
#endif |
| 4723 |
} |
| 4724 |
if (memEQ(name, "DB_VERSION_FAMILY", 17)) { |
| 4725 |
/* ^ */ |
| 4726 |
#ifdef DB_VERSION_FAMILY |
| 4727 |
*iv_return = DB_VERSION_FAMILY; |
| 4728 |
return PERL_constant_ISIV; |
| 4729 |
#else |
| 4730 |
return PERL_constant_NOTDEF; |
| 4731 |
#endif |
| 4732 |
} |
| 4733 |
break; |
| 4734 |
case 'N': |
| 4735 |
if (memEQ(name, "DB_REP_CONF_INMEM", 17)) { |
| 4736 |
/* ^ */ |
| 4737 |
#ifdef DB_REP_CONF_INMEM |
| 4738 |
*iv_return = DB_REP_CONF_INMEM; |
| 4739 |
return PERL_constant_ISIV; |
| 4740 |
#else |
| 4741 |
return PERL_constant_NOTDEF; |
| 4742 |
#endif |
| 4743 |
} |
| 4744 |
if (memEQ(name, "DB_TEST_PRERENAME", 17)) { |
| 4745 |
/* ^ */ |
| 4746 |
#ifdef DB_TEST_PRERENAME |
| 4747 |
*iv_return = DB_TEST_PRERENAME; |
| 4748 |
return PERL_constant_ISIV; |
| 4749 |
#else |
| 4750 |
return PERL_constant_NOTDEF; |
| 4751 |
#endif |
| 4752 |
} |
| 4753 |
break; |
| 4754 |
case 'P': |
| 4755 |
if (memEQ(name, "DB_RPC_SERVERPROG", 17)) { |
| 4756 |
/* ^ */ |
| 4757 |
#ifdef DB_RPC_SERVERPROG |
| 4758 |
*iv_return = DB_RPC_SERVERPROG; |
| 4759 |
return PERL_constant_ISIV; |
| 4760 |
#else |
| 4761 |
return PERL_constant_NOTDEF; |
| 4762 |
#endif |
| 4763 |
} |
| 4764 |
break; |
| 4765 |
case 'R': |
| 4766 |
if (memEQ(name, "DB_TXN_LOG_VERIFY", 17)) { |
| 4767 |
/* ^ */ |
| 4768 |
#if (DB_VERSION_MAJOR > 5) || \ |
| 4769 |
(DB_VERSION_MAJOR == 5 && DB_VERSION_MINOR > 0) || \ |
| 4770 |
(DB_VERSION_MAJOR == 5 && DB_VERSION_MINOR == 0 && \ |
| 4771 |
DB_VERSION_PATCH >= 6) |
| 4772 |
*iv_return = DB_TXN_LOG_VERIFY; |
| 4773 |
return PERL_constant_ISIV; |
| 4774 |
#else |
| 4775 |
return PERL_constant_NOTDEF; |
| 4776 |
#endif |
| 4777 |
} |
| 4778 |
if (memEQ(name, "DB_VERSION_STRING", 17)) { |
| 4779 |
/* ^ */ |
| 4780 |
#ifdef DB_VERSION_STRING |
| 4781 |
*pv_return = DB_VERSION_STRING; |
| 4782 |
return PERL_constant_ISPV; |
| 4783 |
#else |
| 4784 |
return PERL_constant_NOTDEF; |
| 4785 |
#endif |
| 4786 |
} |
| 4787 |
break; |
| 4788 |
case 'S': |
| 4789 |
if (memEQ(name, "DB_ENV_REP_MASTER", 17)) { |
| 4790 |
/* ^ */ |
| 4791 |
#ifdef DB_ENV_REP_MASTER |
| 4792 |
*iv_return = DB_ENV_REP_MASTER; |
| 4793 |
return PERL_constant_ISIV; |
| 4794 |
#else |
| 4795 |
return PERL_constant_NOTDEF; |
| 4796 |
#endif |
| 4797 |
} |
| 4798 |
if (memEQ(name, "DB_ENV_TXN_NOSYNC", 17)) { |
| 4799 |
/* ^ */ |
| 4800 |
#ifdef DB_ENV_TXN_NOSYNC |
| 4801 |
*iv_return = DB_ENV_TXN_NOSYNC; |
| 4802 |
return PERL_constant_ISIV; |
| 4803 |
#else |
| 4804 |
return PERL_constant_NOTDEF; |
| 4805 |
#endif |
| 4806 |
} |
| 4807 |
if (memEQ(name, "DB_STAT_SUBSYSTEM", 17)) { |
| 4808 |
/* ^ */ |
| 4809 |
#ifdef DB_STAT_SUBSYSTEM |
| 4810 |
*iv_return = DB_STAT_SUBSYSTEM; |
| 4811 |
return PERL_constant_ISIV; |
| 4812 |
#else |
| 4813 |
return PERL_constant_NOTDEF; |
| 4814 |
#endif |
| 4815 |
} |
| 4816 |
if (memEQ(name, "DB_TEST_ELECTSEND", 17)) { |
| 4817 |
/* ^ */ |
| 4818 |
#ifdef DB_TEST_ELECTSEND |
| 4819 |
*iv_return = DB_TEST_ELECTSEND; |
| 4820 |
return PERL_constant_ISIV; |
| 4821 |
#else |
| 4822 |
return PERL_constant_NOTDEF; |
| 4823 |
#endif |
| 4824 |
} |
| 4825 |
if (memEQ(name, "DB_TXN_TOKEN_SIZE", 17)) { |
| 4826 |
/* ^ */ |
| 4827 |
#ifdef DB_TXN_TOKEN_SIZE |
| 4828 |
*iv_return = DB_TXN_TOKEN_SIZE; |
| 4829 |
return PERL_constant_ISIV; |
| 4830 |
#else |
| 4831 |
return PERL_constant_NOTDEF; |
| 4832 |
#endif |
| 4833 |
} |
| 4834 |
break; |
| 4835 |
case 'T': |
| 4836 |
if (memEQ(name, "DB_READ_COMMITTED", 17)) { |
| 4837 |
/* ^ */ |
| 4838 |
#ifdef DB_READ_COMMITTED |
| 4839 |
*iv_return = DB_READ_COMMITTED; |
| 4840 |
return PERL_constant_ISIV; |
| 4841 |
#else |
| 4842 |
return PERL_constant_NOTDEF; |
| 4843 |
#endif |
| 4844 |
} |
| 4845 |
break; |
| 4846 |
case 'V': |
| 4847 |
if (memEQ(name, "DB_RPC_SERVERVERS", 17)) { |
| 4848 |
/* ^ */ |
| 4849 |
#ifdef DB_RPC_SERVERVERS |
| 4850 |
*iv_return = DB_RPC_SERVERVERS; |
| 4851 |
return PERL_constant_ISIV; |
| 4852 |
#else |
| 4853 |
return PERL_constant_NOTDEF; |
| 4854 |
#endif |
| 4855 |
} |
| 4856 |
break; |
| 4857 |
case 'W': |
| 4858 |
if (memEQ(name, "DB_ENV_TXN_NOWAIT", 17)) { |
| 4859 |
/* ^ */ |
| 4860 |
#ifdef DB_ENV_TXN_NOWAIT |
| 4861 |
*iv_return = DB_ENV_TXN_NOWAIT; |
| 4862 |
return PERL_constant_ISIV; |
| 4863 |
#else |
| 4864 |
return PERL_constant_NOTDEF; |
| 4865 |
#endif |
| 4866 |
} |
| 4867 |
break; |
| 4868 |
case '_': |
| 4869 |
if (memEQ(name, "DB_ENV_DIRECT_LOG", 17)) { |
| 4870 |
/* ^ */ |
| 4871 |
#ifdef DB_ENV_DIRECT_LOG |
| 4872 |
*iv_return = DB_ENV_DIRECT_LOG; |
| 4873 |
return PERL_constant_ISIV; |
| 4874 |
#else |
| 4875 |
return PERL_constant_NOTDEF; |
| 4876 |
#endif |
| 4877 |
} |
| 4878 |
if (memEQ(name, "DB_ENV_SYSTEM_MEM", 17)) { |
| 4879 |
/* ^ */ |
| 4880 |
#ifdef DB_ENV_SYSTEM_MEM |
| 4881 |
*iv_return = DB_ENV_SYSTEM_MEM; |
| 4882 |
return PERL_constant_ISIV; |
| 4883 |
#else |
| 4884 |
return PERL_constant_NOTDEF; |
| 4885 |
#endif |
| 4886 |
} |
| 4887 |
if (memEQ(name, "DB_LOG_SILENT_ERR", 17)) { |
| 4888 |
/* ^ */ |
| 4889 |
#ifdef DB_LOG_SILENT_ERR |
| 4890 |
*iv_return = DB_LOG_SILENT_ERR; |
| 4891 |
return PERL_constant_ISIV; |
| 4892 |
#else |
| 4893 |
return PERL_constant_NOTDEF; |
| 4894 |
#endif |
| 4895 |
} |
| 4896 |
if (memEQ(name, "DB_LOG_VERIFY_BAD", 17)) { |
| 4897 |
/* ^ */ |
| 4898 |
#ifdef DB_LOG_VERIFY_BAD |
| 4899 |
*iv_return = DB_LOG_VERIFY_BAD; |
| 4900 |
return PERL_constant_ISIV; |
| 4901 |
#else |
| 4902 |
return PERL_constant_NOTDEF; |
| 4903 |
#endif |
| 4904 |
} |
| 4905 |
if (memEQ(name, "DB_LOG_VERIFY_CAF", 17)) { |
| 4906 |
/* ^ */ |
| 4907 |
#ifdef DB_LOG_VERIFY_CAF |
| 4908 |
*iv_return = DB_LOG_VERIFY_CAF; |
| 4909 |
return PERL_constant_ISIV; |
| 4910 |
#else |
| 4911 |
return PERL_constant_NOTDEF; |
| 4912 |
#endif |
| 4913 |
} |
| 4914 |
if (memEQ(name, "DB_LOG_VERIFY_ERR", 17)) { |
| 4915 |
/* ^ */ |
| 4916 |
#ifdef DB_LOG_VERIFY_ERR |
| 4917 |
*iv_return = DB_LOG_VERIFY_ERR; |
| 4918 |
return PERL_constant_ISIV; |
| 4919 |
#else |
| 4920 |
return PERL_constant_NOTDEF; |
| 4921 |
#endif |
| 4922 |
} |
| 4923 |
break; |
| 4924 |
} |
| 4925 |
return PERL_constant_NOTFOUND; |
| 4926 |
} |
| 4927 |
|
| 4928 |
static int |
| 4929 |
constant_18 (pTHX_ const char *name, IV *iv_return) { |
| 4930 |
/* When generated this function returned values for the list of names given |
| 4931 |
here. However, subsequent manual editing may have added or removed some. |
| 4932 |
DB_ALREADY_ABORTED DB_DURABLE_UNKNOWN DB_ENV_AUTO_COMMIT |
| 4933 |
DB_ENV_OPEN_CALLED DB_ENV_REF_COUNTED DB_ENV_REGION_INIT |
| 4934 |
DB_EVENT_REG_ALIVE DB_EVENT_REG_PANIC DB_FAILCHK_ISALIVE |
| 4935 |
DB_FOREIGN_CASCADE DB_FOREIGN_NULLIFY DB_LOCK_IGNORE_REC |
| 4936 |
DB_LOCK_NOTGRANTED DB_LOG_AUTO_REMOVE DB_LOG_BUFFER_FULL |
| 4937 |
DB_LOG_NOT_DURABLE DB_MEM_TRANSACTION DB_MPOOL_NEW_GROUP |
| 4938 |
DB_MUTEX_ALLOCATED DB_PR_RECOVERYTEST DB_REPMGR_ACKS_ALL |
| 4939 |
DB_REPMGR_ACKS_ONE DB_REP_ACK_TIMEOUT DB_REP_CONF_NOWAIT |
| 4940 |
DB_REP_HANDLE_DEAD DB_REP_STARTUPDONE DB_SA_SKIPFIRSTKEY |
| 4941 |
DB_SEQUENCE_OLDVER DB_SET_REG_TIMEOUT DB_SET_TXN_TIMEOUT |
| 4942 |
DB_TEST_ELECTVOTE1 DB_TEST_ELECTVOTE2 DB_TEST_ELECTWAIT1 |
| 4943 |
DB_TEST_ELECTWAIT2 DB_TEST_POSTRENAME DB_TEST_PREDESTROY |
| 4944 |
DB_THREADID_STRLEN DB_TIME_NOTGRANTED DB_TXN_NOT_DURABLE |
| 4945 |
DB_VERB_REP_SYSTEM DB_VERSION_RELEASE */ |
| 4946 |
/* Offset 13 gives the best switch position. */ |
| 4947 |
switch (name[13]) { |
| 4948 |
case 'A': |
| 4949 |
if (memEQ(name, "DB_ENV_OPEN_CALLED", 18)) { |
| 4950 |
/* ^ */ |
| 4951 |
#ifdef DB_ENV_OPEN_CALLED |
| 4952 |
*iv_return = DB_ENV_OPEN_CALLED; |
| 4953 |
return PERL_constant_ISIV; |
| 4954 |
#else |
| 4955 |
return PERL_constant_NOTDEF; |
| 4956 |
#endif |
| 4957 |
} |
| 4958 |
if (memEQ(name, "DB_EVENT_REG_ALIVE", 18)) { |
| 4959 |
/* ^ */ |
| 4960 |
#ifdef DB_EVENT_REG_ALIVE |
| 4961 |
*iv_return = DB_EVENT_REG_ALIVE; |
| 4962 |
return PERL_constant_ISIV; |
| 4963 |
#else |
| 4964 |
return PERL_constant_NOTDEF; |
| 4965 |
#endif |
| 4966 |
} |
| 4967 |
if (memEQ(name, "DB_FAILCHK_ISALIVE", 18)) { |
| 4968 |
/* ^ */ |
| 4969 |
#ifdef DB_FAILCHK_ISALIVE |
| 4970 |
*iv_return = DB_FAILCHK_ISALIVE; |
| 4971 |
return PERL_constant_ISIV; |
| 4972 |
#else |
| 4973 |
return PERL_constant_NOTDEF; |
| 4974 |
#endif |
| 4975 |
} |
| 4976 |
if (memEQ(name, "DB_LOCK_NOTGRANTED", 18)) { |
| 4977 |
/* ^ */ |
| 4978 |
#ifdef DB_LOCK_NOTGRANTED |
| 4979 |
*iv_return = DB_LOCK_NOTGRANTED; |
| 4980 |
return PERL_constant_ISIV; |
| 4981 |
#else |
| 4982 |
return PERL_constant_NOTDEF; |
| 4983 |
#endif |
| 4984 |
} |
| 4985 |
if (memEQ(name, "DB_TIME_NOTGRANTED", 18)) { |
| 4986 |
/* ^ */ |
| 4987 |
#ifdef DB_TIME_NOTGRANTED |
| 4988 |
*iv_return = DB_TIME_NOTGRANTED; |
| 4989 |
return PERL_constant_ISIV; |
| 4990 |
#else |
| 4991 |
return PERL_constant_NOTDEF; |
| 4992 |
#endif |
| 4993 |
} |
| 4994 |
break; |
| 4995 |
case 'C': |
| 4996 |
if (memEQ(name, "DB_MEM_TRANSACTION", 18)) { |
| 4997 |
/* ^ */ |
| 4998 |
#if (DB_VERSION_MAJOR > 5) || \ |
| 4999 |
(DB_VERSION_MAJOR == 5 && DB_VERSION_MINOR > 2) || \ |
| 5000 |
(DB_VERSION_MAJOR == 5 && DB_VERSION_MINOR == 2 && \ |
| 5001 |
DB_VERSION_PATCH >= 14) |
| 5002 |
*iv_return = DB_MEM_TRANSACTION; |
| 5003 |
return PERL_constant_ISIV; |
| 5004 |
#else |
| 5005 |
return PERL_constant_NOTDEF; |
| 5006 |
#endif |
| 5007 |
} |
| 5008 |
if (memEQ(name, "DB_MUTEX_ALLOCATED", 18)) { |
| 5009 |
/* ^ */ |
| 5010 |
#ifdef DB_MUTEX_ALLOCATED |
| 5011 |
*iv_return = DB_MUTEX_ALLOCATED; |
| 5012 |
return PERL_constant_ISIV; |
| 5013 |
#else |
| 5014 |
return PERL_constant_NOTDEF; |
| 5015 |
#endif |
| 5016 |
} |
| 5017 |
break; |
| 5018 |
case 'E': |
| 5019 |
if (memEQ(name, "DB_LOCK_IGNORE_REC", 18)) { |
| 5020 |
/* ^ */ |
| 5021 |
#ifdef DB_LOCK_IGNORE_REC |
| 5022 |
*iv_return = DB_LOCK_IGNORE_REC; |
| 5023 |
return PERL_constant_ISIV; |
| 5024 |
#else |
| 5025 |
return PERL_constant_NOTDEF; |
| 5026 |
#endif |
| 5027 |
} |
| 5028 |
if (memEQ(name, "DB_LOG_AUTO_REMOVE", 18)) { |
| 5029 |
/* ^ */ |
| 5030 |
#ifdef DB_LOG_AUTO_REMOVE |
| 5031 |
*iv_return = DB_LOG_AUTO_REMOVE; |
| 5032 |
return PERL_constant_ISIV; |
| 5033 |
#else |
| 5034 |
return PERL_constant_NOTDEF; |
| 5035 |
#endif |
| 5036 |
} |
| 5037 |
if (memEQ(name, "DB_TEST_POSTRENAME", 18)) { |
| 5038 |
/* ^ */ |
| 5039 |
#ifdef DB_TEST_POSTRENAME |
| 5040 |
*iv_return = DB_TEST_POSTRENAME; |
| 5041 |
return PERL_constant_ISIV; |
| 5042 |
#else |
| 5043 |
return PERL_constant_NOTDEF; |
| 5044 |
#endif |
| 5045 |
} |
| 5046 |
break; |
| 5047 |
case 'G': |
| 5048 |
if (memEQ(name, "DB_MPOOL_NEW_GROUP", 18)) { |
| 5049 |
/* ^ */ |
| 5050 |
#ifdef DB_MPOOL_NEW_GROUP |
| 5051 |
*iv_return = DB_MPOOL_NEW_GROUP; |
| 5052 |
return PERL_constant_ISIV; |
| 5053 |
#else |
| 5054 |
return PERL_constant_NOTDEF; |
| 5055 |
#endif |
| 5056 |
} |
| 5057 |
break; |
| 5058 |
case 'K': |
| 5059 |
if (memEQ(name, "DB_DURABLE_UNKNOWN", 18)) { |
| 5060 |
/* ^ */ |
| 5061 |
#ifdef DB_DURABLE_UNKNOWN |
| 5062 |
*iv_return = DB_DURABLE_UNKNOWN; |
| 5063 |
return PERL_constant_ISIV; |
| 5064 |
#else |
| 5065 |
return PERL_constant_NOTDEF; |
| 5066 |
#endif |
| 5067 |
} |
| 5068 |
break; |
| 5069 |
case 'L': |
| 5070 |
if (memEQ(name, "DB_FOREIGN_NULLIFY", 18)) { |
| 5071 |
/* ^ */ |
| 5072 |
#ifdef DB_FOREIGN_NULLIFY |
| 5073 |
*iv_return = DB_FOREIGN_NULLIFY; |
| 5074 |
return PERL_constant_ISIV; |
| 5075 |
#else |
| 5076 |
return PERL_constant_NOTDEF; |
| 5077 |
#endif |
| 5078 |
} |
| 5079 |
if (memEQ(name, "DB_SEQUENCE_OLDVER", 18)) { |
| 5080 |
/* ^ */ |
| 5081 |
#ifdef DB_SEQUENCE_OLDVER |
| 5082 |
*iv_return = DB_SEQUENCE_OLDVER; |
| 5083 |
return PERL_constant_ISIV; |
| 5084 |
#else |
| 5085 |
return PERL_constant_NOTDEF; |
| 5086 |
#endif |
| 5087 |
} |
| 5088 |
if (memEQ(name, "DB_VERSION_RELEASE", 18)) { |
| 5089 |
/* ^ */ |
| 5090 |
#ifdef DB_VERSION_RELEASE |
| 5091 |
*iv_return = DB_VERSION_RELEASE; |
| 5092 |
return PERL_constant_ISIV; |
| 5093 |
#else |
| 5094 |
return PERL_constant_NOTDEF; |
| 5095 |
#endif |
| 5096 |
} |
| 5097 |
break; |
| 5098 |
case 'M': |
| 5099 |
if (memEQ(name, "DB_REP_ACK_TIMEOUT", 18)) { |
| 5100 |
/* ^ */ |
| 5101 |
#ifdef DB_REP_ACK_TIMEOUT |
| 5102 |
*iv_return = DB_REP_ACK_TIMEOUT; |
| 5103 |
return PERL_constant_ISIV; |
| 5104 |
#else |
| 5105 |
return PERL_constant_NOTDEF; |
| 5106 |
#endif |
| 5107 |
} |
| 5108 |
if (memEQ(name, "DB_SET_REG_TIMEOUT", 18)) { |
| 5109 |
/* ^ */ |
| 5110 |
#ifdef DB_SET_REG_TIMEOUT |
| 5111 |
*iv_return = DB_SET_REG_TIMEOUT; |
| 5112 |
return PERL_constant_ISIV; |
| 5113 |
#else |
| 5114 |
return PERL_constant_NOTDEF; |
| 5115 |
#endif |
| 5116 |
} |
| 5117 |
if (memEQ(name, "DB_SET_TXN_TIMEOUT", 18)) { |
| 5118 |
/* ^ */ |
| 5119 |
#ifdef DB_SET_TXN_TIMEOUT |
| 5120 |
*iv_return = DB_SET_TXN_TIMEOUT; |
| 5121 |
return PERL_constant_ISIV; |
| 5122 |
#else |
| 5123 |
return PERL_constant_NOTDEF; |
| 5124 |
#endif |
| 5125 |
} |
| 5126 |
break; |
| 5127 |
case 'O': |
| 5128 |
if (memEQ(name, "DB_ALREADY_ABORTED", 18)) { |
| 5129 |
/* ^ */ |
| 5130 |
#ifdef DB_ALREADY_ABORTED |
| 5131 |
*iv_return = DB_ALREADY_ABORTED; |
| 5132 |
return PERL_constant_ISIV; |
| 5133 |
#else |
| 5134 |
return PERL_constant_NOTDEF; |
| 5135 |
#endif |
| 5136 |
} |
| 5137 |
if (memEQ(name, "DB_ENV_AUTO_COMMIT", 18)) { |
| 5138 |
/* ^ */ |
| 5139 |
#ifdef DB_ENV_AUTO_COMMIT |
| 5140 |
*iv_return = DB_ENV_AUTO_COMMIT; |
| 5141 |
return PERL_constant_ISIV; |
| 5142 |
#else |
| 5143 |
return PERL_constant_NOTDEF; |
| 5144 |
#endif |
| 5145 |
} |
| 5146 |
if (memEQ(name, "DB_REP_CONF_NOWAIT", 18)) { |
| 5147 |
/* ^ */ |
| 5148 |
#ifdef DB_REP_CONF_NOWAIT |
| 5149 |
*iv_return = DB_REP_CONF_NOWAIT; |
| 5150 |
return PERL_constant_ISIV; |
| 5151 |
#else |
| 5152 |
return PERL_constant_NOTDEF; |
| 5153 |
#endif |
| 5154 |
} |
| 5155 |
break; |
| 5156 |
case 'P': |
| 5157 |
if (memEQ(name, "DB_EVENT_REG_PANIC", 18)) { |
| 5158 |
/* ^ */ |
| 5159 |
#ifdef DB_EVENT_REG_PANIC |
| 5160 |
*iv_return = DB_EVENT_REG_PANIC; |
| 5161 |
return PERL_constant_ISIV; |
| 5162 |
#else |
| 5163 |
return PERL_constant_NOTDEF; |
| 5164 |
#endif |
| 5165 |
} |
| 5166 |
if (memEQ(name, "DB_REP_STARTUPDONE", 18)) { |
| 5167 |
/* ^ */ |
| 5168 |
#ifdef DB_REP_STARTUPDONE |
| 5169 |
*iv_return = DB_REP_STARTUPDONE; |
| 5170 |
return PERL_constant_ISIV; |
| 5171 |
#else |
| 5172 |
return PERL_constant_NOTDEF; |
| 5173 |
#endif |
| 5174 |
} |
| 5175 |
break; |
| 5176 |
case 'R': |
| 5177 |
if (memEQ(name, "DB_LOG_NOT_DURABLE", 18)) { |
| 5178 |
/* ^ */ |
| 5179 |
#ifdef DB_LOG_NOT_DURABLE |
| 5180 |
*iv_return = DB_LOG_NOT_DURABLE; |
| 5181 |
return PERL_constant_ISIV; |
| 5182 |
#else |
| 5183 |
return PERL_constant_NOTDEF; |
| 5184 |
#endif |
| 5185 |
} |
| 5186 |
if (memEQ(name, "DB_TXN_NOT_DURABLE", 18)) { |
| 5187 |
/* ^ */ |
| 5188 |
#ifdef DB_TXN_NOT_DURABLE |
| 5189 |
*iv_return = DB_TXN_NOT_DURABLE; |
| 5190 |
return PERL_constant_ISIV; |
| 5191 |
#else |
| 5192 |
return PERL_constant_NOTDEF; |
| 5193 |
#endif |
| 5194 |
} |
| 5195 |
break; |
| 5196 |
case 'S': |
| 5197 |
if (memEQ(name, "DB_FOREIGN_CASCADE", 18)) { |
| 5198 |
/* ^ */ |
| 5199 |
#ifdef DB_FOREIGN_CASCADE |
| 5200 |
*iv_return = DB_FOREIGN_CASCADE; |
| 5201 |
return PERL_constant_ISIV; |
| 5202 |
#else |
| 5203 |
return PERL_constant_NOTDEF; |
| 5204 |
#endif |
| 5205 |
} |
| 5206 |
if (memEQ(name, "DB_REPMGR_ACKS_ALL", 18)) { |
| 5207 |
/* ^ */ |
| 5208 |
#ifdef DB_REPMGR_ACKS_ALL |
| 5209 |
*iv_return = DB_REPMGR_ACKS_ALL; |
| 5210 |
return PERL_constant_ISIV; |
| 5211 |
#else |
| 5212 |
return PERL_constant_NOTDEF; |
| 5213 |
#endif |
| 5214 |
} |
| 5215 |
if (memEQ(name, "DB_REPMGR_ACKS_ONE", 18)) { |
| 5216 |
/* ^ */ |
| 5217 |
#ifdef DB_REPMGR_ACKS_ONE |
| 5218 |
*iv_return = DB_REPMGR_ACKS_ONE; |
| 5219 |
return PERL_constant_ISIV; |
| 5220 |
#else |
| 5221 |
return PERL_constant_NOTDEF; |
| 5222 |
#endif |
| 5223 |
} |
| 5224 |
if (memEQ(name, "DB_SA_SKIPFIRSTKEY", 18)) { |
| 5225 |
/* ^ */ |
| 5226 |
#ifdef DB_SA_SKIPFIRSTKEY |
| 5227 |
*iv_return = DB_SA_SKIPFIRSTKEY; |
| 5228 |
return PERL_constant_ISIV; |
| 5229 |
#else |
| 5230 |
return PERL_constant_NOTDEF; |
| 5231 |
#endif |
| 5232 |
} |
| 5233 |
if (memEQ(name, "DB_TEST_PREDESTROY", 18)) { |
| 5234 |
/* ^ */ |
| 5235 |
#ifdef DB_TEST_PREDESTROY |
| 5236 |
*iv_return = DB_TEST_PREDESTROY; |
| 5237 |
return PERL_constant_ISIV; |
| 5238 |
#else |
| 5239 |
return PERL_constant_NOTDEF; |
| 5240 |
#endif |
| 5241 |
} |
| 5242 |
break; |
| 5243 |
case 'T': |
| 5244 |
if (memEQ(name, "DB_THREADID_STRLEN", 18)) { |
| 5245 |
/* ^ */ |
| 5246 |
#ifdef DB_THREADID_STRLEN |
| 5247 |
*iv_return = DB_THREADID_STRLEN; |
| 5248 |
return PERL_constant_ISIV; |
| 5249 |
#else |
| 5250 |
return PERL_constant_NOTDEF; |
| 5251 |
#endif |
| 5252 |
} |
| 5253 |
break; |
| 5254 |
case 'U': |
| 5255 |
if (memEQ(name, "DB_ENV_REF_COUNTED", 18)) { |
| 5256 |
/* ^ */ |
| 5257 |
#ifdef DB_ENV_REF_COUNTED |
| 5258 |
*iv_return = DB_ENV_REF_COUNTED; |
| 5259 |
return PERL_constant_ISIV; |
| 5260 |
#else |
| 5261 |
return PERL_constant_NOTDEF; |
| 5262 |
#endif |
| 5263 |
} |
| 5264 |
break; |
| 5265 |
case 'V': |
| 5266 |
if (memEQ(name, "DB_TEST_ELECTVOTE1", 18)) { |
| 5267 |
/* ^ */ |
| 5268 |
#ifdef DB_TEST_ELECTVOTE1 |
| 5269 |
*iv_return = DB_TEST_ELECTVOTE1; |
| 5270 |
return PERL_constant_ISIV; |
| 5271 |
#else |
| 5272 |
return PERL_constant_NOTDEF; |
| 5273 |
#endif |
| 5274 |
} |
| 5275 |
if (memEQ(name, "DB_TEST_ELECTVOTE2", 18)) { |
| 5276 |
/* ^ */ |
| 5277 |
#ifdef DB_TEST_ELECTVOTE2 |
| 5278 |
*iv_return = DB_TEST_ELECTVOTE2; |
| 5279 |
return PERL_constant_ISIV; |
| 5280 |
#else |
| 5281 |
return PERL_constant_NOTDEF; |
| 5282 |
#endif |
| 5283 |
} |
| 5284 |
break; |
| 5285 |
case 'W': |
| 5286 |
if (memEQ(name, "DB_TEST_ELECTWAIT1", 18)) { |
| 5287 |
/* ^ */ |
| 5288 |
#ifdef DB_TEST_ELECTWAIT1 |
| 5289 |
*iv_return = DB_TEST_ELECTWAIT1; |
| 5290 |
return PERL_constant_ISIV; |
| 5291 |
#else |
| 5292 |
return PERL_constant_NOTDEF; |
| 5293 |
#endif |
| 5294 |
} |
| 5295 |
if (memEQ(name, "DB_TEST_ELECTWAIT2", 18)) { |
| 5296 |
/* ^ */ |
| 5297 |
#ifdef DB_TEST_ELECTWAIT2 |
| 5298 |
*iv_return = DB_TEST_ELECTWAIT2; |
| 5299 |
return PERL_constant_ISIV; |
| 5300 |
#else |
| 5301 |
return PERL_constant_NOTDEF; |
| 5302 |
#endif |
| 5303 |
} |
| 5304 |
break; |
| 5305 |
case 'Y': |
| 5306 |
if (memEQ(name, "DB_PR_RECOVERYTEST", 18)) { |
| 5307 |
/* ^ */ |
| 5308 |
#ifdef DB_PR_RECOVERYTEST |
| 5309 |
*iv_return = DB_PR_RECOVERYTEST; |
| 5310 |
return PERL_constant_ISIV; |
| 5311 |
#else |
| 5312 |
return PERL_constant_NOTDEF; |
| 5313 |
#endif |
| 5314 |
} |
| 5315 |
if (memEQ(name, "DB_VERB_REP_SYSTEM", 18)) { |
| 5316 |
/* ^ */ |
| 5317 |
#ifdef DB_VERB_REP_SYSTEM |
| 5318 |
*iv_return = DB_VERB_REP_SYSTEM; |
| 5319 |
return PERL_constant_ISIV; |
| 5320 |
#else |
| 5321 |
return PERL_constant_NOTDEF; |
| 5322 |
#endif |
| 5323 |
} |
| 5324 |
break; |
| 5325 |
case '_': |
| 5326 |
if (memEQ(name, "DB_ENV_REGION_INIT", 18)) { |
| 5327 |
/* ^ */ |
| 5328 |
#ifdef DB_ENV_REGION_INIT |
| 5329 |
*iv_return = DB_ENV_REGION_INIT; |
| 5330 |
return PERL_constant_ISIV; |
| 5331 |
#else |
| 5332 |
return PERL_constant_NOTDEF; |
| 5333 |
#endif |
| 5334 |
} |
| 5335 |
if (memEQ(name, "DB_LOG_BUFFER_FULL", 18)) { |
| 5336 |
/* ^ */ |
| 5337 |
#ifdef DB_LOG_BUFFER_FULL |
| 5338 |
*iv_return = DB_LOG_BUFFER_FULL; |
| 5339 |
return PERL_constant_ISIV; |
| 5340 |
#else |
| 5341 |
return PERL_constant_NOTDEF; |
| 5342 |
#endif |
| 5343 |
} |
| 5344 |
if (memEQ(name, "DB_REP_HANDLE_DEAD", 18)) { |
| 5345 |
/* ^ */ |
| 5346 |
#ifdef DB_REP_HANDLE_DEAD |
| 5347 |
*iv_return = DB_REP_HANDLE_DEAD; |
| 5348 |
return PERL_constant_ISIV; |
| 5349 |
#else |
| 5350 |
return PERL_constant_NOTDEF; |
| 5351 |
#endif |
| 5352 |
} |
| 5353 |
break; |
| 5354 |
} |
| 5355 |
return PERL_constant_NOTFOUND; |
| 5356 |
} |
| 5357 |
|
| 5358 |
static int |
| 5359 |
constant_19 (pTHX_ const char *name, IV *iv_return) { |
| 5360 |
/* When generated this function returned values for the list of names given |
| 5361 |
here. However, subsequent manual editing may have added or removed some. |
| 5362 |
DB_BOOTSTRAP_HELPER DB_CURSOR_TRANSIENT DB_DATABASE_LOCKING |
| 5363 |
DB_ENV_LOG_INMEMORY DB_ENV_MULTIVERSION DB_ENV_REP_LOGSONLY |
| 5364 |
DB_ENV_TXN_SNAPSHOT DB_EVENT_REP_CLIENT DB_EVENT_REP_MASTER |
| 5365 |
DB_FOREIGN_CONFLICT DB_LOCK_FREE_LOCKER DB_LOCK_GET_TIMEOUT |
| 5366 |
DB_LOCK_SET_TIMEOUT DB_MUTEX_SELF_BLOCK DB_PRIORITY_DEFAULT |
| 5367 |
DB_READ_UNCOMMITTED DB_REPMGR_ACKS_NONE DB_REPMGR_CONNECTED |
| 5368 |
DB_REP_HOLDELECTION DB_REP_JOIN_FAILURE DB_SEQUENCE_VERSION |
| 5369 |
DB_SET_LOCK_TIMEOUT DB_STAT_LOCK_PARAMS DB_TEST_POSTDESTROY |
| 5370 |
DB_TEST_POSTLOGMETA DB_TEST_SUBDB_LOCKS DB_TXN_FORWARD_ROLL |
| 5371 |
DB_TXN_LOG_UNDOREDO DB_TXN_WRITE_NOSYNC DB_UPDATE_SECONDARY |
| 5372 |
DB_USERCOPY_GETDATA DB_USERCOPY_SETDATA DB_USE_ENVIRON_ROOT |
| 5373 |
DB_VERB_FILEOPS_ALL DB_VERB_REPLICATION DB_VERB_REPMGR_MISC |
| 5374 |
DB_VERIFY_PARTITION DB_VERSION_MISMATCH */ |
| 5375 |
/* Offset 14 gives the best switch position. */ |
| 5376 |
switch (name[14]) { |
| 5377 |
case 'A': |
| 5378 |
if (memEQ(name, "DB_EVENT_REP_MASTER", 19)) { |
| 5379 |
/* ^ */ |
| 5380 |
#ifdef DB_EVENT_REP_MASTER |
| 5381 |
*iv_return = DB_EVENT_REP_MASTER; |
| 5382 |
return PERL_constant_ISIV; |
| 5383 |
#else |
| 5384 |
return PERL_constant_NOTDEF; |
| 5385 |
#endif |
| 5386 |
} |
| 5387 |
if (memEQ(name, "DB_STAT_LOCK_PARAMS", 19)) { |
| 5388 |
/* ^ */ |
| 5389 |
#ifdef DB_STAT_LOCK_PARAMS |
| 5390 |
*iv_return = DB_STAT_LOCK_PARAMS; |
| 5391 |
return PERL_constant_ISIV; |
| 5392 |
#else |
| 5393 |
return PERL_constant_NOTDEF; |
| 5394 |
#endif |
| 5395 |
} |
| 5396 |
if (memEQ(name, "DB_VERB_REPLICATION", 19)) { |
| 5397 |
/* ^ */ |
| 5398 |
#ifdef DB_VERB_REPLICATION |
| 5399 |
*iv_return = DB_VERB_REPLICATION; |
| 5400 |
return PERL_constant_ISIV; |
| 5401 |
#else |
| 5402 |
return PERL_constant_NOTDEF; |
| 5403 |
#endif |
| 5404 |
} |
| 5405 |
break; |
| 5406 |
case 'B': |
| 5407 |
if (memEQ(name, "DB_MUTEX_SELF_BLOCK", 19)) { |
| 5408 |
/* ^ */ |
| 5409 |
#ifdef DB_MUTEX_SELF_BLOCK |
| 5410 |
*iv_return = DB_MUTEX_SELF_BLOCK; |
| 5411 |
return PERL_constant_ISIV; |
| 5412 |
#else |
| 5413 |
return PERL_constant_NOTDEF; |
| 5414 |
#endif |
| 5415 |
} |
| 5416 |
break; |
| 5417 |
case 'C': |
| 5418 |
if (memEQ(name, "DB_DATABASE_LOCKING", 19)) { |
| 5419 |
/* ^ */ |
| 5420 |
#ifdef DB_DATABASE_LOCKING |
| 5421 |
*iv_return = DB_DATABASE_LOCKING; |
| 5422 |
return PERL_constant_ISIV; |
| 5423 |
#else |
| 5424 |
return PERL_constant_NOTDEF; |
| 5425 |
#endif |
| 5426 |
} |
| 5427 |
if (memEQ(name, "DB_REP_HOLDELECTION", 19)) { |
| 5428 |
/* ^ */ |
| 5429 |
#ifdef DB_REP_HOLDELECTION |
| 5430 |
*iv_return = DB_REP_HOLDELECTION; |
| 5431 |
return PERL_constant_ISIV; |
| 5432 |
#else |
| 5433 |
return PERL_constant_NOTDEF; |
| 5434 |
#endif |
| 5435 |
} |
| 5436 |
break; |
| 5437 |
case 'E': |
| 5438 |
if (memEQ(name, "DB_BOOTSTRAP_HELPER", 19)) { |
| 5439 |
/* ^ */ |
| 5440 |
#ifdef DB_BOOTSTRAP_HELPER |
| 5441 |
*iv_return = DB_BOOTSTRAP_HELPER; |
| 5442 |
return PERL_constant_ISIV; |
| 5443 |
#else |
| 5444 |
return PERL_constant_NOTDEF; |
| 5445 |
#endif |
| 5446 |
} |
| 5447 |
if (memEQ(name, "DB_ENV_LOG_INMEMORY", 19)) { |
| 5448 |
/* ^ */ |
| 5449 |
#ifdef DB_ENV_LOG_INMEMORY |
| 5450 |
*iv_return = DB_ENV_LOG_INMEMORY; |
| 5451 |
return PERL_constant_ISIV; |
| 5452 |
#else |
| 5453 |
return PERL_constant_NOTDEF; |
| 5454 |
#endif |
| 5455 |
} |
| 5456 |
if (memEQ(name, "DB_REPMGR_CONNECTED", 19)) { |
| 5457 |
/* ^ */ |
| 5458 |
#ifdef DB_REPMGR_CONNECTED |
| 5459 |
*iv_return = DB_REPMGR_CONNECTED; |
| 5460 |
return PERL_constant_ISIV; |
| 5461 |
#else |
| 5462 |
return PERL_constant_NOTDEF; |
| 5463 |
#endif |
| 5464 |
} |
| 5465 |
break; |
| 5466 |
case 'F': |
| 5467 |
if (memEQ(name, "DB_FOREIGN_CONFLICT", 19)) { |
| 5468 |
/* ^ */ |
| 5469 |
#ifdef DB_FOREIGN_CONFLICT |
| 5470 |
*iv_return = DB_FOREIGN_CONFLICT; |
| 5471 |
return PERL_constant_ISIV; |
| 5472 |
#else |
| 5473 |
return PERL_constant_NOTDEF; |
| 5474 |
#endif |
| 5475 |
} |
| 5476 |
if (memEQ(name, "DB_PRIORITY_DEFAULT", 19)) { |
| 5477 |
/* ^ */ |
| 5478 |
#if (DB_VERSION_MAJOR > 4) || \ |
| 5479 |
(DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR > 1) || \ |
| 5480 |
(DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR == 1 && \ |
| 5481 |
DB_VERSION_PATCH >= 24) |
| 5482 |
*iv_return = DB_PRIORITY_DEFAULT; |
| 5483 |
return PERL_constant_ISIV; |
| 5484 |
#else |
| 5485 |
return PERL_constant_NOTDEF; |
| 5486 |
#endif |
| 5487 |
} |
| 5488 |
break; |
| 5489 |
case 'G': |
| 5490 |
if (memEQ(name, "DB_TEST_POSTLOGMETA", 19)) { |
| 5491 |
/* ^ */ |
| 5492 |
#ifdef DB_TEST_POSTLOGMETA |
| 5493 |
*iv_return = DB_TEST_POSTLOGMETA; |
| 5494 |
return PERL_constant_ISIV; |
| 5495 |
#else |
| 5496 |
return PERL_constant_NOTDEF; |
| 5497 |
#endif |
| 5498 |
} |
| 5499 |
break; |
| 5500 |
case 'I': |
| 5501 |
if (memEQ(name, "DB_READ_UNCOMMITTED", 19)) { |
| 5502 |
/* ^ */ |
| 5503 |
#ifdef DB_READ_UNCOMMITTED |
| 5504 |
*iv_return = DB_READ_UNCOMMITTED; |
| 5505 |
return PERL_constant_ISIV; |
| 5506 |
#else |
| 5507 |
return PERL_constant_NOTDEF; |
| 5508 |
#endif |
| 5509 |
} |
| 5510 |
if (memEQ(name, "DB_REP_JOIN_FAILURE", 19)) { |
| 5511 |
/* ^ */ |
| 5512 |
#ifdef DB_REP_JOIN_FAILURE |
| 5513 |
*iv_return = DB_REP_JOIN_FAILURE; |
| 5514 |
return PERL_constant_ISIV; |
| 5515 |
#else |
| 5516 |
return PERL_constant_NOTDEF; |
| 5517 |
#endif |
| 5518 |
} |
| 5519 |
if (memEQ(name, "DB_VERIFY_PARTITION", 19)) { |
| 5520 |
/* ^ */ |
| 5521 |
#ifdef DB_VERIFY_PARTITION |
| 5522 |
*iv_return = DB_VERIFY_PARTITION; |
| 5523 |
return PERL_constant_ISIV; |
| 5524 |
#else |
| 5525 |
return PERL_constant_NOTDEF; |
| 5526 |
#endif |
| 5527 |
} |
| 5528 |
break; |
| 5529 |
case 'L': |
| 5530 |
if (memEQ(name, "DB_EVENT_REP_CLIENT", 19)) { |
| 5531 |
/* ^ */ |
| 5532 |
#ifdef DB_EVENT_REP_CLIENT |
| 5533 |
*iv_return = DB_EVENT_REP_CLIENT; |
| 5534 |
return PERL_constant_ISIV; |
| 5535 |
#else |
| 5536 |
return PERL_constant_NOTDEF; |
| 5537 |
#endif |
| 5538 |
} |
| 5539 |
if (memEQ(name, "DB_TEST_SUBDB_LOCKS", 19)) { |
| 5540 |
/* ^ */ |
| 5541 |
#ifdef DB_TEST_SUBDB_LOCKS |
| 5542 |
*iv_return = DB_TEST_SUBDB_LOCKS; |
| 5543 |
return PERL_constant_ISIV; |
| 5544 |
#else |
| 5545 |
return PERL_constant_NOTDEF; |
| 5546 |
#endif |
| 5547 |
} |
| 5548 |
break; |
| 5549 |
case 'M': |
| 5550 |
if (memEQ(name, "DB_LOCK_GET_TIMEOUT", 19)) { |
| 5551 |
/* ^ */ |
| 5552 |
#if (DB_VERSION_MAJOR > 4) || \ |
| 5553 |
(DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR > 0) || \ |
| 5554 |
(DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR == 0 && \ |
| 5555 |
DB_VERSION_PATCH >= 14) |
| 5556 |
*iv_return = DB_LOCK_GET_TIMEOUT; |
| 5557 |
return PERL_constant_ISIV; |
| 5558 |
#else |
| 5559 |
return PERL_constant_NOTDEF; |
| 5560 |
#endif |
| 5561 |
} |
| 5562 |
if (memEQ(name, "DB_LOCK_SET_TIMEOUT", 19)) { |
| 5563 |
/* ^ */ |
| 5564 |
#ifdef DB_LOCK_SET_TIMEOUT |
| 5565 |
*iv_return = DB_LOCK_SET_TIMEOUT; |
| 5566 |
return PERL_constant_ISIV; |
| 5567 |
#else |
| 5568 |
return PERL_constant_NOTDEF; |
| 5569 |
#endif |
| 5570 |
} |
| 5571 |
if (memEQ(name, "DB_SET_LOCK_TIMEOUT", 19)) { |
| 5572 |
/* ^ */ |
| 5573 |
#ifdef DB_SET_LOCK_TIMEOUT |
| 5574 |
*iv_return = DB_SET_LOCK_TIMEOUT; |
| 5575 |
return PERL_constant_ISIV; |
| 5576 |
#else |
| 5577 |
return PERL_constant_NOTDEF; |
| 5578 |
#endif |
| 5579 |
} |
| 5580 |
if (memEQ(name, "DB_VERSION_MISMATCH", 19)) { |
| 5581 |
/* ^ */ |
| 5582 |
#ifdef DB_VERSION_MISMATCH |
| 5583 |
*iv_return = DB_VERSION_MISMATCH; |
| 5584 |
return PERL_constant_ISIV; |
| 5585 |
#else |
| 5586 |
return PERL_constant_NOTDEF; |
| 5587 |
#endif |
| 5588 |
} |
| 5589 |
break; |
| 5590 |
case 'N': |
| 5591 |
if (memEQ(name, "DB_UPDATE_SECONDARY", 19)) { |
| 5592 |
/* ^ */ |
| 5593 |
#ifdef DB_UPDATE_SECONDARY |
| 5594 |
*iv_return = DB_UPDATE_SECONDARY; |
| 5595 |
return PERL_constant_ISIV; |
| 5596 |
#else |
| 5597 |
return PERL_constant_NOTDEF; |
| 5598 |
#endif |
| 5599 |
} |
| 5600 |
break; |
| 5601 |
case 'O': |
| 5602 |
if (memEQ(name, "DB_LOCK_FREE_LOCKER", 19)) { |
| 5603 |
/* ^ */ |
| 5604 |
#ifdef DB_LOCK_FREE_LOCKER |
| 5605 |
*iv_return = DB_LOCK_FREE_LOCKER; |
| 5606 |
return PERL_constant_ISIV; |
| 5607 |
#else |
| 5608 |
return PERL_constant_NOTDEF; |
| 5609 |
#endif |
| 5610 |
} |
| 5611 |
if (memEQ(name, "DB_TXN_LOG_UNDOREDO", 19)) { |
| 5612 |
/* ^ */ |
| 5613 |
#ifdef DB_TXN_LOG_UNDOREDO |
| 5614 |
*iv_return = DB_TXN_LOG_UNDOREDO; |
| 5615 |
return PERL_constant_ISIV; |
| 5616 |
#else |
| 5617 |
return PERL_constant_NOTDEF; |
| 5618 |
#endif |
| 5619 |
} |
| 5620 |
if (memEQ(name, "DB_TXN_WRITE_NOSYNC", 19)) { |
| 5621 |
/* ^ */ |
| 5622 |
#ifdef DB_TXN_WRITE_NOSYNC |
| 5623 |
*iv_return = DB_TXN_WRITE_NOSYNC; |
| 5624 |
return PERL_constant_ISIV; |
| 5625 |
#else |
| 5626 |
return PERL_constant_NOTDEF; |
| 5627 |
#endif |
| 5628 |
} |
| 5629 |
break; |
| 5630 |
case 'P': |
| 5631 |
if (memEQ(name, "DB_ENV_TXN_SNAPSHOT", 19)) { |
| 5632 |
/* ^ */ |
| 5633 |
#ifdef DB_ENV_TXN_SNAPSHOT |
| 5634 |
*iv_return = DB_ENV_TXN_SNAPSHOT; |
| 5635 |
return PERL_constant_ISIV; |
| 5636 |
#else |
| 5637 |
return PERL_constant_NOTDEF; |
| 5638 |
#endif |
| 5639 |
} |
| 5640 |
break; |
| 5641 |
case 'R': |
| 5642 |
if (memEQ(name, "DB_ENV_MULTIVERSION", 19)) { |
| 5643 |
/* ^ */ |
| 5644 |
#ifdef DB_ENV_MULTIVERSION |
| 5645 |
*iv_return = DB_ENV_MULTIVERSION; |
| 5646 |
return PERL_constant_ISIV; |
| 5647 |
#else |
| 5648 |
return PERL_constant_NOTDEF; |
| 5649 |
#endif |
| 5650 |
} |
| 5651 |
if (memEQ(name, "DB_SEQUENCE_VERSION", 19)) { |
| 5652 |
/* ^ */ |
| 5653 |
#ifdef DB_SEQUENCE_VERSION |
| 5654 |
*iv_return = DB_SEQUENCE_VERSION; |
| 5655 |
return PERL_constant_ISIV; |
| 5656 |
#else |
| 5657 |
return PERL_constant_NOTDEF; |
| 5658 |
#endif |
| 5659 |
} |
| 5660 |
break; |
| 5661 |
case 'S': |
| 5662 |
if (memEQ(name, "DB_CURSOR_TRANSIENT", 19)) { |
| 5663 |
/* ^ */ |
| 5664 |
#ifdef DB_CURSOR_TRANSIENT |
| 5665 |
*iv_return = DB_CURSOR_TRANSIENT; |
| 5666 |
return PERL_constant_ISIV; |
| 5667 |
#else |
| 5668 |
return PERL_constant_NOTDEF; |
| 5669 |
#endif |
| 5670 |
} |
| 5671 |
if (memEQ(name, "DB_ENV_REP_LOGSONLY", 19)) { |
| 5672 |
/* ^ */ |
| 5673 |
#ifdef DB_ENV_REP_LOGSONLY |
| 5674 |
*iv_return = DB_ENV_REP_LOGSONLY; |
| 5675 |
return PERL_constant_ISIV; |
| 5676 |
#else |
| 5677 |
return PERL_constant_NOTDEF; |
| 5678 |
#endif |
| 5679 |
} |
| 5680 |
if (memEQ(name, "DB_TEST_POSTDESTROY", 19)) { |
| 5681 |
/* ^ */ |
| 5682 |
#ifdef DB_TEST_POSTDESTROY |
| 5683 |
*iv_return = DB_TEST_POSTDESTROY; |
| 5684 |
return PERL_constant_ISIV; |
| 5685 |
#else |
| 5686 |
return PERL_constant_NOTDEF; |
| 5687 |
#endif |
| 5688 |
} |
| 5689 |
if (memEQ(name, "DB_VERB_FILEOPS_ALL", 19)) { |
| 5690 |
/* ^ */ |
| 5691 |
#ifdef DB_VERB_FILEOPS_ALL |
| 5692 |
*iv_return = DB_VERB_FILEOPS_ALL; |
| 5693 |
return PERL_constant_ISIV; |
| 5694 |
#else |
| 5695 |
return PERL_constant_NOTDEF; |
| 5696 |
#endif |
| 5697 |
} |
| 5698 |
break; |
| 5699 |
case 'T': |
| 5700 |
if (memEQ(name, "DB_USERCOPY_GETDATA", 19)) { |
| 5701 |
/* ^ */ |
| 5702 |
#ifdef DB_USERCOPY_GETDATA |
| 5703 |
*iv_return = DB_USERCOPY_GETDATA; |
| 5704 |
return PERL_constant_ISIV; |
| 5705 |
#else |
| 5706 |
return PERL_constant_NOTDEF; |
| 5707 |
#endif |
| 5708 |
} |
| 5709 |
if (memEQ(name, "DB_USERCOPY_SETDATA", 19)) { |
| 5710 |
/* ^ */ |
| 5711 |
#ifdef DB_USERCOPY_SETDATA |
| 5712 |
*iv_return = DB_USERCOPY_SETDATA; |
| 5713 |
return PERL_constant_ISIV; |
| 5714 |
#else |
| 5715 |
return PERL_constant_NOTDEF; |
| 5716 |
#endif |
| 5717 |
} |
| 5718 |
break; |
| 5719 |
case '_': |
| 5720 |
if (memEQ(name, "DB_REPMGR_ACKS_NONE", 19)) { |
| 5721 |
/* ^ */ |
| 5722 |
#ifdef DB_REPMGR_ACKS_NONE |
| 5723 |
*iv_return = DB_REPMGR_ACKS_NONE; |
| 5724 |
return PERL_constant_ISIV; |
| 5725 |
#else |
| 5726 |
return PERL_constant_NOTDEF; |
| 5727 |
#endif |
| 5728 |
} |
| 5729 |
if (memEQ(name, "DB_TXN_FORWARD_ROLL", 19)) { |
| 5730 |
/* ^ */ |
| 5731 |
#if (DB_VERSION_MAJOR > 3) || \ |
| 5732 |
(DB_VERSION_MAJOR == 3 && DB_VERSION_MINOR > 1) || \ |
| 5733 |
(DB_VERSION_MAJOR == 3 && DB_VERSION_MINOR == 1 && \ |
| 5734 |
DB_VERSION_PATCH >= 14) |
| 5735 |
*iv_return = DB_TXN_FORWARD_ROLL; |
| 5736 |
return PERL_constant_ISIV; |
| 5737 |
#else |
| 5738 |
return PERL_constant_NOTDEF; |
| 5739 |
#endif |
| 5740 |
} |
| 5741 |
if (memEQ(name, "DB_USE_ENVIRON_ROOT", 19)) { |
| 5742 |
/* ^ */ |
| 5743 |
#ifdef DB_USE_ENVIRON_ROOT |
| 5744 |
*iv_return = DB_USE_ENVIRON_ROOT; |
| 5745 |
return PERL_constant_ISIV; |
| 5746 |
#else |
| 5747 |
return PERL_constant_NOTDEF; |
| 5748 |
#endif |
| 5749 |
} |
| 5750 |
if (memEQ(name, "DB_VERB_REPMGR_MISC", 19)) { |
| 5751 |
/* ^ */ |
| 5752 |
#ifdef DB_VERB_REPMGR_MISC |
| 5753 |
*iv_return = DB_VERB_REPMGR_MISC; |
| 5754 |
return PERL_constant_ISIV; |
| 5755 |
#else |
| 5756 |
return PERL_constant_NOTDEF; |
| 5757 |
#endif |
| 5758 |
} |
| 5759 |
break; |
| 5760 |
} |
| 5761 |
return PERL_constant_NOTFOUND; |
| 5762 |
} |
| 5763 |
|
| 5764 |
static int |
| 5765 |
constant_20 (pTHX_ const char *name, IV *iv_return) { |
| 5766 |
/* When generated this function returned values for the list of names given |
| 5767 |
here. However, subsequent manual editing may have added or removed some. |
| 5768 |
DB_BACKUP_READ_COUNT DB_BACKUP_READ_SLEEP DB_BACKUP_SINGLE_DIR |
| 5769 |
DB_CXX_NO_EXCEPTIONS DB_ENV_NO_OUTPUT_SET DB_ENV_RECOVER_FATAL |
| 5770 |
DB_EVENT_NOT_HANDLED DB_EVENT_REP_ELECTED DB_LOGFILEID_INVALID |
| 5771 |
DB_LOG_VERIFY_DBFILE DB_LOG_VERIFY_INTERR DB_PANIC_ENVIRONMENT |
| 5772 |
DB_PRIORITY_VERY_LOW DB_REP_CONF_AUTOINIT DB_REP_FULL_ELECTION |
| 5773 |
DB_REP_LEASE_EXPIRED DB_REP_LEASE_TIMEOUT DB_REP_WOULDROLLBACK |
| 5774 |
DB_STAT_LOCK_LOCKERS DB_STAT_LOCK_OBJECTS DB_STAT_MEMP_NOERROR |
| 5775 |
DB_TXN_BACKWARD_ROLL DB_TXN_LOCK_OPTIMIST */ |
| 5776 |
/* Offset 15 gives the best switch position. */ |
| 5777 |
switch (name[15]) { |
| 5778 |
case 'B': |
| 5779 |
if (memEQ(name, "DB_LOG_VERIFY_DBFILE", 20)) { |
| 5780 |
/* ^ */ |
| 5781 |
#ifdef DB_LOG_VERIFY_DBFILE |
| 5782 |
*iv_return = DB_LOG_VERIFY_DBFILE; |
| 5783 |
return PERL_constant_ISIV; |
| 5784 |
#else |
| 5785 |
return PERL_constant_NOTDEF; |
| 5786 |
#endif |
| 5787 |
} |
| 5788 |
break; |
| 5789 |
case 'C': |
| 5790 |
if (memEQ(name, "DB_BACKUP_READ_COUNT", 20)) { |
| 5791 |
/* ^ */ |
| 5792 |
#if (DB_VERSION_MAJOR > 5) || \ |
| 5793 |
(DB_VERSION_MAJOR == 5 && DB_VERSION_MINOR > 3) || \ |
| 5794 |
(DB_VERSION_MAJOR == 5 && DB_VERSION_MINOR == 3 && \ |
| 5795 |
DB_VERSION_PATCH >= 5) |
| 5796 |
*iv_return = DB_BACKUP_READ_COUNT; |
| 5797 |
return PERL_constant_ISIV; |
| 5798 |
#else |
| 5799 |
return PERL_constant_NOTDEF; |
| 5800 |
#endif |
| 5801 |
} |
| 5802 |
if (memEQ(name, "DB_REP_FULL_ELECTION", 20)) { |
| 5803 |
/* ^ */ |
| 5804 |
#ifdef DB_REP_FULL_ELECTION |
| 5805 |
*iv_return = DB_REP_FULL_ELECTION; |
| 5806 |
return PERL_constant_ISIV; |
| 5807 |
#else |
| 5808 |
return PERL_constant_NOTDEF; |
| 5809 |
#endif |
| 5810 |
} |
| 5811 |
if (memEQ(name, "DB_STAT_LOCK_LOCKERS", 20)) { |
| 5812 |
/* ^ */ |
| 5813 |
#ifdef DB_STAT_LOCK_LOCKERS |
| 5814 |
*iv_return = DB_STAT_LOCK_LOCKERS; |
| 5815 |
return PERL_constant_ISIV; |
| 5816 |
#else |
| 5817 |
return PERL_constant_NOTDEF; |
| 5818 |
#endif |
| 5819 |
} |
| 5820 |
break; |
| 5821 |
case 'E': |
| 5822 |
if (memEQ(name, "DB_BACKUP_SINGLE_DIR", 20)) { |
| 5823 |
/* ^ */ |
| 5824 |
#ifdef DB_BACKUP_SINGLE_DIR |
| 5825 |
*iv_return = DB_BACKUP_SINGLE_DIR; |
| 5826 |
return PERL_constant_ISIV; |
| 5827 |
#else |
| 5828 |
return PERL_constant_NOTDEF; |
| 5829 |
#endif |
| 5830 |
} |
| 5831 |
if (memEQ(name, "DB_EVENT_REP_ELECTED", 20)) { |
| 5832 |
/* ^ */ |
| 5833 |
#ifdef DB_EVENT_REP_ELECTED |
| 5834 |
*iv_return = DB_EVENT_REP_ELECTED; |
| 5835 |
return PERL_constant_ISIV; |
| 5836 |
#else |
| 5837 |
return PERL_constant_NOTDEF; |
| 5838 |
#endif |
| 5839 |
} |
| 5840 |
if (memEQ(name, "DB_STAT_MEMP_NOERROR", 20)) { |
| 5841 |
/* ^ */ |
| 5842 |
#ifdef DB_STAT_MEMP_NOERROR |
| 5843 |
*iv_return = DB_STAT_MEMP_NOERROR; |
| 5844 |
return PERL_constant_ISIV; |
| 5845 |
#else |
| 5846 |
return PERL_constant_NOTDEF; |
| 5847 |
#endif |
| 5848 |
} |
| 5849 |
break; |
| 5850 |
case 'F': |
| 5851 |
if (memEQ(name, "DB_ENV_RECOVER_FATAL", 20)) { |
| 5852 |
/* ^ */ |
| 5853 |
#ifdef DB_ENV_RECOVER_FATAL |
| 5854 |
*iv_return = DB_ENV_RECOVER_FATAL; |
| 5855 |
return PERL_constant_ISIV; |
| 5856 |
#else |
| 5857 |
return PERL_constant_NOTDEF; |
| 5858 |
#endif |
| 5859 |
} |
| 5860 |
break; |
| 5861 |
case 'I': |
| 5862 |
if (memEQ(name, "DB_TXN_LOCK_OPTIMIST", 20)) { |
| 5863 |
/* ^ */ |
| 5864 |
#ifdef DB_TXN_LOCK_OPTIMIST |
| 5865 |
*iv_return = DB_TXN_LOCK_OPTIMIST; |
| 5866 |
return PERL_constant_ISIV; |
| 5867 |
#else |
| 5868 |
return PERL_constant_NOTDEF; |
| 5869 |
#endif |
| 5870 |
} |
| 5871 |
break; |
| 5872 |
case 'J': |
| 5873 |
if (memEQ(name, "DB_STAT_LOCK_OBJECTS", 20)) { |
| 5874 |
/* ^ */ |
| 5875 |
#ifdef DB_STAT_LOCK_OBJECTS |
| 5876 |
*iv_return = DB_STAT_LOCK_OBJECTS; |
| 5877 |
return PERL_constant_ISIV; |
| 5878 |
#else |
| 5879 |
return PERL_constant_NOTDEF; |
| 5880 |
#endif |
| 5881 |
} |
| 5882 |
break; |
| 5883 |
case 'L': |
| 5884 |
if (memEQ(name, "DB_REP_WOULDROLLBACK", 20)) { |
| 5885 |
/* ^ */ |
| 5886 |
#ifdef DB_REP_WOULDROLLBACK |
| 5887 |
*iv_return = DB_REP_WOULDROLLBACK; |
| 5888 |
return PERL_constant_ISIV; |
| 5889 |
#else |
| 5890 |
return PERL_constant_NOTDEF; |
| 5891 |
#endif |
| 5892 |
} |
| 5893 |
break; |
| 5894 |
case 'M': |
| 5895 |
if (memEQ(name, "DB_REP_LEASE_TIMEOUT", 20)) { |
| 5896 |
/* ^ */ |
| 5897 |
#ifdef DB_REP_LEASE_TIMEOUT |
| 5898 |
*iv_return = DB_REP_LEASE_TIMEOUT; |
| 5899 |
return PERL_constant_ISIV; |
| 5900 |
#else |
| 5901 |
return PERL_constant_NOTDEF; |
| 5902 |
#endif |
| 5903 |
} |
| 5904 |
break; |
| 5905 |
case 'N': |
| 5906 |
if (memEQ(name, "DB_EVENT_NOT_HANDLED", 20)) { |
| 5907 |
/* ^ */ |
| 5908 |
#ifdef DB_EVENT_NOT_HANDLED |
| 5909 |
*iv_return = DB_EVENT_NOT_HANDLED; |
| 5910 |
return PERL_constant_ISIV; |
| 5911 |
#else |
| 5912 |
return PERL_constant_NOTDEF; |
| 5913 |
#endif |
| 5914 |
} |
| 5915 |
if (memEQ(name, "DB_LOG_VERIFY_INTERR", 20)) { |
| 5916 |
/* ^ */ |
| 5917 |
#ifdef DB_LOG_VERIFY_INTERR |
| 5918 |
*iv_return = DB_LOG_VERIFY_INTERR; |
| 5919 |
return PERL_constant_ISIV; |
| 5920 |
#else |
| 5921 |
return PERL_constant_NOTDEF; |
| 5922 |
#endif |
| 5923 |
} |
| 5924 |
if (memEQ(name, "DB_PANIC_ENVIRONMENT", 20)) { |
| 5925 |
/* ^ */ |
| 5926 |
#ifdef DB_PANIC_ENVIRONMENT |
| 5927 |
*iv_return = DB_PANIC_ENVIRONMENT; |
| 5928 |
return PERL_constant_ISIV; |
| 5929 |
#else |
| 5930 |
return PERL_constant_NOTDEF; |
| 5931 |
#endif |
| 5932 |
} |
| 5933 |
break; |
| 5934 |
case 'O': |
| 5935 |
if (memEQ(name, "DB_REP_CONF_AUTOINIT", 20)) { |
| 5936 |
/* ^ */ |
| 5937 |
#ifdef DB_REP_CONF_AUTOINIT |
| 5938 |
*iv_return = DB_REP_CONF_AUTOINIT; |
| 5939 |
return PERL_constant_ISIV; |
| 5940 |
#else |
| 5941 |
return PERL_constant_NOTDEF; |
| 5942 |
#endif |
| 5943 |
} |
| 5944 |
break; |
| 5945 |
case 'P': |
| 5946 |
if (memEQ(name, "DB_REP_LEASE_EXPIRED", 20)) { |
| 5947 |
/* ^ */ |
| 5948 |
#ifdef DB_REP_LEASE_EXPIRED |
| 5949 |
*iv_return = DB_REP_LEASE_EXPIRED; |
| 5950 |
return PERL_constant_ISIV; |
| 5951 |
#else |
| 5952 |
return PERL_constant_NOTDEF; |
| 5953 |
#endif |
| 5954 |
} |
| 5955 |
break; |
| 5956 |
case 'S': |
| 5957 |
if (memEQ(name, "DB_BACKUP_READ_SLEEP", 20)) { |
| 5958 |
/* ^ */ |
| 5959 |
#if (DB_VERSION_MAJOR > 5) || \ |
| 5960 |
(DB_VERSION_MAJOR == 5 && DB_VERSION_MINOR > 3) || \ |
| 5961 |
(DB_VERSION_MAJOR == 5 && DB_VERSION_MINOR == 3 && \ |
| 5962 |
DB_VERSION_PATCH >= 5) |
| 5963 |
*iv_return = DB_BACKUP_READ_SLEEP; |
| 5964 |
return PERL_constant_ISIV; |
| 5965 |
#else |
| 5966 |
return PERL_constant_NOTDEF; |
| 5967 |
#endif |
| 5968 |
} |
| 5969 |
break; |
| 5970 |
case 'T': |
| 5971 |
if (memEQ(name, "DB_CXX_NO_EXCEPTIONS", 20)) { |
| 5972 |
/* ^ */ |
| 5973 |
#ifdef DB_CXX_NO_EXCEPTIONS |
| 5974 |
*iv_return = DB_CXX_NO_EXCEPTIONS; |
| 5975 |
return PERL_constant_ISIV; |
| 5976 |
#else |
| 5977 |
return PERL_constant_NOTDEF; |
| 5978 |
#endif |
| 5979 |
} |
| 5980 |
if (memEQ(name, "DB_ENV_NO_OUTPUT_SET", 20)) { |
| 5981 |
/* ^ */ |
| 5982 |
#ifdef DB_ENV_NO_OUTPUT_SET |
| 5983 |
*iv_return = DB_ENV_NO_OUTPUT_SET; |
| 5984 |
return PERL_constant_ISIV; |
| 5985 |
#else |
| 5986 |
return PERL_constant_NOTDEF; |
| 5987 |
#endif |
| 5988 |
} |
| 5989 |
break; |
| 5990 |
case 'V': |
| 5991 |
if (memEQ(name, "DB_LOGFILEID_INVALID", 20)) { |
| 5992 |
/* ^ */ |
| 5993 |
#ifdef DB_LOGFILEID_INVALID |
| 5994 |
*iv_return = DB_LOGFILEID_INVALID; |
| 5995 |
return PERL_constant_ISIV; |
| 5996 |
#else |
| 5997 |
return PERL_constant_NOTDEF; |
| 5998 |
#endif |
| 5999 |
} |
| 6000 |
break; |
| 6001 |
case 'Y': |
| 6002 |
if (memEQ(name, "DB_PRIORITY_VERY_LOW", 20)) { |
| 6003 |
/* ^ */ |
| 6004 |
#if (DB_VERSION_MAJOR > 4) || \ |
| 6005 |
(DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR > 1) || \ |
| 6006 |
(DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR == 1 && \ |
| 6007 |
DB_VERSION_PATCH >= 24) |
| 6008 |
*iv_return = DB_PRIORITY_VERY_LOW; |
| 6009 |
return PERL_constant_ISIV; |
| 6010 |
#else |
| 6011 |
return PERL_constant_NOTDEF; |
| 6012 |
#endif |
| 6013 |
} |
| 6014 |
break; |
| 6015 |
case '_': |
| 6016 |
if (memEQ(name, "DB_TXN_BACKWARD_ROLL", 20)) { |
| 6017 |
/* ^ */ |
| 6018 |
#if (DB_VERSION_MAJOR > 3) || \ |
| 6019 |
(DB_VERSION_MAJOR == 3 && DB_VERSION_MINOR > 1) || \ |
| 6020 |
(DB_VERSION_MAJOR == 3 && DB_VERSION_MINOR == 1 && \ |
| 6021 |
DB_VERSION_PATCH >= 14) |
| 6022 |
*iv_return = DB_TXN_BACKWARD_ROLL; |
| 6023 |
return PERL_constant_ISIV; |
| 6024 |
#else |
| 6025 |
return PERL_constant_NOTDEF; |
| 6026 |
#endif |
| 6027 |
} |
| 6028 |
break; |
| 6029 |
} |
| 6030 |
return PERL_constant_NOTFOUND; |
| 6031 |
} |
| 6032 |
|
| 6033 |
static int |
| 6034 |
constant_21 (pTHX_ const char *name, IV *iv_return) { |
| 6035 |
/* When generated this function returned values for the list of names given |
| 6036 |
here. However, subsequent manual editing may have added or removed some. |
| 6037 |
DB_ENV_LOG_AUTOREMOVE DB_EVENT_WRITE_FAILED DB_LOCK_UPGRADE_WRITE |
| 6038 |
DB_LOG_VERIFY_FORWARD DB_LOG_VERIFY_PARTIAL DB_LOG_VERIFY_VERBOSE |
| 6039 |
DB_LOG_VERIFY_WARNING DB_MUTEX_LOGICAL_LOCK DB_MUTEX_PROCESS_ONLY |
| 6040 |
DB_PRIORITY_UNCHANGED DB_PRIORITY_VERY_HIGH DB_REPMGR_ACKS_QUORUM |
| 6041 |
DB_REP_ELECTION_RETRY DB_REP_HEARTBEAT_SEND */ |
| 6042 |
/* Offset 17 gives the best switch position. */ |
| 6043 |
switch (name[17]) { |
| 6044 |
case 'B': |
| 6045 |
if (memEQ(name, "DB_LOG_VERIFY_VERBOSE", 21)) { |
| 6046 |
/* ^ */ |
| 6047 |
#ifdef DB_LOG_VERIFY_VERBOSE |
| 6048 |
*iv_return = DB_LOG_VERIFY_VERBOSE; |
| 6049 |
return PERL_constant_ISIV; |
| 6050 |
#else |
| 6051 |
return PERL_constant_NOTDEF; |
| 6052 |
#endif |
| 6053 |
} |
| 6054 |
break; |
| 6055 |
case 'E': |
| 6056 |
if (memEQ(name, "DB_REP_ELECTION_RETRY", 21)) { |
| 6057 |
/* ^ */ |
| 6058 |
#ifdef DB_REP_ELECTION_RETRY |
| 6059 |
*iv_return = DB_REP_ELECTION_RETRY; |
| 6060 |
return PERL_constant_ISIV; |
| 6061 |
#else |
| 6062 |
return PERL_constant_NOTDEF; |
| 6063 |
#endif |
| 6064 |
} |
| 6065 |
break; |
| 6066 |
case 'H': |
| 6067 |
if (memEQ(name, "DB_PRIORITY_VERY_HIGH", 21)) { |
| 6068 |
/* ^ */ |
| 6069 |
#if (DB_VERSION_MAJOR > 4) || \ |
| 6070 |
(DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR > 1) || \ |
| 6071 |
(DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR == 1 && \ |
| 6072 |
DB_VERSION_PATCH >= 24) |
| 6073 |
*iv_return = DB_PRIORITY_VERY_HIGH; |
| 6074 |
return PERL_constant_ISIV; |
| 6075 |
#else |
| 6076 |
return PERL_constant_NOTDEF; |
| 6077 |
#endif |
| 6078 |
} |
| 6079 |
break; |
| 6080 |
case 'I': |
| 6081 |
if (memEQ(name, "DB_EVENT_WRITE_FAILED", 21)) { |
| 6082 |
/* ^ */ |
| 6083 |
#ifdef DB_EVENT_WRITE_FAILED |
| 6084 |
*iv_return = DB_EVENT_WRITE_FAILED; |
| 6085 |
return PERL_constant_ISIV; |
| 6086 |
#else |
| 6087 |
return PERL_constant_NOTDEF; |
| 6088 |
#endif |
| 6089 |
} |
| 6090 |
break; |
| 6091 |
case 'L': |
| 6092 |
if (memEQ(name, "DB_MUTEX_LOGICAL_LOCK", 21)) { |
| 6093 |
/* ^ */ |
| 6094 |
#ifdef DB_MUTEX_LOGICAL_LOCK |
| 6095 |
*iv_return = DB_MUTEX_LOGICAL_LOCK; |
| 6096 |
return PERL_constant_ISIV; |
| 6097 |
#else |
| 6098 |
return PERL_constant_NOTDEF; |
| 6099 |
#endif |
| 6100 |
} |
| 6101 |
break; |
| 6102 |
case 'M': |
| 6103 |
if (memEQ(name, "DB_ENV_LOG_AUTOREMOVE", 21)) { |
| 6104 |
/* ^ */ |
| 6105 |
#ifdef DB_ENV_LOG_AUTOREMOVE |
| 6106 |
*iv_return = DB_ENV_LOG_AUTOREMOVE; |
| 6107 |
return PERL_constant_ISIV; |
| 6108 |
#else |
| 6109 |
return PERL_constant_NOTDEF; |
| 6110 |
#endif |
| 6111 |
} |
| 6112 |
break; |
| 6113 |
case 'N': |
| 6114 |
if (memEQ(name, "DB_LOG_VERIFY_WARNING", 21)) { |
| 6115 |
/* ^ */ |
| 6116 |
#ifdef DB_LOG_VERIFY_WARNING |
| 6117 |
*iv_return = DB_LOG_VERIFY_WARNING; |
| 6118 |
return PERL_constant_ISIV; |
| 6119 |
#else |
| 6120 |
return PERL_constant_NOTDEF; |
| 6121 |
#endif |
| 6122 |
} |
| 6123 |
if (memEQ(name, "DB_PRIORITY_UNCHANGED", 21)) { |
| 6124 |
/* ^ */ |
| 6125 |
#if (DB_VERSION_MAJOR > 4) || \ |
| 6126 |
(DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR > 6) || \ |
| 6127 |
(DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR == 6 && \ |
| 6128 |
DB_VERSION_PATCH >= 18) |
| 6129 |
*iv_return = DB_PRIORITY_UNCHANGED; |
| 6130 |
return PERL_constant_ISIV; |
| 6131 |
#else |
| 6132 |
return PERL_constant_NOTDEF; |
| 6133 |
#endif |
| 6134 |
} |
| 6135 |
break; |
| 6136 |
case 'O': |
| 6137 |
if (memEQ(name, "DB_MUTEX_PROCESS_ONLY", 21)) { |
| 6138 |
/* ^ */ |
| 6139 |
#ifdef DB_MUTEX_PROCESS_ONLY |
| 6140 |
*iv_return = DB_MUTEX_PROCESS_ONLY; |
| 6141 |
return PERL_constant_ISIV; |
| 6142 |
#else |
| 6143 |
return PERL_constant_NOTDEF; |
| 6144 |
#endif |
| 6145 |
} |
| 6146 |
if (memEQ(name, "DB_REPMGR_ACKS_QUORUM", 21)) { |
| 6147 |
/* ^ */ |
| 6148 |
#ifdef DB_REPMGR_ACKS_QUORUM |
| 6149 |
*iv_return = DB_REPMGR_ACKS_QUORUM; |
| 6150 |
return PERL_constant_ISIV; |
| 6151 |
#else |
| 6152 |
return PERL_constant_NOTDEF; |
| 6153 |
#endif |
| 6154 |
} |
| 6155 |
break; |
| 6156 |
case 'R': |
| 6157 |
if (memEQ(name, "DB_LOCK_UPGRADE_WRITE", 21)) { |
| 6158 |
/* ^ */ |
| 6159 |
#if (DB_VERSION_MAJOR > 4) || \ |
| 6160 |
(DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR > 0) || \ |
| 6161 |
(DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR == 0 && \ |
| 6162 |
DB_VERSION_PATCH >= 14) |
| 6163 |
*iv_return = DB_LOCK_UPGRADE_WRITE; |
| 6164 |
return PERL_constant_ISIV; |
| 6165 |
#else |
| 6166 |
return PERL_constant_NOTDEF; |
| 6167 |
#endif |
| 6168 |
} |
| 6169 |
break; |
| 6170 |
case 'S': |
| 6171 |
if (memEQ(name, "DB_REP_HEARTBEAT_SEND", 21)) { |
| 6172 |
/* ^ */ |
| 6173 |
#ifdef DB_REP_HEARTBEAT_SEND |
| 6174 |
*iv_return = DB_REP_HEARTBEAT_SEND; |
| 6175 |
return PERL_constant_ISIV; |
| 6176 |
#else |
| 6177 |
return PERL_constant_NOTDEF; |
| 6178 |
#endif |
| 6179 |
} |
| 6180 |
break; |
| 6181 |
case 'T': |
| 6182 |
if (memEQ(name, "DB_LOG_VERIFY_PARTIAL", 21)) { |
| 6183 |
/* ^ */ |
| 6184 |
#ifdef DB_LOG_VERIFY_PARTIAL |
| 6185 |
*iv_return = DB_LOG_VERIFY_PARTIAL; |
| 6186 |
return PERL_constant_ISIV; |
| 6187 |
#else |
| 6188 |
return PERL_constant_NOTDEF; |
| 6189 |
#endif |
| 6190 |
} |
| 6191 |
break; |
| 6192 |
case 'W': |
| 6193 |
if (memEQ(name, "DB_LOG_VERIFY_FORWARD", 21)) { |
| 6194 |
/* ^ */ |
| 6195 |
#ifdef DB_LOG_VERIFY_FORWARD |
| 6196 |
*iv_return = DB_LOG_VERIFY_FORWARD; |
| 6197 |
return PERL_constant_ISIV; |
| 6198 |
#else |
| 6199 |
return PERL_constant_NOTDEF; |
| 6200 |
#endif |
| 6201 |
} |
| 6202 |
break; |
| 6203 |
} |
| 6204 |
return PERL_constant_NOTFOUND; |
| 6205 |
} |
| 6206 |
|
| 6207 |
static int |
| 6208 |
constant_22 (pTHX_ const char *name, IV *iv_return, const char **pv_return) { |
| 6209 |
/* When generated this function returned values for the list of names given |
| 6210 |
here. However, subsequent manual editing may have added or removed some. |
| 6211 |
DB_ASSOC_IMMUTABLE_KEY DB_BACKUP_WRITE_DIRECT DB_ENV_RPCCLIENT_GIVEN |
| 6212 |
DB_ENV_TIME_NOTGRANTED DB_ENV_TXN_NOT_DURABLE DB_EVENT_NO_SUCH_EVENT |
| 6213 |
DB_EVENT_REP_DUPMASTER DB_EVENT_REP_INIT_DONE DB_EVENT_REP_NEWMASTER |
| 6214 |
DB_LOGVERSION_LATCHING DB_REPMGR_DISCONNECTED DB_REP_CONF_NOAUTOINIT |
| 6215 |
DB_TXN_LOCK_OPTIMISTIC DB_VERSION_FULL_STRING */ |
| 6216 |
/* Offset 15 gives the best switch position. */ |
| 6217 |
switch (name[15]) { |
| 6218 |
case 'A': |
| 6219 |
if (memEQ(name, "DB_LOGVERSION_LATCHING", 22)) { |
| 6220 |
/* ^ */ |
| 6221 |
#ifdef DB_LOGVERSION_LATCHING |
| 6222 |
*iv_return = DB_LOGVERSION_LATCHING; |
| 6223 |
return PERL_constant_ISIV; |
| 6224 |
#else |
| 6225 |
return PERL_constant_NOTDEF; |
| 6226 |
#endif |
| 6227 |
} |
| 6228 |
break; |
| 6229 |
case 'B': |
| 6230 |
if (memEQ(name, "DB_ASSOC_IMMUTABLE_KEY", 22)) { |
| 6231 |
/* ^ */ |
| 6232 |
#ifdef DB_ASSOC_IMMUTABLE_KEY |
| 6233 |
*iv_return = DB_ASSOC_IMMUTABLE_KEY; |
| 6234 |
return PERL_constant_ISIV; |
| 6235 |
#else |
| 6236 |
return PERL_constant_NOTDEF; |
| 6237 |
#endif |
| 6238 |
} |
| 6239 |
break; |
| 6240 |
case 'D': |
| 6241 |
if (memEQ(name, "DB_ENV_TXN_NOT_DURABLE", 22)) { |
| 6242 |
/* ^ */ |
| 6243 |
#ifdef DB_ENV_TXN_NOT_DURABLE |
| 6244 |
*iv_return = DB_ENV_TXN_NOT_DURABLE; |
| 6245 |
return PERL_constant_ISIV; |
| 6246 |
#else |
| 6247 |
return PERL_constant_NOTDEF; |
| 6248 |
#endif |
| 6249 |
} |
| 6250 |
break; |
| 6251 |
case 'G': |
| 6252 |
if (memEQ(name, "DB_ENV_TIME_NOTGRANTED", 22)) { |
| 6253 |
/* ^ */ |
| 6254 |
#ifdef DB_ENV_TIME_NOTGRANTED |
| 6255 |
*iv_return = DB_ENV_TIME_NOTGRANTED; |
| 6256 |
return PERL_constant_ISIV; |
| 6257 |
#else |
| 6258 |
return PERL_constant_NOTDEF; |
| 6259 |
#endif |
| 6260 |
} |
| 6261 |
break; |
| 6262 |
case 'H': |
| 6263 |
if (memEQ(name, "DB_EVENT_NO_SUCH_EVENT", 22)) { |
| 6264 |
/* ^ */ |
| 6265 |
#ifdef DB_EVENT_NO_SUCH_EVENT |
| 6266 |
*iv_return = DB_EVENT_NO_SUCH_EVENT; |
| 6267 |
return PERL_constant_ISIV; |
| 6268 |
#else |
| 6269 |
return PERL_constant_NOTDEF; |
| 6270 |
#endif |
| 6271 |
} |
| 6272 |
break; |
| 6273 |
case 'I': |
| 6274 |
if (memEQ(name, "DB_EVENT_REP_INIT_DONE", 22)) { |
| 6275 |
/* ^ */ |
| 6276 |
#ifdef DB_EVENT_REP_INIT_DONE |
| 6277 |
*iv_return = DB_EVENT_REP_INIT_DONE; |
| 6278 |
return PERL_constant_ISIV; |
| 6279 |
#else |
| 6280 |
return PERL_constant_NOTDEF; |
| 6281 |
#endif |
| 6282 |
} |
| 6283 |
if (memEQ(name, "DB_TXN_LOCK_OPTIMISTIC", 22)) { |
| 6284 |
/* ^ */ |
| 6285 |
#ifdef DB_TXN_LOCK_OPTIMISTIC |
| 6286 |
*iv_return = DB_TXN_LOCK_OPTIMISTIC; |
| 6287 |
return PERL_constant_ISIV; |
| 6288 |
#else |
| 6289 |
return PERL_constant_NOTDEF; |
| 6290 |
#endif |
| 6291 |
} |
| 6292 |
break; |
| 6293 |
case 'N': |
| 6294 |
if (memEQ(name, "DB_REPMGR_DISCONNECTED", 22)) { |
| 6295 |
/* ^ */ |
| 6296 |
#ifdef DB_REPMGR_DISCONNECTED |
| 6297 |
*iv_return = DB_REPMGR_DISCONNECTED; |
| 6298 |
return PERL_constant_ISIV; |
| 6299 |
#else |
| 6300 |
return PERL_constant_NOTDEF; |
| 6301 |
#endif |
| 6302 |
} |
| 6303 |
break; |
| 6304 |
case 'P': |
| 6305 |
if (memEQ(name, "DB_EVENT_REP_DUPMASTER", 22)) { |
| 6306 |
/* ^ */ |
| 6307 |
#ifdef DB_EVENT_REP_DUPMASTER |
| 6308 |
*iv_return = DB_EVENT_REP_DUPMASTER; |
| 6309 |
return PERL_constant_ISIV; |
| 6310 |
#else |
| 6311 |
return PERL_constant_NOTDEF; |
| 6312 |
#endif |
| 6313 |
} |
| 6314 |
break; |
| 6315 |
case 'T': |
| 6316 |
if (memEQ(name, "DB_ENV_RPCCLIENT_GIVEN", 22)) { |
| 6317 |
/* ^ */ |
| 6318 |
#ifdef DB_ENV_RPCCLIENT_GIVEN |
| 6319 |
*iv_return = DB_ENV_RPCCLIENT_GIVEN; |
| 6320 |
return PERL_constant_ISIV; |
| 6321 |
#else |
| 6322 |
return PERL_constant_NOTDEF; |
| 6323 |
#endif |
| 6324 |
} |
| 6325 |
break; |
| 6326 |
case 'U': |
| 6327 |
if (memEQ(name, "DB_REP_CONF_NOAUTOINIT", 22)) { |
| 6328 |
/* ^ */ |
| 6329 |
#ifdef DB_REP_CONF_NOAUTOINIT |
| 6330 |
*iv_return = DB_REP_CONF_NOAUTOINIT; |
| 6331 |
return PERL_constant_ISIV; |
| 6332 |
#else |
| 6333 |
return PERL_constant_NOTDEF; |
| 6334 |
#endif |
| 6335 |
} |
| 6336 |
break; |
| 6337 |
case 'W': |
| 6338 |
if (memEQ(name, "DB_EVENT_REP_NEWMASTER", 22)) { |
| 6339 |
/* ^ */ |
| 6340 |
#ifdef DB_EVENT_REP_NEWMASTER |
| 6341 |
*iv_return = DB_EVENT_REP_NEWMASTER; |
| 6342 |
return PERL_constant_ISIV; |
| 6343 |
#else |
| 6344 |
return PERL_constant_NOTDEF; |
| 6345 |
#endif |
| 6346 |
} |
| 6347 |
break; |
| 6348 |
case '_': |
| 6349 |
if (memEQ(name, "DB_BACKUP_WRITE_DIRECT", 22)) { |
| 6350 |
/* ^ */ |
| 6351 |
#if (DB_VERSION_MAJOR > 5) || \ |
| 6352 |
(DB_VERSION_MAJOR == 5 && DB_VERSION_MINOR > 3) || \ |
| 6353 |
(DB_VERSION_MAJOR == 5 && DB_VERSION_MINOR == 3 && \ |
| 6354 |
DB_VERSION_PATCH >= 5) |
| 6355 |
*iv_return = DB_BACKUP_WRITE_DIRECT; |
| 6356 |
return PERL_constant_ISIV; |
| 6357 |
#else |
| 6358 |
return PERL_constant_NOTDEF; |
| 6359 |
#endif |
| 6360 |
} |
| 6361 |
if (memEQ(name, "DB_VERSION_FULL_STRING", 22)) { |
| 6362 |
/* ^ */ |
| 6363 |
#ifdef DB_VERSION_FULL_STRING |
| 6364 |
*pv_return = DB_VERSION_FULL_STRING; |
| 6365 |
return PERL_constant_ISPV; |
| 6366 |
#else |
| 6367 |
return PERL_constant_NOTDEF; |
| 6368 |
#endif |
| 6369 |
} |
| 6370 |
break; |
| 6371 |
} |
| 6372 |
return PERL_constant_NOTFOUND; |
| 6373 |
} |
| 6374 |
|
| 6375 |
static int |
| 6376 |
constant_23 (pTHX_ const char *name, IV *iv_return) { |
| 6377 |
/* When generated this function returned values for the list of names given |
| 6378 |
here. However, subsequent manual editing may have added or removed some. |
| 6379 |
DB_ENV_DATABASE_LOCKING DB_ENV_TXN_WRITE_NOSYNC DB_EVENT_REP_SITE_ADDED |
| 6380 |
DB_REPMGR_ACKS_ONE_PEER DB_REPMGR_NEED_RESPONSE DB_REP_CHECKPOINT_DELAY |
| 6381 |
DB_REP_CONF_DELAYCLIENT DB_REP_CONNECTION_RETRY DB_REP_DEFAULT_PRIORITY |
| 6382 |
DB_REP_ELECTION_TIMEOUT DB_VERB_REPMGR_CONNFAIL */ |
| 6383 |
/* Offset 12 gives the best switch position. */ |
| 6384 |
switch (name[12]) { |
| 6385 |
case 'A': |
| 6386 |
if (memEQ(name, "DB_ENV_DATABASE_LOCKING", 23)) { |
| 6387 |
/* ^ */ |
| 6388 |
#ifdef DB_ENV_DATABASE_LOCKING |
| 6389 |
*iv_return = DB_ENV_DATABASE_LOCKING; |
| 6390 |
return PERL_constant_ISIV; |
| 6391 |
#else |
| 6392 |
return PERL_constant_NOTDEF; |
| 6393 |
#endif |
| 6394 |
} |
| 6395 |
break; |
| 6396 |
case 'C': |
| 6397 |
if (memEQ(name, "DB_REP_CONNECTION_RETRY", 23)) { |
| 6398 |
/* ^ */ |
| 6399 |
#ifdef DB_REP_CONNECTION_RETRY |
| 6400 |
*iv_return = DB_REP_CONNECTION_RETRY; |
| 6401 |
return PERL_constant_ISIV; |
| 6402 |
#else |
| 6403 |
return PERL_constant_NOTDEF; |
| 6404 |
#endif |
| 6405 |
} |
| 6406 |
break; |
| 6407 |
case 'D': |
| 6408 |
if (memEQ(name, "DB_REP_CONF_DELAYCLIENT", 23)) { |
| 6409 |
/* ^ */ |
| 6410 |
#ifdef DB_REP_CONF_DELAYCLIENT |
| 6411 |
*iv_return = DB_REP_CONF_DELAYCLIENT; |
| 6412 |
return PERL_constant_ISIV; |
| 6413 |
#else |
| 6414 |
return PERL_constant_NOTDEF; |
| 6415 |
#endif |
| 6416 |
} |
| 6417 |
break; |
| 6418 |
case 'E': |
| 6419 |
if (memEQ(name, "DB_REPMGR_NEED_RESPONSE", 23)) { |
| 6420 |
/* ^ */ |
| 6421 |
#ifdef DB_REPMGR_NEED_RESPONSE |
| 6422 |
*iv_return = DB_REPMGR_NEED_RESPONSE; |
| 6423 |
return PERL_constant_ISIV; |
| 6424 |
#else |
| 6425 |
return PERL_constant_NOTDEF; |
| 6426 |
#endif |
| 6427 |
} |
| 6428 |
break; |
| 6429 |
case 'G': |
| 6430 |
if (memEQ(name, "DB_VERB_REPMGR_CONNFAIL", 23)) { |
| 6431 |
/* ^ */ |
| 6432 |
#ifdef DB_VERB_REPMGR_CONNFAIL |
| 6433 |
*iv_return = DB_VERB_REPMGR_CONNFAIL; |
| 6434 |
return PERL_constant_ISIV; |
| 6435 |
#else |
| 6436 |
return PERL_constant_NOTDEF; |
| 6437 |
#endif |
| 6438 |
} |
| 6439 |
break; |
| 6440 |
case 'I': |
| 6441 |
if (memEQ(name, "DB_REP_ELECTION_TIMEOUT", 23)) { |
| 6442 |
/* ^ */ |
| 6443 |
#ifdef DB_REP_ELECTION_TIMEOUT |
| 6444 |
*iv_return = DB_REP_ELECTION_TIMEOUT; |
| 6445 |
return PERL_constant_ISIV; |
| 6446 |
#else |
| 6447 |
return PERL_constant_NOTDEF; |
| 6448 |
#endif |
| 6449 |
} |
| 6450 |
break; |
| 6451 |
case 'K': |
| 6452 |
if (memEQ(name, "DB_REPMGR_ACKS_ONE_PEER", 23)) { |
| 6453 |
/* ^ */ |
| 6454 |
#ifdef DB_REPMGR_ACKS_ONE_PEER |
| 6455 |
*iv_return = DB_REPMGR_ACKS_ONE_PEER; |
| 6456 |
return PERL_constant_ISIV; |
| 6457 |
#else |
| 6458 |
return PERL_constant_NOTDEF; |
| 6459 |
#endif |
| 6460 |
} |
| 6461 |
break; |
| 6462 |
case 'L': |
| 6463 |
if (memEQ(name, "DB_REP_DEFAULT_PRIORITY", 23)) { |
| 6464 |
/* ^ */ |
| 6465 |
#ifdef DB_REP_DEFAULT_PRIORITY |
| 6466 |
*iv_return = DB_REP_DEFAULT_PRIORITY; |
| 6467 |
return PERL_constant_ISIV; |
| 6468 |
#else |
| 6469 |
return PERL_constant_NOTDEF; |
| 6470 |
#endif |
| 6471 |
} |
| 6472 |
break; |
| 6473 |
case 'P': |
| 6474 |
if (memEQ(name, "DB_REP_CHECKPOINT_DELAY", 23)) { |
| 6475 |
/* ^ */ |
| 6476 |
#ifdef DB_REP_CHECKPOINT_DELAY |
| 6477 |
*iv_return = DB_REP_CHECKPOINT_DELAY; |
| 6478 |
return PERL_constant_ISIV; |
| 6479 |
#else |
| 6480 |
return PERL_constant_NOTDEF; |
| 6481 |
#endif |
| 6482 |
} |
| 6483 |
break; |
| 6484 |
case 'R': |
| 6485 |
if (memEQ(name, "DB_ENV_TXN_WRITE_NOSYNC", 23)) { |
| 6486 |
/* ^ */ |
| 6487 |
#ifdef DB_ENV_TXN_WRITE_NOSYNC |
| 6488 |
*iv_return = DB_ENV_TXN_WRITE_NOSYNC; |
| 6489 |
return PERL_constant_ISIV; |
| 6490 |
#else |
| 6491 |
return PERL_constant_NOTDEF; |
| 6492 |
#endif |
| 6493 |
} |
| 6494 |
break; |
| 6495 |
case '_': |
| 6496 |
if (memEQ(name, "DB_EVENT_REP_SITE_ADDED", 23)) { |
| 6497 |
/* ^ */ |
| 6498 |
#ifdef DB_EVENT_REP_SITE_ADDED |
| 6499 |
*iv_return = DB_EVENT_REP_SITE_ADDED; |
| 6500 |
return PERL_constant_ISIV; |
| 6501 |
#else |
| 6502 |
return PERL_constant_NOTDEF; |
| 6503 |
#endif |
| 6504 |
} |
| 6505 |
break; |
| 6506 |
} |
| 6507 |
return PERL_constant_NOTFOUND; |
| 6508 |
} |
| 6509 |
|
| 6510 |
static int |
| 6511 |
constant_24 (pTHX_ const char *name, IV *iv_return) { |
| 6512 |
/* When generated this function returned values for the list of names given |
| 6513 |
here. However, subsequent manual editing may have added or removed some. |
| 6514 |
DB_EVENT_REP_PERM_FAILED DB_EVENT_REP_STARTUPDONE DB_HOTBACKUP_IN_PROGRESS |
| 6515 |
DB_INTERNAL_TEMPORARY_DB DB_REPMGR_ACKS_ALL_PEERS DB_REPMGR_CONF_ELECTIONS |
| 6516 |
DB_REP_CONF_AUTOROLLBACK DB_REP_HEARTBEAT_MONITOR */ |
| 6517 |
/* Offset 22 gives the best switch position. */ |
| 6518 |
switch (name[22]) { |
| 6519 |
case 'C': |
| 6520 |
if (memEQ(name, "DB_REP_CONF_AUTOROLLBACK", 24)) { |
| 6521 |
/* ^ */ |
| 6522 |
#ifdef DB_REP_CONF_AUTOROLLBACK |
| 6523 |
*iv_return = DB_REP_CONF_AUTOROLLBACK; |
| 6524 |
return PERL_constant_ISIV; |
| 6525 |
#else |
| 6526 |
return PERL_constant_NOTDEF; |
| 6527 |
#endif |
| 6528 |
} |
| 6529 |
break; |
| 6530 |
case 'D': |
| 6531 |
if (memEQ(name, "DB_INTERNAL_TEMPORARY_DB", 24)) { |
| 6532 |
/* ^ */ |
| 6533 |
#ifdef DB_INTERNAL_TEMPORARY_DB |
| 6534 |
*iv_return = DB_INTERNAL_TEMPORARY_DB; |
| 6535 |
return PERL_constant_ISIV; |
| 6536 |
#else |
| 6537 |
return PERL_constant_NOTDEF; |
| 6538 |
#endif |
| 6539 |
} |
| 6540 |
break; |
| 6541 |
case 'E': |
| 6542 |
if (memEQ(name, "DB_EVENT_REP_PERM_FAILED", 24)) { |
| 6543 |
/* ^ */ |
| 6544 |
#ifdef DB_EVENT_REP_PERM_FAILED |
| 6545 |
*iv_return = DB_EVENT_REP_PERM_FAILED; |
| 6546 |
return PERL_constant_ISIV; |
| 6547 |
#else |
| 6548 |
return PERL_constant_NOTDEF; |
| 6549 |
#endif |
| 6550 |
} |
| 6551 |
break; |
| 6552 |
case 'N': |
| 6553 |
if (memEQ(name, "DB_EVENT_REP_STARTUPDONE", 24)) { |
| 6554 |
/* ^ */ |
| 6555 |
#ifdef DB_EVENT_REP_STARTUPDONE |
| 6556 |
*iv_return = DB_EVENT_REP_STARTUPDONE; |
| 6557 |
return PERL_constant_ISIV; |
| 6558 |
#else |
| 6559 |
return PERL_constant_NOTDEF; |
| 6560 |
#endif |
| 6561 |
} |
| 6562 |
if (memEQ(name, "DB_REPMGR_CONF_ELECTIONS", 24)) { |
| 6563 |
/* ^ */ |
| 6564 |
#ifdef DB_REPMGR_CONF_ELECTIONS |
| 6565 |
*iv_return = DB_REPMGR_CONF_ELECTIONS; |
| 6566 |
return PERL_constant_ISIV; |
| 6567 |
#else |
| 6568 |
return PERL_constant_NOTDEF; |
| 6569 |
#endif |
| 6570 |
} |
| 6571 |
break; |
| 6572 |
case 'O': |
| 6573 |
if (memEQ(name, "DB_REP_HEARTBEAT_MONITOR", 24)) { |
| 6574 |
/* ^ */ |
| 6575 |
#ifdef DB_REP_HEARTBEAT_MONITOR |
| 6576 |
*iv_return = DB_REP_HEARTBEAT_MONITOR; |
| 6577 |
return PERL_constant_ISIV; |
| 6578 |
#else |
| 6579 |
return PERL_constant_NOTDEF; |
| 6580 |
#endif |
| 6581 |
} |
| 6582 |
break; |
| 6583 |
case 'R': |
| 6584 |
if (memEQ(name, "DB_REPMGR_ACKS_ALL_PEERS", 24)) { |
| 6585 |
/* ^ */ |
| 6586 |
#ifdef DB_REPMGR_ACKS_ALL_PEERS |
| 6587 |
*iv_return = DB_REPMGR_ACKS_ALL_PEERS; |
| 6588 |
return PERL_constant_ISIV; |
| 6589 |
#else |
| 6590 |
return PERL_constant_NOTDEF; |
| 6591 |
#endif |
| 6592 |
} |
| 6593 |
break; |
| 6594 |
case 'S': |
| 6595 |
if (memEQ(name, "DB_HOTBACKUP_IN_PROGRESS", 24)) { |
| 6596 |
/* ^ */ |
| 6597 |
#ifdef DB_HOTBACKUP_IN_PROGRESS |
| 6598 |
*iv_return = DB_HOTBACKUP_IN_PROGRESS; |
| 6599 |
return PERL_constant_ISIV; |
| 6600 |
#else |
| 6601 |
return PERL_constant_NOTDEF; |
| 6602 |
#endif |
| 6603 |
} |
| 6604 |
break; |
| 6605 |
} |
| 6606 |
return PERL_constant_NOTFOUND; |
| 6607 |
} |
| 6608 |
|
| 6609 |
static int |
| 6610 |
constant_25 (pTHX_ const char *name, IV *iv_return) { |
| 6611 |
/* When generated this function returned values for the list of names given |
| 6612 |
here. However, subsequent manual editing may have added or removed some. |
| 6613 |
DB_EVENT_REP_CONNECT_ESTD DB_EVENT_REP_JOIN_FAILURE |
| 6614 |
DB_EVENT_REP_SITE_REMOVED DB_INTERNAL_PERSISTENT_DB */ |
| 6615 |
/* Offset 15 gives the best switch position. */ |
| 6616 |
switch (name[15]) { |
| 6617 |
case 'I': |
| 6618 |
if (memEQ(name, "DB_EVENT_REP_JOIN_FAILURE", 25)) { |
| 6619 |
/* ^ */ |
| 6620 |
#ifdef DB_EVENT_REP_JOIN_FAILURE |
| 6621 |
*iv_return = DB_EVENT_REP_JOIN_FAILURE; |
| 6622 |
return PERL_constant_ISIV; |
| 6623 |
#else |
| 6624 |
return PERL_constant_NOTDEF; |
| 6625 |
#endif |
| 6626 |
} |
| 6627 |
break; |
| 6628 |
case 'N': |
| 6629 |
if (memEQ(name, "DB_EVENT_REP_CONNECT_ESTD", 25)) { |
| 6630 |
/* ^ */ |
| 6631 |
#ifdef DB_EVENT_REP_CONNECT_ESTD |
| 6632 |
*iv_return = DB_EVENT_REP_CONNECT_ESTD; |
| 6633 |
return PERL_constant_ISIV; |
| 6634 |
#else |
| 6635 |
return PERL_constant_NOTDEF; |
| 6636 |
#endif |
| 6637 |
} |
| 6638 |
break; |
| 6639 |
case 'S': |
| 6640 |
if (memEQ(name, "DB_INTERNAL_PERSISTENT_DB", 25)) { |
| 6641 |
/* ^ */ |
| 6642 |
#ifdef DB_INTERNAL_PERSISTENT_DB |
| 6643 |
*iv_return = DB_INTERNAL_PERSISTENT_DB; |
| 6644 |
return PERL_constant_ISIV; |
| 6645 |
#else |
| 6646 |
return PERL_constant_NOTDEF; |
| 6647 |
#endif |
| 6648 |
} |
| 6649 |
break; |
| 6650 |
case 'T': |
| 6651 |
if (memEQ(name, "DB_EVENT_REP_SITE_REMOVED", 25)) { |
| 6652 |
/* ^ */ |
| 6653 |
#ifdef DB_EVENT_REP_SITE_REMOVED |
| 6654 |
*iv_return = DB_EVENT_REP_SITE_REMOVED; |
| 6655 |
return PERL_constant_ISIV; |
| 6656 |
#else |
| 6657 |
return PERL_constant_NOTDEF; |
| 6658 |
#endif |
| 6659 |
} |
| 6660 |
break; |
| 6661 |
} |
| 6662 |
return PERL_constant_NOTFOUND; |
| 6663 |
} |
| 6664 |
|
| 6665 |
static int |
| 6666 |
constant_27 (pTHX_ const char *name, IV *iv_return) { |
| 6667 |
/* When generated this function returned values for the list of names given |
| 6668 |
here. However, subsequent manual editing may have added or removed some. |
| 6669 |
DB_EVENT_REP_CONNECT_BROKEN DB_EVENT_REP_MASTER_FAILURE |
| 6670 |
DB_EVENT_REP_WOULD_ROLLBACK DB_REPMGR_CONF_2SITE_STRICT */ |
| 6671 |
/* Offset 16 gives the best switch position. */ |
| 6672 |
switch (name[16]) { |
| 6673 |
case 'L': |
| 6674 |
if (memEQ(name, "DB_EVENT_REP_WOULD_ROLLBACK", 27)) { |
| 6675 |
/* ^ */ |
| 6676 |
#ifdef DB_EVENT_REP_WOULD_ROLLBACK |
| 6677 |
*iv_return = DB_EVENT_REP_WOULD_ROLLBACK; |
| 6678 |
return PERL_constant_ISIV; |
| 6679 |
#else |
| 6680 |
return PERL_constant_NOTDEF; |
| 6681 |
#endif |
| 6682 |
} |
| 6683 |
break; |
| 6684 |
case 'N': |
| 6685 |
if (memEQ(name, "DB_EVENT_REP_CONNECT_BROKEN", 27)) { |
| 6686 |
/* ^ */ |
| 6687 |
#ifdef DB_EVENT_REP_CONNECT_BROKEN |
| 6688 |
*iv_return = DB_EVENT_REP_CONNECT_BROKEN; |
| 6689 |
return PERL_constant_ISIV; |
| 6690 |
#else |
| 6691 |
return PERL_constant_NOTDEF; |
| 6692 |
#endif |
| 6693 |
} |
| 6694 |
break; |
| 6695 |
case 'S': |
| 6696 |
if (memEQ(name, "DB_REPMGR_CONF_2SITE_STRICT", 27)) { |
| 6697 |
/* ^ */ |
| 6698 |
#ifdef DB_REPMGR_CONF_2SITE_STRICT |
| 6699 |
*iv_return = DB_REPMGR_CONF_2SITE_STRICT; |
| 6700 |
return PERL_constant_ISIV; |
| 6701 |
#else |
| 6702 |
return PERL_constant_NOTDEF; |
| 6703 |
#endif |
| 6704 |
} |
| 6705 |
break; |
| 6706 |
case 'T': |
| 6707 |
if (memEQ(name, "DB_EVENT_REP_MASTER_FAILURE", 27)) { |
| 6708 |
/* ^ */ |
| 6709 |
#ifdef DB_EVENT_REP_MASTER_FAILURE |
| 6710 |
*iv_return = DB_EVENT_REP_MASTER_FAILURE; |
| 6711 |
return PERL_constant_ISIV; |
| 6712 |
#else |
| 6713 |
return PERL_constant_NOTDEF; |
| 6714 |
#endif |
| 6715 |
} |
| 6716 |
break; |
| 6717 |
} |
| 6718 |
return PERL_constant_NOTFOUND; |
| 6719 |
} |
| 6720 |
|
| 6721 |
static int |
| 6722 |
constant_28 (pTHX_ const char *name, IV *iv_return) { |
| 6723 |
/* When generated this function returned values for the list of names given |
| 6724 |
here. However, subsequent manual editing may have added or removed some. |
| 6725 |
DB_EVENT_REP_ELECTION_FAILED DB_REPMGR_ACKS_ALL_AVAILABLE |
| 6726 |
DB_REP_FULL_ELECTION_TIMEOUT */ |
| 6727 |
/* Offset 15 gives the best switch position. */ |
| 6728 |
switch (name[15]) { |
| 6729 |
case 'A': |
| 6730 |
if (memEQ(name, "DB_REPMGR_ACKS_ALL_AVAILABLE", 28)) { |
| 6731 |
/* ^ */ |
| 6732 |
#ifdef DB_REPMGR_ACKS_ALL_AVAILABLE |
| 6733 |
*iv_return = DB_REPMGR_ACKS_ALL_AVAILABLE; |
| 6734 |
return PERL_constant_ISIV; |
| 6735 |
#else |
| 6736 |
return PERL_constant_NOTDEF; |
| 6737 |
#endif |
| 6738 |
} |
| 6739 |
break; |
| 6740 |
case 'C': |
| 6741 |
if (memEQ(name, "DB_REP_FULL_ELECTION_TIMEOUT", 28)) { |
| 6742 |
/* ^ */ |
| 6743 |
#ifdef DB_REP_FULL_ELECTION_TIMEOUT |
| 6744 |
*iv_return = DB_REP_FULL_ELECTION_TIMEOUT; |
| 6745 |
return PERL_constant_ISIV; |
| 6746 |
#else |
| 6747 |
return PERL_constant_NOTDEF; |
| 6748 |
#endif |
| 6749 |
} |
| 6750 |
break; |
| 6751 |
case 'E': |
| 6752 |
if (memEQ(name, "DB_EVENT_REP_ELECTION_FAILED", 28)) { |
| 6753 |
/* ^ */ |
| 6754 |
#ifdef DB_EVENT_REP_ELECTION_FAILED |
| 6755 |
*iv_return = DB_EVENT_REP_ELECTION_FAILED; |
| 6756 |
return PERL_constant_ISIV; |
| 6757 |
#else |
| 6758 |
return PERL_constant_NOTDEF; |
| 6759 |
#endif |
| 6760 |
} |
| 6761 |
break; |
| 6762 |
} |
| 6763 |
return PERL_constant_NOTFOUND; |
| 6764 |
} |
| 6765 |
|
| 6766 |
static int |
| 6767 |
constant (pTHX_ const char *name, STRLEN len, IV *iv_return, const char **pv_return) { |
| 6768 |
/* Initially switch on the length of the name. */ |
| 6769 |
/* When generated this function returned values for the list of names given |
| 6770 |
in this section of perl code. Rather than manually editing these functions |
| 6771 |
to add or remove constants, which would result in this comment and section |
| 6772 |
of code becoming inaccurate, we recommend that you edit this section of |
| 6773 |
code, and use it to regenerate a new set of constant functions which you |
| 6774 |
then use to replace the originals. |
| 6775 |
|
| 6776 |
Regenerate these constant functions by feeding this entire source file to |
| 6777 |
perl -x |
| 6778 |
|
| 6779 |
#!/linux-shared/base/perl/install/bin/perl -w |
| 6780 |
use ExtUtils::Constant qw (constant_types C_constant XS_constant); |
| 6781 |
|
| 6782 |
my $types = {map {($_, 1)} qw(IV PV)}; |
| 6783 |
my @names = (qw(DB2_AM_EXCL DB2_AM_INTEXCL DB2_AM_NOWAIT DB_AFTER DB_AGGRESSIVE |
| 6784 |
DB_ALREADY_ABORTED DB_APPEND DB_APPLY_LOGREG DB_APP_INIT |
| 6785 |
DB_ARCH_ABS DB_ARCH_DATA DB_ARCH_LOG DB_ARCH_REMOVE |
| 6786 |
DB_ASSOC_CREATE DB_ASSOC_IMMUTABLE_KEY DB_AUTO_COMMIT |
| 6787 |
DB_BACKUP_CLEAN DB_BACKUP_FILES DB_BACKUP_NO_LOGS |
| 6788 |
DB_BACKUP_SINGLE_DIR DB_BACKUP_UPDATE DB_BEFORE |
| 6789 |
DB_BOOTSTRAP_HELPER DB_BTREEMAGIC DB_BTREEOLDVER DB_BTREEVERSION |
| 6790 |
DB_BUFFER_SMALL DB_CACHED_COUNTS DB_CDB_ALLDB DB_CHECKPOINT |
| 6791 |
DB_CHKSUM DB_CHKSUM_SHA1 DB_CKP_INTERNAL DB_CLIENT DB_CL_WRITER |
| 6792 |
DB_COMMIT DB_COMPACT_FLAGS DB_CONSUME DB_CONSUME_WAIT DB_CREATE |
| 6793 |
DB_CURLSN DB_CURRENT DB_CURSOR_BULK DB_CURSOR_TRANSIENT |
| 6794 |
DB_CXX_NO_EXCEPTIONS DB_DATABASE_LOCK DB_DATABASE_LOCKING |
| 6795 |
DB_DEGREE_2 DB_DELETED DB_DELIMITER DB_DIRECT DB_DIRECT_DB |
| 6796 |
DB_DIRECT_LOG DB_DIRTY_READ DB_DONOTINDEX DB_DSYNC_DB |
| 6797 |
DB_DSYNC_LOG DB_DUP DB_DUPCURSOR DB_DUPSORT DB_DURABLE_UNKNOWN |
| 6798 |
DB_EID_BROADCAST DB_EID_INVALID DB_EID_MASTER DB_ENCRYPT |
| 6799 |
DB_ENCRYPT_AES DB_ENV_APPINIT DB_ENV_AUTO_COMMIT DB_ENV_CDB |
| 6800 |
DB_ENV_CDB_ALLDB DB_ENV_CREATE DB_ENV_DATABASE_LOCKING |
| 6801 |
DB_ENV_DBLOCAL DB_ENV_DIRECT_DB DB_ENV_DIRECT_LOG |
| 6802 |
DB_ENV_DSYNC_DB DB_ENV_DSYNC_LOG DB_ENV_FAILCHK DB_ENV_FATAL |
| 6803 |
DB_ENV_HOTBACKUP DB_ENV_LOCKDOWN DB_ENV_LOCKING DB_ENV_LOGGING |
| 6804 |
DB_ENV_LOG_AUTOREMOVE DB_ENV_LOG_INMEMORY DB_ENV_MULTIVERSION |
| 6805 |
DB_ENV_NOFLUSH DB_ENV_NOLOCKING DB_ENV_NOMMAP DB_ENV_NOPANIC |
| 6806 |
DB_ENV_NO_OUTPUT_SET DB_ENV_OPEN_CALLED DB_ENV_OVERWRITE |
| 6807 |
DB_ENV_PRIVATE DB_ENV_RECOVER_FATAL DB_ENV_REF_COUNTED |
| 6808 |
DB_ENV_REGION_INIT DB_ENV_REP_CLIENT DB_ENV_REP_LOGSONLY |
| 6809 |
DB_ENV_REP_MASTER DB_ENV_RPCCLIENT DB_ENV_RPCCLIENT_GIVEN |
| 6810 |
DB_ENV_STANDALONE DB_ENV_SYSTEM_MEM DB_ENV_THREAD |
| 6811 |
DB_ENV_TIME_NOTGRANTED DB_ENV_TXN DB_ENV_TXN_NOSYNC |
| 6812 |
DB_ENV_TXN_NOT_DURABLE DB_ENV_TXN_NOWAIT DB_ENV_TXN_SNAPSHOT |
| 6813 |
DB_ENV_TXN_WRITE_NOSYNC DB_ENV_USER_ALLOC DB_ENV_YIELDCPU |
| 6814 |
DB_EVENT_NOT_HANDLED DB_EVENT_NO_SUCH_EVENT DB_EVENT_PANIC |
| 6815 |
DB_EVENT_REG_ALIVE DB_EVENT_REG_PANIC DB_EVENT_REP_CLIENT |
| 6816 |
DB_EVENT_REP_CONNECT_BROKEN DB_EVENT_REP_CONNECT_ESTD |
| 6817 |
DB_EVENT_REP_CONNECT_TRY_FAILED DB_EVENT_REP_DUPMASTER |
| 6818 |
DB_EVENT_REP_ELECTED DB_EVENT_REP_ELECTION_FAILED |
| 6819 |
DB_EVENT_REP_INIT_DONE DB_EVENT_REP_JOIN_FAILURE |
| 6820 |
DB_EVENT_REP_LOCAL_SITE_REMOVED DB_EVENT_REP_MASTER |
| 6821 |
DB_EVENT_REP_MASTER_FAILURE DB_EVENT_REP_NEWMASTER |
| 6822 |
DB_EVENT_REP_PERM_FAILED DB_EVENT_REP_SITE_ADDED |
| 6823 |
DB_EVENT_REP_SITE_REMOVED DB_EVENT_REP_STARTUPDONE |
| 6824 |
DB_EVENT_REP_WOULD_ROLLBACK DB_EVENT_WRITE_FAILED DB_EXCL |
| 6825 |
DB_EXTENT DB_FAILCHK DB_FAILCHK_ISALIVE DB_FAST_STAT |
| 6826 |
DB_FCNTL_LOCKING DB_FILEOPEN DB_FILE_ID_LEN DB_FIRST DB_FIXEDLEN |
| 6827 |
DB_FLUSH DB_FORCE DB_FORCESYNC DB_FOREIGN_ABORT |
| 6828 |
DB_FOREIGN_CASCADE DB_FOREIGN_CONFLICT DB_FOREIGN_NULLIFY |
| 6829 |
DB_FREELIST_ONLY DB_FREE_SPACE DB_GETREC DB_GET_BOTH |
| 6830 |
DB_GET_BOTHC DB_GET_BOTH_LTE DB_GET_BOTH_RANGE DB_GET_RECNO |
| 6831 |
DB_GID_SIZE DB_GROUP_CREATOR DB_HANDLE_LOCK DB_HASHMAGIC |
| 6832 |
DB_HASHOLDVER DB_HASHVERSION DB_HEAPMAGIC DB_HEAPOLDVER |
| 6833 |
DB_HEAPVERSION DB_HEAP_FULL DB_HEAP_RID_SZ |
| 6834 |
DB_HOTBACKUP_IN_PROGRESS DB_IGNORE_LEASE DB_IMMUTABLE_KEY |
| 6835 |
DB_INCOMPLETE DB_INIT_CDB DB_INIT_LOCK DB_INIT_LOG DB_INIT_MPOOL |
| 6836 |
DB_INIT_MUTEX DB_INIT_REP DB_INIT_TXN DB_INORDER DB_INTERNAL_DB |
| 6837 |
DB_INTERNAL_PERSISTENT_DB DB_INTERNAL_TEMPORARY_DB |
| 6838 |
DB_JAVA_CALLBACK DB_JOINENV DB_JOIN_ITEM DB_JOIN_NOSORT |
| 6839 |
DB_KEYEMPTY DB_KEYEXIST DB_KEYFIRST DB_KEYLAST DB_LAST DB_LEGACY |
| 6840 |
DB_LOCAL_SITE DB_LOCKDOWN DB_LOCKMAGIC DB_LOCKVERSION |
| 6841 |
DB_LOCK_ABORT DB_LOCK_CHECK DB_LOCK_CONFLICT DB_LOCK_DEADLOCK |
| 6842 |
DB_LOCK_DEFAULT DB_LOCK_EXPIRE DB_LOCK_FREE_LOCKER |
| 6843 |
DB_LOCK_IGNORE_REC DB_LOCK_MAXLOCKS DB_LOCK_MAXWRITE |
| 6844 |
DB_LOCK_MINLOCKS DB_LOCK_MINWRITE DB_LOCK_NORUN DB_LOCK_NOTEXIST |
| 6845 |
DB_LOCK_NOTGRANTED DB_LOCK_NOTHELD DB_LOCK_NOWAIT DB_LOCK_OLDEST |
| 6846 |
DB_LOCK_RANDOM DB_LOCK_RECORD DB_LOCK_REMOVE DB_LOCK_RIW_N |
| 6847 |
DB_LOCK_RW_N DB_LOCK_SET_TIMEOUT DB_LOCK_SWITCH DB_LOCK_UPGRADE |
| 6848 |
DB_LOCK_YOUNGEST DB_LOGCHKSUM DB_LOGC_BUF_SIZE |
| 6849 |
DB_LOGFILEID_INVALID DB_LOGMAGIC DB_LOGOLDVER DB_LOGVERSION |
| 6850 |
DB_LOGVERSION_LATCHING DB_LOG_AUTOREMOVE DB_LOG_AUTO_REMOVE |
| 6851 |
DB_LOG_BUFFER_FULL DB_LOG_CHKPNT DB_LOG_COMMIT DB_LOG_DIRECT |
| 6852 |
DB_LOG_DISK DB_LOG_DSYNC DB_LOG_INMEMORY DB_LOG_IN_MEMORY |
| 6853 |
DB_LOG_LOCKED DB_LOG_NOCOPY DB_LOG_NOT_DURABLE DB_LOG_NO_DATA |
| 6854 |
DB_LOG_PERM DB_LOG_RESEND DB_LOG_SILENT_ERR DB_LOG_VERIFY_BAD |
| 6855 |
DB_LOG_VERIFY_CAF DB_LOG_VERIFY_DBFILE DB_LOG_VERIFY_ERR |
| 6856 |
DB_LOG_VERIFY_FORWARD DB_LOG_VERIFY_INTERR DB_LOG_VERIFY_PARTIAL |
| 6857 |
DB_LOG_VERIFY_VERBOSE DB_LOG_VERIFY_WARNING DB_LOG_WRNOSYNC |
| 6858 |
DB_LOG_ZERO DB_MAX_PAGES DB_MAX_RECORDS DB_MPOOL_CLEAN |
| 6859 |
DB_MPOOL_CREATE DB_MPOOL_DIRTY DB_MPOOL_DISCARD DB_MPOOL_EDIT |
| 6860 |
DB_MPOOL_EXTENT DB_MPOOL_FREE DB_MPOOL_LAST DB_MPOOL_NEW |
| 6861 |
DB_MPOOL_NEW_GROUP DB_MPOOL_NOFILE DB_MPOOL_NOLOCK |
| 6862 |
DB_MPOOL_PRIVATE DB_MPOOL_TRY DB_MPOOL_UNLINK DB_MULTIPLE |
| 6863 |
DB_MULTIPLE_KEY DB_MULTIVERSION DB_MUTEXDEBUG DB_MUTEXLOCKS |
| 6864 |
DB_MUTEX_ALLOCATED DB_MUTEX_LOCKED DB_MUTEX_LOGICAL_LOCK |
| 6865 |
DB_MUTEX_PROCESS_ONLY DB_MUTEX_SELF_BLOCK DB_MUTEX_SHARED |
| 6866 |
DB_MUTEX_THREAD DB_NEEDSPLIT DB_NEXT DB_NEXT_DUP DB_NEXT_NODUP |
| 6867 |
DB_NOCOPY DB_NODUPDATA DB_NOERROR DB_NOFLUSH DB_NOLOCKING |
| 6868 |
DB_NOMMAP DB_NOORDERCHK DB_NOOVERWRITE DB_NOPANIC DB_NORECURSE |
| 6869 |
DB_NOSERVER DB_NOSERVER_HOME DB_NOSERVER_ID DB_NOSYNC |
| 6870 |
DB_NOTFOUND DB_NO_AUTO_COMMIT DB_NO_CHECKPOINT DB_ODDFILESIZE |
| 6871 |
DB_OK_BTREE DB_OK_HASH DB_OK_HEAP DB_OK_QUEUE DB_OK_RECNO |
| 6872 |
DB_OLD_VERSION DB_OPEN_CALLED DB_OPFLAGS_MASK DB_ORDERCHKONLY |
| 6873 |
DB_OVERWRITE DB_OVERWRITE_DUP DB_PAD DB_PAGEYIELD DB_PAGE_LOCK |
| 6874 |
DB_PAGE_NOTFOUND DB_PANIC_ENVIRONMENT DB_PERMANENT DB_POSITION |
| 6875 |
DB_POSITIONI DB_PREV DB_PREV_DUP DB_PREV_NODUP DB_PRINTABLE |
| 6876 |
DB_PRIVATE DB_PR_HEADERS DB_PR_PAGE DB_PR_RECOVERYTEST |
| 6877 |
DB_QAMMAGIC DB_QAMOLDVER DB_QAMVERSION DB_RDONLY DB_RDWRMASTER |
| 6878 |
DB_READ_COMMITTED DB_READ_UNCOMMITTED DB_RECNUM DB_RECORDCOUNT |
| 6879 |
DB_RECORD_LOCK DB_RECOVER DB_RECOVER_FATAL DB_REGION_ANON |
| 6880 |
DB_REGION_INIT DB_REGION_MAGIC DB_REGION_NAME DB_REGISTER |
| 6881 |
DB_REGISTERED DB_RENAMEMAGIC DB_RENUMBER DB_REPFLAGS_MASK |
| 6882 |
DB_REPMGR_ACKS_ALL DB_REPMGR_ACKS_ALL_AVAILABLE |
| 6883 |
DB_REPMGR_ACKS_ALL_PEERS DB_REPMGR_ACKS_NONE DB_REPMGR_ACKS_ONE |
| 6884 |
DB_REPMGR_ACKS_ONE_PEER DB_REPMGR_ACKS_QUORUM |
| 6885 |
DB_REPMGR_CONF_2SITE_STRICT DB_REPMGR_CONF_ELECTIONS |
| 6886 |
DB_REPMGR_CONNECTED DB_REPMGR_DISCONNECTED DB_REPMGR_ISPEER |
| 6887 |
DB_REPMGR_NEED_RESPONSE DB_REPMGR_PEER DB_REP_ACK_TIMEOUT |
| 6888 |
DB_REP_ANYWHERE DB_REP_BULKOVF DB_REP_CHECKPOINT_DELAY |
| 6889 |
DB_REP_CLIENT DB_REP_CONF_AUTOINIT DB_REP_CONF_AUTOROLLBACK |
| 6890 |
DB_REP_CONF_BULK DB_REP_CONF_DELAYCLIENT DB_REP_CONF_INMEM |
| 6891 |
DB_REP_CONF_LEASE DB_REP_CONF_NOAUTOINIT DB_REP_CONF_NOWAIT |
| 6892 |
DB_REP_CONNECTION_RETRY DB_REP_CREATE DB_REP_DEFAULT_PRIORITY |
| 6893 |
DB_REP_DUPMASTER DB_REP_EGENCHG DB_REP_ELECTION |
| 6894 |
DB_REP_ELECTION_RETRY DB_REP_ELECTION_TIMEOUT |
| 6895 |
DB_REP_FULL_ELECTION DB_REP_FULL_ELECTION_TIMEOUT |
| 6896 |
DB_REP_HANDLE_DEAD DB_REP_HEARTBEAT_MONITOR |
| 6897 |
DB_REP_HEARTBEAT_SEND DB_REP_HOLDELECTION DB_REP_IGNORE |
| 6898 |
DB_REP_ISPERM DB_REP_JOIN_FAILURE DB_REP_LEASE_EXPIRED |
| 6899 |
DB_REP_LEASE_TIMEOUT DB_REP_LOCKOUT DB_REP_LOGREADY |
| 6900 |
DB_REP_LOGSONLY DB_REP_MASTER DB_REP_NEWMASTER DB_REP_NEWSITE |
| 6901 |
DB_REP_NOBUFFER DB_REP_NOTPERM DB_REP_OUTDATED DB_REP_PAGEDONE |
| 6902 |
DB_REP_PAGELOCKED DB_REP_PERMANENT DB_REP_REREQUEST |
| 6903 |
DB_REP_STARTUPDONE DB_REP_UNAVAIL DB_REP_WOULDROLLBACK |
| 6904 |
DB_REVSPLITOFF DB_RMW DB_RPCCLIENT DB_RPC_SERVERPROG |
| 6905 |
DB_RPC_SERVERVERS DB_RUNRECOVERY DB_SALVAGE DB_SA_SKIPFIRSTKEY |
| 6906 |
DB_SA_UNKNOWNKEY DB_SECONDARY_BAD DB_SEQUENCE_OLDVER |
| 6907 |
DB_SEQUENCE_VERSION DB_SEQUENTIAL DB_SEQ_DEC DB_SEQ_INC |
| 6908 |
DB_SEQ_RANGE_SET DB_SEQ_WRAP DB_SEQ_WRAPPED DB_SET |
| 6909 |
DB_SET_LOCK_TIMEOUT DB_SET_LTE DB_SET_RANGE DB_SET_RECNO |
| 6910 |
DB_SET_REG_TIMEOUT DB_SET_TXN_NOW DB_SET_TXN_TIMEOUT |
| 6911 |
DB_SHALLOW_DUP DB_SNAPSHOT DB_SPARE_FLAG DB_STAT_ALL |
| 6912 |
DB_STAT_ALLOC DB_STAT_CLEAR DB_STAT_LOCK_CONF |
| 6913 |
DB_STAT_LOCK_LOCKERS DB_STAT_LOCK_OBJECTS DB_STAT_LOCK_PARAMS |
| 6914 |
DB_STAT_MEMP_HASH DB_STAT_MEMP_NOERROR DB_STAT_NOERROR |
| 6915 |
DB_STAT_SUBSYSTEM DB_STAT_SUMMARY DB_ST_DUPOK DB_ST_DUPSET |
| 6916 |
DB_ST_DUPSORT DB_ST_IS_RECNO DB_ST_OVFL_LEAF DB_ST_RECNUM |
| 6917 |
DB_ST_RELEN DB_ST_TOPLEVEL DB_SURPRISE_KID DB_SWAPBYTES |
| 6918 |
DB_SYSTEM_MEM DB_TEMPORARY DB_TEST_ELECTINIT DB_TEST_ELECTSEND |
| 6919 |
DB_TEST_ELECTVOTE1 DB_TEST_ELECTVOTE2 DB_TEST_ELECTWAIT1 |
| 6920 |
DB_TEST_ELECTWAIT2 DB_TEST_POSTDESTROY DB_TEST_POSTLOG |
| 6921 |
DB_TEST_POSTLOGMETA DB_TEST_POSTOPEN DB_TEST_POSTRENAME |
| 6922 |
DB_TEST_POSTSYNC DB_TEST_PREDESTROY DB_TEST_PREOPEN |
| 6923 |
DB_TEST_PRERENAME DB_TEST_RECYCLE DB_TEST_SUBDB_LOCKS DB_THREAD |
| 6924 |
DB_THREADID_STRLEN DB_TIMEOUT DB_TIME_NOTGRANTED DB_TRUNCATE |
| 6925 |
DB_TXNMAGIC DB_TXNVERSION DB_TXN_BULK DB_TXN_CKP DB_TXN_FAMILY |
| 6926 |
DB_TXN_LOCK DB_TXN_LOCK_2PL DB_TXN_LOCK_MASK |
| 6927 |
DB_TXN_LOCK_OPTIMIST DB_TXN_LOCK_OPTIMISTIC DB_TXN_LOG_MASK |
| 6928 |
DB_TXN_LOG_REDO DB_TXN_LOG_UNDO DB_TXN_LOG_UNDOREDO |
| 6929 |
DB_TXN_NOSYNC DB_TXN_NOT_DURABLE DB_TXN_NOWAIT DB_TXN_REDO |
| 6930 |
DB_TXN_SNAPSHOT DB_TXN_SYNC DB_TXN_TOKEN_SIZE DB_TXN_UNDO |
| 6931 |
DB_TXN_WAIT DB_TXN_WRITE_NOSYNC DB_UNREF DB_UPDATE_SECONDARY |
| 6932 |
DB_UPGRADE DB_USERCOPY_GETDATA DB_USERCOPY_SETDATA |
| 6933 |
DB_USE_ENVIRON DB_USE_ENVIRON_ROOT DB_VERB_BACKUP |
| 6934 |
DB_VERB_CHKPOINT DB_VERB_DEADLOCK DB_VERB_FILEOPS |
| 6935 |
DB_VERB_FILEOPS_ALL DB_VERB_RECOVERY DB_VERB_REGISTER |
| 6936 |
DB_VERB_REPLICATION DB_VERB_REPMGR_CONNFAIL DB_VERB_REPMGR_MISC |
| 6937 |
DB_VERB_REP_ELECT DB_VERB_REP_LEASE DB_VERB_REP_MISC |
| 6938 |
DB_VERB_REP_MSGS DB_VERB_REP_SYNC DB_VERB_REP_SYSTEM |
| 6939 |
DB_VERB_REP_TEST DB_VERB_WAITSFOR DB_VERIFY DB_VERIFY_BAD |
| 6940 |
DB_VERIFY_FATAL DB_VERIFY_PARTITION DB_VERSION_FAMILY |
| 6941 |
DB_VERSION_MAJOR DB_VERSION_MINOR DB_VERSION_MISMATCH |
| 6942 |
DB_VERSION_PATCH DB_VERSION_RELEASE DB_VRFY_FLAGMASK |
| 6943 |
DB_WRITECURSOR DB_WRITELOCK DB_WRITEOPEN DB_WRNOSYNC |
| 6944 |
DB_XA_CREATE DB_XIDDATASIZE DB_YIELDCPU DB_debug_FLAG |
| 6945 |
DB_user_BEGIN), |
| 6946 |
{name=>"DB_BACKUP_READ_COUNT", type=>"IV", macro=>["#if (DB_VERSION_MAJOR > 5) || \\\n (DB_VERSION_MAJOR == 5 && DB_VERSION_MINOR > 3) || \\\n (DB_VERSION_MAJOR == 5 && DB_VERSION_MINOR == 3 && \\\n DB_VERSION_PATCH >= 5)\n", "#endif\n"]}, |
| 6947 |
{name=>"DB_BACKUP_READ_SLEEP", type=>"IV", macro=>["#if (DB_VERSION_MAJOR > 5) || \\\n (DB_VERSION_MAJOR == 5 && DB_VERSION_MINOR > 3) || \\\n (DB_VERSION_MAJOR == 5 && DB_VERSION_MINOR == 3 && \\\n DB_VERSION_PATCH >= 5)\n", "#endif\n"]}, |
| 6948 |
{name=>"DB_BACKUP_SIZE", type=>"IV", macro=>["#if (DB_VERSION_MAJOR > 5) || \\\n (DB_VERSION_MAJOR == 5 && DB_VERSION_MINOR > 3) || \\\n (DB_VERSION_MAJOR == 5 && DB_VERSION_MINOR == 3 && \\\n DB_VERSION_PATCH >= 5)\n", "#endif\n"]}, |
| 6949 |
{name=>"DB_BACKUP_WRITE_DIRECT", type=>"IV", macro=>["#if (DB_VERSION_MAJOR > 5) || \\\n (DB_VERSION_MAJOR == 5 && DB_VERSION_MINOR > 3) || \\\n (DB_VERSION_MAJOR == 5 && DB_VERSION_MINOR == 3 && \\\n DB_VERSION_PATCH >= 5)\n", "#endif\n"]}, |
| 6950 |
{name=>"DB_BTREE", type=>"IV", macro=>["#if (DB_VERSION_MAJOR > 2) || \\\n (DB_VERSION_MAJOR == 2 && DB_VERSION_MINOR > 0) || \\\n (DB_VERSION_MAJOR == 2 && DB_VERSION_MINOR == 0 && \\\n DB_VERSION_PATCH >= 3)\n", "#endif\n"]}, |
| 6951 |
{name=>"DB_HASH", type=>"IV", macro=>["#if (DB_VERSION_MAJOR > 2) || \\\n (DB_VERSION_MAJOR == 2 && DB_VERSION_MINOR > 0) || \\\n (DB_VERSION_MAJOR == 2 && DB_VERSION_MINOR == 0 && \\\n DB_VERSION_PATCH >= 3)\n", "#endif\n"]}, |
| 6952 |
{name=>"DB_HEAP", type=>"IV", macro=>["#if (DB_VERSION_MAJOR > 5) || \\\n (DB_VERSION_MAJOR == 5 && DB_VERSION_MINOR > 2) || \\\n (DB_VERSION_MAJOR == 5 && DB_VERSION_MINOR == 2 && \\\n DB_VERSION_PATCH >= 14)\n", "#endif\n"]}, |
| 6953 |
{name=>"DB_LOCK_DUMP", type=>"IV", macro=>["#if (DB_VERSION_MAJOR > 2) || \\\n (DB_VERSION_MAJOR == 2 && DB_VERSION_MINOR > 0) || \\\n (DB_VERSION_MAJOR == 2 && DB_VERSION_MINOR == 0 && \\\n DB_VERSION_PATCH >= 3)\n", "#endif\n"]}, |
| 6954 |
{name=>"DB_LOCK_GET", type=>"IV", macro=>["#if (DB_VERSION_MAJOR > 2) || \\\n (DB_VERSION_MAJOR == 2 && DB_VERSION_MINOR > 0) || \\\n (DB_VERSION_MAJOR == 2 && DB_VERSION_MINOR == 0 && \\\n DB_VERSION_PATCH >= 3)\n", "#endif\n"]}, |
| 6955 |
{name=>"DB_LOCK_GET_TIMEOUT", type=>"IV", macro=>["#if (DB_VERSION_MAJOR > 4) || \\\n (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR > 0) || \\\n (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR == 0 && \\\n DB_VERSION_PATCH >= 14)\n", "#endif\n"]}, |
| 6956 |
{name=>"DB_LOCK_INHERIT", type=>"IV", macro=>["#if (DB_VERSION_MAJOR > 2) || \\\n (DB_VERSION_MAJOR == 2 && DB_VERSION_MINOR > 7) || \\\n (DB_VERSION_MAJOR == 2 && DB_VERSION_MINOR == 7 && \\\n DB_VERSION_PATCH >= 1)\n", "#endif\n"]}, |
| 6957 |
{name=>"DB_LOCK_PUT", type=>"IV", macro=>["#if (DB_VERSION_MAJOR > 2) || \\\n (DB_VERSION_MAJOR == 2 && DB_VERSION_MINOR > 0) || \\\n (DB_VERSION_MAJOR == 2 && DB_VERSION_MINOR == 0 && \\\n DB_VERSION_PATCH >= 3)\n", "#endif\n"]}, |
| 6958 |
{name=>"DB_LOCK_PUT_ALL", type=>"IV", macro=>["#if (DB_VERSION_MAJOR > 2) || \\\n (DB_VERSION_MAJOR == 2 && DB_VERSION_MINOR > 0) || \\\n (DB_VERSION_MAJOR == 2 && DB_VERSION_MINOR == 0 && \\\n DB_VERSION_PATCH >= 3)\n", "#endif\n"]}, |
| 6959 |
{name=>"DB_LOCK_PUT_OBJ", type=>"IV", macro=>["#if (DB_VERSION_MAJOR > 2) || \\\n (DB_VERSION_MAJOR == 2 && DB_VERSION_MINOR > 0) || \\\n (DB_VERSION_MAJOR == 2 && DB_VERSION_MINOR == 0 && \\\n DB_VERSION_PATCH >= 3)\n", "#endif\n"]}, |
| 6960 |
{name=>"DB_LOCK_PUT_READ", type=>"IV", macro=>["#if (DB_VERSION_MAJOR > 4) || \\\n (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR > 0) || \\\n (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR == 0 && \\\n DB_VERSION_PATCH >= 14)\n", "#endif\n"]}, |
| 6961 |
{name=>"DB_LOCK_TIMEOUT", type=>"IV", macro=>["#if (DB_VERSION_MAJOR > 4) || \\\n (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR > 0) || \\\n (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR == 0 && \\\n DB_VERSION_PATCH >= 14)\n", "#endif\n"]}, |
| 6962 |
{name=>"DB_LOCK_TRADE", type=>"IV", macro=>["#if (DB_VERSION_MAJOR > 4) || \\\n (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR > 1) || \\\n (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR == 1 && \\\n DB_VERSION_PATCH >= 24)\n", "#endif\n"]}, |
| 6963 |
{name=>"DB_LOCK_UPGRADE_WRITE", type=>"IV", macro=>["#if (DB_VERSION_MAJOR > 4) || \\\n (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR > 0) || \\\n (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR == 0 && \\\n DB_VERSION_PATCH >= 14)\n", "#endif\n"]}, |
| 6964 |
{name=>"DB_MEM_LOCK", type=>"IV", macro=>["#if (DB_VERSION_MAJOR > 5) || \\\n (DB_VERSION_MAJOR == 5 && DB_VERSION_MINOR > 2) || \\\n (DB_VERSION_MAJOR == 5 && DB_VERSION_MINOR == 2 && \\\n DB_VERSION_PATCH >= 14)\n", "#endif\n"]}, |
| 6965 |
{name=>"DB_MEM_LOCKER", type=>"IV", macro=>["#if (DB_VERSION_MAJOR > 5) || \\\n (DB_VERSION_MAJOR == 5 && DB_VERSION_MINOR > 2) || \\\n (DB_VERSION_MAJOR == 5 && DB_VERSION_MINOR == 2 && \\\n DB_VERSION_PATCH >= 14)\n", "#endif\n"]}, |
| 6966 |
{name=>"DB_MEM_LOCKOBJECT", type=>"IV", macro=>["#if (DB_VERSION_MAJOR > 5) || \\\n (DB_VERSION_MAJOR == 5 && DB_VERSION_MINOR > 2) || \\\n (DB_VERSION_MAJOR == 5 && DB_VERSION_MINOR == 2 && \\\n DB_VERSION_PATCH >= 14)\n", "#endif\n"]}, |
| 6967 |
{name=>"DB_MEM_LOGID", type=>"IV", macro=>["#if (DB_VERSION_MAJOR > 5) || \\\n (DB_VERSION_MAJOR == 5 && DB_VERSION_MINOR > 2) || \\\n (DB_VERSION_MAJOR == 5 && DB_VERSION_MINOR == 2 && \\\n DB_VERSION_PATCH >= 14)\n", "#endif\n"]}, |
| 6968 |
{name=>"DB_MEM_THREAD", type=>"IV", macro=>["#if (DB_VERSION_MAJOR > 5) || \\\n (DB_VERSION_MAJOR == 5 && DB_VERSION_MINOR > 2) || \\\n (DB_VERSION_MAJOR == 5 && DB_VERSION_MINOR == 2 && \\\n DB_VERSION_PATCH >= 14)\n", "#endif\n"]}, |
| 6969 |
{name=>"DB_MEM_TRANSACTION", type=>"IV", macro=>["#if (DB_VERSION_MAJOR > 5) || \\\n (DB_VERSION_MAJOR == 5 && DB_VERSION_MINOR > 2) || \\\n (DB_VERSION_MAJOR == 5 && DB_VERSION_MINOR == 2 && \\\n DB_VERSION_PATCH >= 14)\n", "#endif\n"]}, |
| 6970 |
{name=>"DB_PRIORITY_DEFAULT", type=>"IV", macro=>["#if (DB_VERSION_MAJOR > 4) || \\\n (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR > 1) || \\\n (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR == 1 && \\\n DB_VERSION_PATCH >= 24)\n", "#endif\n"]}, |
| 6971 |
{name=>"DB_PRIORITY_HIGH", type=>"IV", macro=>["#if (DB_VERSION_MAJOR > 4) || \\\n (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR > 1) || \\\n (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR == 1 && \\\n DB_VERSION_PATCH >= 24)\n", "#endif\n"]}, |
| 6972 |
{name=>"DB_PRIORITY_LOW", type=>"IV", macro=>["#if (DB_VERSION_MAJOR > 4) || \\\n (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR > 1) || \\\n (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR == 1 && \\\n DB_VERSION_PATCH >= 24)\n", "#endif\n"]}, |
| 6973 |
{name=>"DB_PRIORITY_UNCHANGED", type=>"IV", macro=>["#if (DB_VERSION_MAJOR > 4) || \\\n (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR > 6) || \\\n (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR == 6 && \\\n DB_VERSION_PATCH >= 18)\n", "#endif\n"]}, |
| 6974 |
{name=>"DB_PRIORITY_VERY_HIGH", type=>"IV", macro=>["#if (DB_VERSION_MAJOR > 4) || \\\n (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR > 1) || \\\n (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR == 1 && \\\n DB_VERSION_PATCH >= 24)\n", "#endif\n"]}, |
| 6975 |
{name=>"DB_PRIORITY_VERY_LOW", type=>"IV", macro=>["#if (DB_VERSION_MAJOR > 4) || \\\n (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR > 1) || \\\n (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR == 1 && \\\n DB_VERSION_PATCH >= 24)\n", "#endif\n"]}, |
| 6976 |
{name=>"DB_QUEUE", type=>"IV", macro=>["#if (DB_VERSION_MAJOR > 3) || \\\n (DB_VERSION_MAJOR == 3 && DB_VERSION_MINOR > 0) || \\\n (DB_VERSION_MAJOR == 3 && DB_VERSION_MINOR == 0 && \\\n DB_VERSION_PATCH >= 55)\n", "#endif\n"]}, |
| 6977 |
{name=>"DB_RECNO", type=>"IV", macro=>["#if (DB_VERSION_MAJOR > 2) || \\\n (DB_VERSION_MAJOR == 2 && DB_VERSION_MINOR > 0) || \\\n (DB_VERSION_MAJOR == 2 && DB_VERSION_MINOR == 0 && \\\n DB_VERSION_PATCH >= 3)\n", "#endif\n"]}, |
| 6978 |
{name=>"DB_TXN_ABORT", type=>"IV", macro=>["#if (DB_VERSION_MAJOR > 3) || \\\n (DB_VERSION_MAJOR == 3 && DB_VERSION_MINOR > 1) || \\\n (DB_VERSION_MAJOR == 3 && DB_VERSION_MINOR == 1 && \\\n DB_VERSION_PATCH >= 14)\n", "#endif\n"]}, |
| 6979 |
{name=>"DB_TXN_APPLY", type=>"IV", macro=>["#if (DB_VERSION_MAJOR > 4) || \\\n (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR > 0) || \\\n (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR == 0 && \\\n DB_VERSION_PATCH >= 14)\n", "#endif\n"]}, |
| 6980 |
{name=>"DB_TXN_BACKWARD_ROLL", type=>"IV", macro=>["#if (DB_VERSION_MAJOR > 3) || \\\n (DB_VERSION_MAJOR == 3 && DB_VERSION_MINOR > 1) || \\\n (DB_VERSION_MAJOR == 3 && DB_VERSION_MINOR == 1 && \\\n DB_VERSION_PATCH >= 14)\n", "#endif\n"]}, |
| 6981 |
{name=>"DB_TXN_FORWARD_ROLL", type=>"IV", macro=>["#if (DB_VERSION_MAJOR > 3) || \\\n (DB_VERSION_MAJOR == 3 && DB_VERSION_MINOR > 1) || \\\n (DB_VERSION_MAJOR == 3 && DB_VERSION_MINOR == 1 && \\\n DB_VERSION_PATCH >= 14)\n", "#endif\n"]}, |
| 6982 |
{name=>"DB_TXN_LOG_VERIFY", type=>"IV", macro=>["#if (DB_VERSION_MAJOR > 5) || \\\n (DB_VERSION_MAJOR == 5 && DB_VERSION_MINOR > 0) || \\\n (DB_VERSION_MAJOR == 5 && DB_VERSION_MINOR == 0 && \\\n DB_VERSION_PATCH >= 6)\n", "#endif\n"]}, |
| 6983 |
{name=>"DB_TXN_OPENFILES", type=>"IV", macro=>["#if (DB_VERSION_MAJOR > 3) || \\\n (DB_VERSION_MAJOR == 3 && DB_VERSION_MINOR > 1) || \\\n (DB_VERSION_MAJOR == 3 && DB_VERSION_MINOR == 1 && \\\n DB_VERSION_PATCH >= 14)\n", "#endif\n"]}, |
| 6984 |
{name=>"DB_TXN_POPENFILES", type=>"IV", macro=>["#if (DB_VERSION_MAJOR > 4) || \\\n (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR > 0) || \\\n (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR == 0 && \\\n DB_VERSION_PATCH >= 14)\n", "#endif\n"]}, |
| 6985 |
{name=>"DB_TXN_PRINT", type=>"IV", macro=>["#if (DB_VERSION_MAJOR > 4) || \\\n (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR > 1) || \\\n (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR == 1 && \\\n DB_VERSION_PATCH >= 24)\n", "#endif\n"]}, |
| 6986 |
{name=>"DB_UNKNOWN", type=>"IV", macro=>["#if (DB_VERSION_MAJOR > 2) || \\\n (DB_VERSION_MAJOR == 2 && DB_VERSION_MINOR > 0) || \\\n (DB_VERSION_MAJOR == 2 && DB_VERSION_MINOR == 0 && \\\n DB_VERSION_PATCH >= 3)\n", "#endif\n"]}, |
| 6987 |
{name=>"DB_VERSION_FULL_STRING", type=>"PV"}, |
| 6988 |
{name=>"DB_VERSION_STRING", type=>"PV"}, |
| 6989 |
{name=>"LOGREC_ARG", type=>"IV", macro=>["#if (DB_VERSION_MAJOR > 5) || \\\n (DB_VERSION_MAJOR == 5 && DB_VERSION_MINOR > 0) || \\\n (DB_VERSION_MAJOR == 5 && DB_VERSION_MINOR == 0 && \\\n DB_VERSION_PATCH >= 6)\n", "#endif\n"]}, |
| 6990 |
{name=>"LOGREC_DATA", type=>"IV", macro=>["#if (DB_VERSION_MAJOR > 5) || \\\n (DB_VERSION_MAJOR == 5 && DB_VERSION_MINOR > 0) || \\\n (DB_VERSION_MAJOR == 5 && DB_VERSION_MINOR == 0 && \\\n DB_VERSION_PATCH >= 6)\n", "#endif\n"]}, |
| 6991 |
{name=>"LOGREC_DB", type=>"IV", macro=>["#if (DB_VERSION_MAJOR > 5) || \\\n (DB_VERSION_MAJOR == 5 && DB_VERSION_MINOR > 0) || \\\n (DB_VERSION_MAJOR == 5 && DB_VERSION_MINOR == 0 && \\\n DB_VERSION_PATCH >= 6)\n", "#endif\n"]}, |
| 6992 |
{name=>"LOGREC_DBOP", type=>"IV", macro=>["#if (DB_VERSION_MAJOR > 5) || \\\n (DB_VERSION_MAJOR == 5 && DB_VERSION_MINOR > 0) || \\\n (DB_VERSION_MAJOR == 5 && DB_VERSION_MINOR == 0 && \\\n DB_VERSION_PATCH >= 6)\n", "#endif\n"]}, |
| 6993 |
{name=>"LOGREC_DBT", type=>"IV", macro=>["#if (DB_VERSION_MAJOR > 5) || \\\n (DB_VERSION_MAJOR == 5 && DB_VERSION_MINOR > 0) || \\\n (DB_VERSION_MAJOR == 5 && DB_VERSION_MINOR == 0 && \\\n DB_VERSION_PATCH >= 6)\n", "#endif\n"]}, |
| 6994 |
{name=>"LOGREC_Done", type=>"IV", macro=>["#if (DB_VERSION_MAJOR > 5) || \\\n (DB_VERSION_MAJOR == 5 && DB_VERSION_MINOR > 0) || \\\n (DB_VERSION_MAJOR == 5 && DB_VERSION_MINOR == 0 && \\\n DB_VERSION_PATCH >= 6)\n", "#endif\n"]}, |
| 6995 |
{name=>"LOGREC_HDR", type=>"IV", macro=>["#if (DB_VERSION_MAJOR > 5) || \\\n (DB_VERSION_MAJOR == 5 && DB_VERSION_MINOR > 0) || \\\n (DB_VERSION_MAJOR == 5 && DB_VERSION_MINOR == 0 && \\\n DB_VERSION_PATCH >= 6)\n", "#endif\n"]}, |
| 6996 |
{name=>"LOGREC_LOCKS", type=>"IV", macro=>["#if (DB_VERSION_MAJOR > 5) || \\\n (DB_VERSION_MAJOR == 5 && DB_VERSION_MINOR > 0) || \\\n (DB_VERSION_MAJOR == 5 && DB_VERSION_MINOR == 0 && \\\n DB_VERSION_PATCH >= 6)\n", "#endif\n"]}, |
| 6997 |
{name=>"LOGREC_OP", type=>"IV", macro=>["#if (DB_VERSION_MAJOR > 5) || \\\n (DB_VERSION_MAJOR == 5 && DB_VERSION_MINOR > 0) || \\\n (DB_VERSION_MAJOR == 5 && DB_VERSION_MINOR == 0 && \\\n DB_VERSION_PATCH >= 6)\n", "#endif\n"]}, |
| 6998 |
{name=>"LOGREC_PGDBT", type=>"IV", macro=>["#if (DB_VERSION_MAJOR > 5) || \\\n (DB_VERSION_MAJOR == 5 && DB_VERSION_MINOR > 0) || \\\n (DB_VERSION_MAJOR == 5 && DB_VERSION_MINOR == 0 && \\\n DB_VERSION_PATCH >= 6)\n", "#endif\n"]}, |
| 6999 |
{name=>"LOGREC_PGDDBT", type=>"IV", macro=>["#if (DB_VERSION_MAJOR > 5) || \\\n (DB_VERSION_MAJOR == 5 && DB_VERSION_MINOR > 0) || \\\n (DB_VERSION_MAJOR == 5 && DB_VERSION_MINOR == 0 && \\\n DB_VERSION_PATCH >= 6)\n", "#endif\n"]}, |
| 7000 |
{name=>"LOGREC_PGLIST", type=>"IV", macro=>["#if (DB_VERSION_MAJOR > 5) || \\\n (DB_VERSION_MAJOR == 5 && DB_VERSION_MINOR > 0) || \\\n (DB_VERSION_MAJOR == 5 && DB_VERSION_MINOR == 0 && \\\n DB_VERSION_PATCH >= 6)\n", "#endif\n"]}, |
| 7001 |
{name=>"LOGREC_POINTER", type=>"IV", macro=>["#if (DB_VERSION_MAJOR > 5) || \\\n (DB_VERSION_MAJOR == 5 && DB_VERSION_MINOR > 0) || \\\n (DB_VERSION_MAJOR == 5 && DB_VERSION_MINOR == 0 && \\\n DB_VERSION_PATCH >= 6)\n", "#endif\n"]}, |
| 7002 |
{name=>"LOGREC_TIME", type=>"IV", macro=>["#if (DB_VERSION_MAJOR > 5) || \\\n (DB_VERSION_MAJOR == 5 && DB_VERSION_MINOR > 0) || \\\n (DB_VERSION_MAJOR == 5 && DB_VERSION_MINOR == 0 && \\\n DB_VERSION_PATCH >= 6)\n", "#endif\n"]}); |
| 7003 |
|
| 7004 |
print constant_types(), "\n"; # macro defs |
| 7005 |
foreach (C_constant ("BerkeleyDB", 'constant', 'IV', $types, undef, 3, @names) ) { |
| 7006 |
print $_, "\n"; # C constant subs |
| 7007 |
} |
| 7008 |
print "\n#### XS Section:\n"; |
| 7009 |
print XS_constant ("BerkeleyDB", $types); |
| 7010 |
__END__ |
| 7011 |
*/ |
| 7012 |
|
| 7013 |
switch (len) { |
| 7014 |
case 6: |
| 7015 |
return constant_6 (aTHX_ name, iv_return); |
| 7016 |
break; |
| 7017 |
case 7: |
| 7018 |
return constant_7 (aTHX_ name, iv_return); |
| 7019 |
break; |
| 7020 |
case 8: |
| 7021 |
return constant_8 (aTHX_ name, iv_return); |
| 7022 |
break; |
| 7023 |
case 9: |
| 7024 |
return constant_9 (aTHX_ name, iv_return); |
| 7025 |
break; |
| 7026 |
case 10: |
| 7027 |
return constant_10 (aTHX_ name, iv_return); |
| 7028 |
break; |
| 7029 |
case 11: |
| 7030 |
return constant_11 (aTHX_ name, iv_return); |
| 7031 |
break; |
| 7032 |
case 12: |
| 7033 |
return constant_12 (aTHX_ name, iv_return); |
| 7034 |
break; |
| 7035 |
case 13: |
| 7036 |
return constant_13 (aTHX_ name, iv_return); |
| 7037 |
break; |
| 7038 |
case 14: |
| 7039 |
return constant_14 (aTHX_ name, iv_return); |
| 7040 |
break; |
| 7041 |
case 15: |
| 7042 |
return constant_15 (aTHX_ name, iv_return); |
| 7043 |
break; |
| 7044 |
case 16: |
| 7045 |
return constant_16 (aTHX_ name, iv_return); |
| 7046 |
break; |
| 7047 |
case 17: |
| 7048 |
return constant_17 (aTHX_ name, iv_return, pv_return); |
| 7049 |
break; |
| 7050 |
case 18: |
| 7051 |
return constant_18 (aTHX_ name, iv_return); |
| 7052 |
break; |
| 7053 |
case 19: |
| 7054 |
return constant_19 (aTHX_ name, iv_return); |
| 7055 |
break; |
| 7056 |
case 20: |
| 7057 |
return constant_20 (aTHX_ name, iv_return); |
| 7058 |
break; |
| 7059 |
case 21: |
| 7060 |
return constant_21 (aTHX_ name, iv_return); |
| 7061 |
break; |
| 7062 |
case 22: |
| 7063 |
return constant_22 (aTHX_ name, iv_return, pv_return); |
| 7064 |
break; |
| 7065 |
case 23: |
| 7066 |
return constant_23 (aTHX_ name, iv_return); |
| 7067 |
break; |
| 7068 |
case 24: |
| 7069 |
return constant_24 (aTHX_ name, iv_return); |
| 7070 |
break; |
| 7071 |
case 25: |
| 7072 |
return constant_25 (aTHX_ name, iv_return); |
| 7073 |
break; |
| 7074 |
case 27: |
| 7075 |
return constant_27 (aTHX_ name, iv_return); |
| 7076 |
break; |
| 7077 |
case 28: |
| 7078 |
return constant_28 (aTHX_ name, iv_return); |
| 7079 |
break; |
| 7080 |
case 31: |
| 7081 |
/* Names all of length 31. */ |
| 7082 |
/* DB_EVENT_REP_CONNECT_TRY_FAILED DB_EVENT_REP_LOCAL_SITE_REMOVED */ |
| 7083 |
/* Offset 19 gives the best switch position. */ |
| 7084 |
switch (name[19]) { |
| 7085 |
case 'S': |
| 7086 |
if (memEQ(name, "DB_EVENT_REP_LOCAL_SITE_REMOVED", 31)) { |
| 7087 |
/* ^ */ |
| 7088 |
#ifdef DB_EVENT_REP_LOCAL_SITE_REMOVED |
| 7089 |
*iv_return = DB_EVENT_REP_LOCAL_SITE_REMOVED; |
| 7090 |
return PERL_constant_ISIV; |
| 7091 |
#else |
| 7092 |
return PERL_constant_NOTDEF; |
| 7093 |
#endif |
| 7094 |
} |
| 7095 |
break; |
| 7096 |
case 'T': |
| 7097 |
if (memEQ(name, "DB_EVENT_REP_CONNECT_TRY_FAILED", 31)) { |
| 7098 |
/* ^ */ |
| 7099 |
#ifdef DB_EVENT_REP_CONNECT_TRY_FAILED |
| 7100 |
*iv_return = DB_EVENT_REP_CONNECT_TRY_FAILED; |
| 7101 |
return PERL_constant_ISIV; |
| 7102 |
#else |
| 7103 |
return PERL_constant_NOTDEF; |
| 7104 |
#endif |
| 7105 |
} |
| 7106 |
break; |
| 7107 |
} |
| 7108 |
break; |
| 7109 |
} |
| 7110 |
return PERL_constant_NOTFOUND; |
| 7111 |
} |
| 7112 |
|