-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathconstants.h
7698 lines (7667 loc) · 225 KB
/
constants.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
#define PERL_constant_NOTFOUND 1
#define PERL_constant_NOTDEF 2
#define PERL_constant_ISIV 3
#define PERL_constant_ISNO 4
#define PERL_constant_ISNV 5
#define PERL_constant_ISPV 6
#define PERL_constant_ISPVN 7
#define PERL_constant_ISSV 8
#define PERL_constant_ISUNDEF 9
#define PERL_constant_ISUV 10
#define PERL_constant_ISYES 11
#ifndef NVTYPE
typedef double NV; /* 5.6 and later define NVTYPE, and typedef NV to it. */
#endif
#ifndef aTHX_
#define aTHX_ /* 5.6 or later define this for threading support. */
#endif
#ifndef pTHX_
#define pTHX_ /* 5.6 or later define this for threading support. */
#endif
static int
constant_6 (pTHX_ const char *name, IV *iv_return) {
/* When generated this function returned values for the list of names given
here. However, subsequent manual editing may have added or removed some.
DB_DUP DB_PAD DB_RMW DB_SET SELECT */
/* Offset 3 gives the best switch position. */
switch (name[3]) {
case 'D':
if (memEQ(name, "DB_DUP", 6)) {
/* ^ */
#ifdef DB_DUP
*iv_return = DB_DUP;
return PERL_constant_ISIV;
#else
return PERL_constant_NOTDEF;
#endif
}
break;
case 'E':
if (memEQ(name, "SELECT", 6)) {
/* ^ */
#if (DB_VERSION_MAJOR > 6) || \
(DB_VERSION_MAJOR == 6 && DB_VERSION_MINOR > 3) || \
(DB_VERSION_MAJOR == 6 && DB_VERSION_MINOR == 3 && \
DB_VERSION_PATCH >= 10)
*iv_return = SELECT;
return PERL_constant_ISIV;
#else
return PERL_constant_NOTDEF;
#endif
}
break;
case 'P':
if (memEQ(name, "DB_PAD", 6)) {
/* ^ */
#ifdef DB_PAD
*iv_return = DB_PAD;
return PERL_constant_ISIV;
#else
return PERL_constant_NOTDEF;
#endif
}
break;
case 'R':
if (memEQ(name, "DB_RMW", 6)) {
/* ^ */
#ifdef DB_RMW
*iv_return = DB_RMW;
return PERL_constant_ISIV;
#else
return PERL_constant_NOTDEF;
#endif
}
break;
case 'S':
if (memEQ(name, "DB_SET", 6)) {
/* ^ */
#ifdef DB_SET
*iv_return = DB_SET;
return PERL_constant_ISIV;
#else
return PERL_constant_NOTDEF;
#endif
}
break;
}
return PERL_constant_NOTFOUND;
}
static int
constant_7 (pTHX_ const char *name, IV *iv_return) {
/* When generated this function returned values for the list of names given
here. However, subsequent manual editing may have added or removed some.
DB_EXCL DB_HASH DB_HEAP DB_LAST DB_NEXT DB_PREV */
/* Offset 3 gives the best switch position. */
switch (name[3]) {
case 'E':
if (memEQ(name, "DB_EXCL", 7)) {
/* ^ */
#ifdef DB_EXCL
*iv_return = DB_EXCL;
return PERL_constant_ISIV;
#else
return PERL_constant_NOTDEF;
#endif
}
break;
case 'H':
if (memEQ(name, "DB_HASH", 7)) {
/* ^ */
#if (DB_VERSION_MAJOR > 2) || \
(DB_VERSION_MAJOR == 2 && DB_VERSION_MINOR > 0) || \
(DB_VERSION_MAJOR == 2 && DB_VERSION_MINOR == 0 && \
DB_VERSION_PATCH >= 3)
*iv_return = DB_HASH;
return PERL_constant_ISIV;
#else
return PERL_constant_NOTDEF;
#endif
}
if (memEQ(name, "DB_HEAP", 7)) {
/* ^ */
#if (DB_VERSION_MAJOR > 5) || \
(DB_VERSION_MAJOR == 5 && DB_VERSION_MINOR > 2) || \
(DB_VERSION_MAJOR == 5 && DB_VERSION_MINOR == 2 && \
DB_VERSION_PATCH >= 10)
*iv_return = DB_HEAP;
return PERL_constant_ISIV;
#else
return PERL_constant_NOTDEF;
#endif
}
break;
case 'L':
if (memEQ(name, "DB_LAST", 7)) {
/* ^ */
#ifdef DB_LAST
*iv_return = DB_LAST;
return PERL_constant_ISIV;
#else
return PERL_constant_NOTDEF;
#endif
}
break;
case 'N':
if (memEQ(name, "DB_NEXT", 7)) {
/* ^ */
#ifdef DB_NEXT
*iv_return = DB_NEXT;
return PERL_constant_ISIV;
#else
return PERL_constant_NOTDEF;
#endif
}
break;
case 'P':
if (memEQ(name, "DB_PREV", 7)) {
/* ^ */
#ifdef DB_PREV
*iv_return = DB_PREV;
return PERL_constant_ISIV;
#else
return PERL_constant_NOTDEF;
#endif
}
break;
}
return PERL_constant_NOTFOUND;
}
static int
constant_8 (pTHX_ const char *name, IV *iv_return) {
/* When generated this function returned values for the list of names given
here. However, subsequent manual editing may have added or removed some.
DB_AFTER DB_BTREE DB_FIRST DB_FLUSH DB_FORCE DB_QUEUE DB_RECNO DB_UNREF */
/* Offset 4 gives the best switch position. */
switch (name[4]) {
case 'E':
if (memEQ(name, "DB_RECNO", 8)) {
/* ^ */
#if (DB_VERSION_MAJOR > 2) || \
(DB_VERSION_MAJOR == 2 && DB_VERSION_MINOR > 0) || \
(DB_VERSION_MAJOR == 2 && DB_VERSION_MINOR == 0 && \
DB_VERSION_PATCH >= 3)
*iv_return = DB_RECNO;
return PERL_constant_ISIV;
#else
return PERL_constant_NOTDEF;
#endif
}
break;
case 'F':
if (memEQ(name, "DB_AFTER", 8)) {
/* ^ */
#ifdef DB_AFTER
*iv_return = DB_AFTER;
return PERL_constant_ISIV;
#else
return PERL_constant_NOTDEF;
#endif
}
break;
case 'I':
if (memEQ(name, "DB_FIRST", 8)) {
/* ^ */
#ifdef DB_FIRST
*iv_return = DB_FIRST;
return PERL_constant_ISIV;
#else
return PERL_constant_NOTDEF;
#endif
}
break;
case 'L':
if (memEQ(name, "DB_FLUSH", 8)) {
/* ^ */
#ifdef DB_FLUSH
*iv_return = DB_FLUSH;
return PERL_constant_ISIV;
#else
return PERL_constant_NOTDEF;
#endif
}
break;
case 'N':
if (memEQ(name, "DB_UNREF", 8)) {
/* ^ */
#ifdef DB_UNREF
*iv_return = DB_UNREF;
return PERL_constant_ISIV;
#else
return PERL_constant_NOTDEF;
#endif
}
break;
case 'O':
if (memEQ(name, "DB_FORCE", 8)) {
/* ^ */
#ifdef DB_FORCE
*iv_return = DB_FORCE;
return PERL_constant_ISIV;
#else
return PERL_constant_NOTDEF;
#endif
}
break;
case 'T':
if (memEQ(name, "DB_BTREE", 8)) {
/* ^ */
#if (DB_VERSION_MAJOR > 2) || \
(DB_VERSION_MAJOR == 2 && DB_VERSION_MINOR > 0) || \
(DB_VERSION_MAJOR == 2 && DB_VERSION_MINOR == 0 && \
DB_VERSION_PATCH >= 3)
*iv_return = DB_BTREE;
return PERL_constant_ISIV;
#else
return PERL_constant_NOTDEF;
#endif
}
break;
case 'U':
if (memEQ(name, "DB_QUEUE", 8)) {
/* ^ */
#if (DB_VERSION_MAJOR > 3) || \
(DB_VERSION_MAJOR == 3 && DB_VERSION_MINOR > 0) || \
(DB_VERSION_MAJOR == 3 && DB_VERSION_MINOR == 0 && \
DB_VERSION_PATCH >= 55)
*iv_return = DB_QUEUE;
return PERL_constant_ISIV;
#else
return PERL_constant_NOTDEF;
#endif
}
break;
}
return PERL_constant_NOTFOUND;
}
static int
constant_9 (pTHX_ const char *name, IV *iv_return) {
/* When generated this function returned values for the list of names given
here. However, subsequent manual editing may have added or removed some.
DB_APPEND DB_BEFORE DB_CHKSUM DB_CLIENT DB_COMMIT DB_CREATE DB_CURLSN
DB_DIRECT DB_EXTENT DB_GETREC DB_LEGACY DB_NOCOPY DB_NOMMAP DB_NOSYNC
DB_RDONLY DB_RECNUM DB_SLICED DB_THREAD DB_VERIFY LOGREC_DB LOGREC_OP */
/* Offset 7 gives the best switch position. */
switch (name[7]) {
case 'A':
if (memEQ(name, "DB_NOMMAP", 9)) {
/* ^ */
#ifdef DB_NOMMAP
*iv_return = DB_NOMMAP;
return PERL_constant_ISIV;
#else
return PERL_constant_NOTDEF;
#endif
}
if (memEQ(name, "DB_THREAD", 9)) {
/* ^ */
#ifdef DB_THREAD
*iv_return = DB_THREAD;
return PERL_constant_ISIV;
#else
return PERL_constant_NOTDEF;
#endif
}
break;
case 'C':
if (memEQ(name, "DB_DIRECT", 9)) {
/* ^ */
#ifdef DB_DIRECT
*iv_return = DB_DIRECT;
return PERL_constant_ISIV;
#else
return PERL_constant_NOTDEF;
#endif
}
if (memEQ(name, "DB_LEGACY", 9)) {
/* ^ */
#ifdef DB_LEGACY
*iv_return = DB_LEGACY;
return PERL_constant_ISIV;
#else
return PERL_constant_NOTDEF;
#endif
}
break;
case 'D':
if (memEQ(name, "LOGREC_DB", 9)) {
/* ^ */
#if (DB_VERSION_MAJOR > 5) || \
(DB_VERSION_MAJOR == 5 && DB_VERSION_MINOR > 0) || \
(DB_VERSION_MAJOR == 5 && DB_VERSION_MINOR == 0 && \
DB_VERSION_PATCH >= 21)
*iv_return = LOGREC_DB;
return PERL_constant_ISIV;
#else
return PERL_constant_NOTDEF;
#endif
}
break;
case 'E':
if (memEQ(name, "DB_GETREC", 9)) {
/* ^ */
#ifdef DB_GETREC
*iv_return = DB_GETREC;
return PERL_constant_ISIV;
#else
return PERL_constant_NOTDEF;
#endif
}
if (memEQ(name, "DB_SLICED", 9)) {
/* ^ */
#ifdef DB_SLICED
*iv_return = DB_SLICED;
return PERL_constant_ISIV;
#else
return PERL_constant_NOTDEF;
#endif
}
break;
case 'F':
if (memEQ(name, "DB_VERIFY", 9)) {
/* ^ */
#ifdef DB_VERIFY
*iv_return = DB_VERIFY;
return PERL_constant_ISIV;
#else
return PERL_constant_NOTDEF;
#endif
}
break;
case 'I':
if (memEQ(name, "DB_COMMIT", 9)) {
/* ^ */
#ifdef DB_COMMIT
*iv_return = DB_COMMIT;
return PERL_constant_ISIV;
#else
return PERL_constant_NOTDEF;
#endif
}
break;
case 'L':
if (memEQ(name, "DB_RDONLY", 9)) {
/* ^ */
#ifdef DB_RDONLY
*iv_return = DB_RDONLY;
return PERL_constant_ISIV;
#else
return PERL_constant_NOTDEF;
#endif
}
break;
case 'N':
if (memEQ(name, "DB_APPEND", 9)) {
/* ^ */
#ifdef DB_APPEND
*iv_return = DB_APPEND;
return PERL_constant_ISIV;
#else
return PERL_constant_NOTDEF;
#endif
}
if (memEQ(name, "DB_CLIENT", 9)) {
/* ^ */
#ifdef DB_CLIENT
*iv_return = DB_CLIENT;
return PERL_constant_ISIV;
#else
return PERL_constant_NOTDEF;
#endif
}
if (memEQ(name, "DB_EXTENT", 9)) {
/* ^ */
#ifdef DB_EXTENT
*iv_return = DB_EXTENT;
return PERL_constant_ISIV;
#else
return PERL_constant_NOTDEF;
#endif
}
if (memEQ(name, "DB_NOSYNC", 9)) {
/* ^ */
#ifdef DB_NOSYNC
*iv_return = DB_NOSYNC;
return PERL_constant_ISIV;
#else
return PERL_constant_NOTDEF;
#endif
}
break;
case 'O':
if (memEQ(name, "LOGREC_OP", 9)) {
/* ^ */
#if (DB_VERSION_MAJOR > 5) || \
(DB_VERSION_MAJOR == 5 && DB_VERSION_MINOR > 0) || \
(DB_VERSION_MAJOR == 5 && DB_VERSION_MINOR == 0 && \
DB_VERSION_PATCH >= 21)
*iv_return = LOGREC_OP;
return PERL_constant_ISIV;
#else
return PERL_constant_NOTDEF;
#endif
}
break;
case 'P':
if (memEQ(name, "DB_NOCOPY", 9)) {
/* ^ */
#ifdef DB_NOCOPY
*iv_return = DB_NOCOPY;
return PERL_constant_ISIV;
#else
return PERL_constant_NOTDEF;
#endif
}
break;
case 'R':
if (memEQ(name, "DB_BEFORE", 9)) {
/* ^ */
#ifdef DB_BEFORE
*iv_return = DB_BEFORE;
return PERL_constant_ISIV;
#else
return PERL_constant_NOTDEF;
#endif
}
break;
case 'S':
if (memEQ(name, "DB_CURLSN", 9)) {
/* ^ */
#ifdef DB_CURLSN
*iv_return = DB_CURLSN;
return PERL_constant_ISIV;
#else
return PERL_constant_NOTDEF;
#endif
}
break;
case 'T':
if (memEQ(name, "DB_CREATE", 9)) {
/* ^ */
#ifdef DB_CREATE
*iv_return = DB_CREATE;
return PERL_constant_ISIV;
#else
return PERL_constant_NOTDEF;
#endif
}
break;
case 'U':
if (memEQ(name, "DB_CHKSUM", 9)) {
/* ^ */
#ifdef DB_CHKSUM
*iv_return = DB_CHKSUM;
return PERL_constant_ISIV;
#else
return PERL_constant_NOTDEF;
#endif
}
if (memEQ(name, "DB_RECNUM", 9)) {
/* ^ */
#ifdef DB_RECNUM
*iv_return = DB_RECNUM;
return PERL_constant_ISIV;
#else
return PERL_constant_NOTDEF;
#endif
}
break;
}
return PERL_constant_NOTFOUND;
}
static int
constant_10 (pTHX_ const char *name, IV *iv_return) {
/* When generated this function returned values for the list of names given
here. However, subsequent manual editing may have added or removed some.
DB_CONSUME DB_CONVERT DB_CURRENT DB_DELETED DB_DUPSORT DB_ENCRYPT
DB_ENV_CDB DB_ENV_TXN DB_FAILCHK DB_INORDER DB_JOINENV DB_KEYLAST
DB_NOERROR DB_NOFLUSH DB_NOINTMP DB_NOPANIC DB_OK_HASH DB_OK_HEAP
DB_PRIVATE DB_PR_PAGE DB_RECOVER DB_SALVAGE DB_SEQ_DEC DB_SEQ_INC
DB_SET_LTE DB_TIMEOUT DB_TXN_CKP DB_UNKNOWN DB_UPGRADE HAVE_EPOLL
LOGREC_ARG LOGREC_DBT LOGREC_HDR */
/* Offset 8 gives the best switch position. */
switch (name[8]) {
case 'A':
if (memEQ(name, "DB_OK_HEAP", 10)) {
/* ^ */
#ifdef DB_OK_HEAP
*iv_return = DB_OK_HEAP;
return PERL_constant_ISIV;
#else
return PERL_constant_NOTDEF;
#endif
}
break;
case 'B':
if (memEQ(name, "LOGREC_DBT", 10)) {
/* ^ */
#if (DB_VERSION_MAJOR > 5) || \
(DB_VERSION_MAJOR == 5 && DB_VERSION_MINOR > 0) || \
(DB_VERSION_MAJOR == 5 && DB_VERSION_MINOR == 0 && \
DB_VERSION_PATCH >= 21)
*iv_return = LOGREC_DBT;
return PERL_constant_ISIV;
#else
return PERL_constant_NOTDEF;
#endif
}
break;
case 'D':
if (memEQ(name, "DB_ENV_CDB", 10)) {
/* ^ */
#ifdef DB_ENV_CDB
*iv_return = DB_ENV_CDB;
return PERL_constant_ISIV;
#else
return PERL_constant_NOTDEF;
#endif
}
if (memEQ(name, "DB_UPGRADE", 10)) {
/* ^ */
#ifdef DB_UPGRADE
*iv_return = DB_UPGRADE;
return PERL_constant_ISIV;
#else
return PERL_constant_NOTDEF;
#endif
}
if (memEQ(name, "LOGREC_HDR", 10)) {
/* ^ */
#if (DB_VERSION_MAJOR > 5) || \
(DB_VERSION_MAJOR == 5 && DB_VERSION_MINOR > 0) || \
(DB_VERSION_MAJOR == 5 && DB_VERSION_MINOR == 0 && \
DB_VERSION_PATCH >= 21)
*iv_return = LOGREC_HDR;
return PERL_constant_ISIV;
#else
return PERL_constant_NOTDEF;
#endif
}
break;
case 'E':
if (memEQ(name, "DB_DELETED", 10)) {
/* ^ */
#ifdef DB_DELETED
*iv_return = DB_DELETED;
return PERL_constant_ISIV;
#else
return PERL_constant_NOTDEF;
#endif
}
if (memEQ(name, "DB_INORDER", 10)) {
/* ^ */
#ifdef DB_INORDER
*iv_return = DB_INORDER;
return PERL_constant_ISIV;
#else
return PERL_constant_NOTDEF;
#endif
}
if (memEQ(name, "DB_RECOVER", 10)) {
/* ^ */
#ifdef DB_RECOVER
*iv_return = DB_RECOVER;
return PERL_constant_ISIV;
#else
return PERL_constant_NOTDEF;
#endif
}
if (memEQ(name, "DB_SEQ_DEC", 10)) {
/* ^ */
#ifdef DB_SEQ_DEC
*iv_return = DB_SEQ_DEC;
return PERL_constant_ISIV;
#else
return PERL_constant_NOTDEF;
#endif
}
break;
case 'G':
if (memEQ(name, "DB_PR_PAGE", 10)) {
/* ^ */
#ifdef DB_PR_PAGE
*iv_return = DB_PR_PAGE;
return PERL_constant_ISIV;
#else
return PERL_constant_NOTDEF;
#endif
}
if (memEQ(name, "DB_SALVAGE", 10)) {
/* ^ */
#ifdef DB_SALVAGE
*iv_return = DB_SALVAGE;
return PERL_constant_ISIV;
#else
return PERL_constant_NOTDEF;
#endif
}
break;
case 'H':
if (memEQ(name, "DB_FAILCHK", 10)) {
/* ^ */
#ifdef DB_FAILCHK
*iv_return = DB_FAILCHK;
return PERL_constant_ISIV;
#else
return PERL_constant_NOTDEF;
#endif
}
break;
case 'I':
if (memEQ(name, "DB_NOPANIC", 10)) {
/* ^ */
#ifdef DB_NOPANIC
*iv_return = DB_NOPANIC;
return PERL_constant_ISIV;
#else
return PERL_constant_NOTDEF;
#endif
}
break;
case 'K':
if (memEQ(name, "DB_TXN_CKP", 10)) {
/* ^ */
#ifdef DB_TXN_CKP
*iv_return = DB_TXN_CKP;
return PERL_constant_ISIV;
#else
return PERL_constant_NOTDEF;
#endif
}
break;
case 'L':
if (memEQ(name, "HAVE_EPOLL", 10)) {
/* ^ */
#ifdef HAVE_EPOLL
*iv_return = HAVE_EPOLL;
return PERL_constant_ISIV;
#else
return PERL_constant_NOTDEF;
#endif
}
break;
case 'M':
if (memEQ(name, "DB_CONSUME", 10)) {
/* ^ */
#ifdef DB_CONSUME
*iv_return = DB_CONSUME;
return PERL_constant_ISIV;
#else
return PERL_constant_NOTDEF;
#endif
}
if (memEQ(name, "DB_NOINTMP", 10)) {
/* ^ */
#ifdef DB_NOINTMP
*iv_return = DB_NOINTMP;
return PERL_constant_ISIV;
#else
return PERL_constant_NOTDEF;
#endif
}
break;
case 'N':
if (memEQ(name, "DB_CURRENT", 10)) {
/* ^ */
#ifdef DB_CURRENT
*iv_return = DB_CURRENT;
return PERL_constant_ISIV;
#else
return PERL_constant_NOTDEF;
#endif
}
if (memEQ(name, "DB_JOINENV", 10)) {
/* ^ */
#ifdef DB_JOINENV
*iv_return = DB_JOINENV;
return PERL_constant_ISIV;
#else
return PERL_constant_NOTDEF;
#endif
}
if (memEQ(name, "DB_SEQ_INC", 10)) {
/* ^ */
#ifdef DB_SEQ_INC
*iv_return = DB_SEQ_INC;
return PERL_constant_ISIV;
#else
return PERL_constant_NOTDEF;
#endif
}
break;
case 'O':
if (memEQ(name, "DB_NOERROR", 10)) {
/* ^ */
#ifdef DB_NOERROR
*iv_return = DB_NOERROR;
return PERL_constant_ISIV;
#else
return PERL_constant_NOTDEF;
#endif
}
break;
case 'P':
if (memEQ(name, "DB_ENCRYPT", 10)) {
/* ^ */
#ifdef DB_ENCRYPT
*iv_return = DB_ENCRYPT;
return PERL_constant_ISIV;
#else
return PERL_constant_NOTDEF;
#endif
}
break;
case 'R':
if (memEQ(name, "DB_CONVERT", 10)) {
/* ^ */
#ifdef DB_CONVERT
*iv_return = DB_CONVERT;
return PERL_constant_ISIV;
#else
return PERL_constant_NOTDEF;
#endif
}
if (memEQ(name, "DB_DUPSORT", 10)) {
/* ^ */
#ifdef DB_DUPSORT
*iv_return = DB_DUPSORT;
return PERL_constant_ISIV;
#else
return PERL_constant_NOTDEF;
#endif
}
if (memEQ(name, "LOGREC_ARG", 10)) {
/* ^ */
#if (DB_VERSION_MAJOR > 5) || \
(DB_VERSION_MAJOR == 5 && DB_VERSION_MINOR > 0) || \
(DB_VERSION_MAJOR == 5 && DB_VERSION_MINOR == 0 && \
DB_VERSION_PATCH >= 21)
*iv_return = LOGREC_ARG;
return PERL_constant_ISIV;
#else
return PERL_constant_NOTDEF;
#endif
}
break;
case 'S':
if (memEQ(name, "DB_KEYLAST", 10)) {
/* ^ */
#ifdef DB_KEYLAST
*iv_return = DB_KEYLAST;
return PERL_constant_ISIV;
#else
return PERL_constant_NOTDEF;
#endif
}
if (memEQ(name, "DB_NOFLUSH", 10)) {
/* ^ */
#ifdef DB_NOFLUSH
*iv_return = DB_NOFLUSH;
return PERL_constant_ISIV;
#else
return PERL_constant_NOTDEF;
#endif
}
if (memEQ(name, "DB_OK_HASH", 10)) {
/* ^ */
#ifdef DB_OK_HASH
*iv_return = DB_OK_HASH;
return PERL_constant_ISIV;
#else
return PERL_constant_NOTDEF;
#endif
}
break;
case 'T':
if (memEQ(name, "DB_PRIVATE", 10)) {
/* ^ */
#ifdef DB_PRIVATE
*iv_return = DB_PRIVATE;
return PERL_constant_ISIV;
#else
return PERL_constant_NOTDEF;
#endif
}
if (memEQ(name, "DB_SET_LTE", 10)) {
/* ^ */
#ifdef DB_SET_LTE
*iv_return = DB_SET_LTE;
return PERL_constant_ISIV;
#else
return PERL_constant_NOTDEF;
#endif
}
break;
case 'U':
if (memEQ(name, "DB_TIMEOUT", 10)) {
/* ^ */
#ifdef DB_TIMEOUT
*iv_return = DB_TIMEOUT;
return PERL_constant_ISIV;
#else
return PERL_constant_NOTDEF;
#endif
}
break;
case 'W':
if (memEQ(name, "DB_UNKNOWN", 10)) {
/* ^ */
#if (DB_VERSION_MAJOR > 2) || \
(DB_VERSION_MAJOR == 2 && DB_VERSION_MINOR > 0) || \
(DB_VERSION_MAJOR == 2 && DB_VERSION_MINOR == 0 && \
DB_VERSION_PATCH >= 3)
*iv_return = DB_UNKNOWN;
return PERL_constant_ISIV;
#else
return PERL_constant_NOTDEF;
#endif
}
break;
case 'X':
if (memEQ(name, "DB_ENV_TXN", 10)) {
/* ^ */
#ifdef DB_ENV_TXN
*iv_return = DB_ENV_TXN;
return PERL_constant_ISIV;
#else
return PERL_constant_NOTDEF;
#endif
}
break;
}
return PERL_constant_NOTFOUND;
}
static int
constant_11 (pTHX_ const char *name, IV *iv_return) {
/* When generated this function returned values for the list of names given
here. However, subsequent manual editing may have added or removed some.
DB2_AM_EXCL DB_APP_INIT DB_ARCH_ABS DB_ARCH_LOG DB_DEGREE_2 DB_DSYNC_DB
DB_FILEOPEN DB_FIXEDLEN DB_GET_BOTH DB_GID_SIZE DB_INIT_CDB DB_INIT_LOG
DB_INIT_REP DB_INIT_TXN DB_KEYEMPTY DB_KEYEXIST DB_KEYFIRST DB_LOCKDOWN
DB_LOCK_GET DB_LOCK_PUT DB_LOGMAGIC DB_LOG_BLOB DB_LOG_DISK DB_LOG_PERM
DB_LOG_ZERO DB_MEM_LOCK DB_MULTIPLE DB_NEXT_DUP DB_NOSERVER DB_NOTFOUND
DB_OK_BTREE DB_OK_QUEUE DB_OK_RECNO DB_POSITION DB_PREV_DUP DB_QAMMAGIC
DB_REGISTER DB_RENUMBER DB_SEQ_WRAP DB_SNAPSHOT DB_STAT_ALL DB_ST_DUPOK
DB_ST_RELEN DB_TRUNCATE DB_TXNMAGIC DB_TXN_BULK DB_TXN_LOCK DB_TXN_REDO
DB_TXN_SYNC DB_TXN_UNDO DB_TXN_WAIT DB_WRNOSYNC DB_YIELDCPU LOGREC_DATA
LOGREC_DBOP LOGREC_Done LOGREC_TIME */
/* Offset 8 gives the best switch position. */
switch (name[8]) {
case 'A':
if (memEQ(name, "DB_ARCH_ABS", 11)) {
/* ^ */
#ifdef DB_ARCH_ABS
*iv_return = DB_ARCH_ABS;
return PERL_constant_ISIV;
#else
return PERL_constant_NOTDEF;
#endif
}
if (memEQ(name, "DB_STAT_ALL", 11)) {
/* ^ */
#ifdef DB_STAT_ALL
*iv_return = DB_STAT_ALL;
return PERL_constant_ISIV;
#else
return PERL_constant_NOTDEF;
#endif
}
if (memEQ(name, "DB_TRUNCATE", 11)) {
/* ^ */
#ifdef DB_TRUNCATE
*iv_return = DB_TRUNCATE;
return PERL_constant_ISIV;
#else
return PERL_constant_NOTDEF;
#endif
}
if (memEQ(name, "DB_TXN_WAIT", 11)) {
/* ^ */
#ifdef DB_TXN_WAIT
*iv_return = DB_TXN_WAIT;
return PERL_constant_ISIV;
#else
return PERL_constant_NOTDEF;
#endif
}
if (memEQ(name, "LOGREC_DATA", 11)) {
/* ^ */
#if (DB_VERSION_MAJOR > 5) || \
(DB_VERSION_MAJOR == 5 && DB_VERSION_MINOR > 0) || \
(DB_VERSION_MAJOR == 5 && DB_VERSION_MINOR == 0 && \
DB_VERSION_PATCH >= 21)
*iv_return = LOGREC_DATA;
return PERL_constant_ISIV;
#else
return PERL_constant_NOTDEF;
#endif
}
break;
case 'B':
if (memEQ(name, "DB_RENUMBER", 11)) {
/* ^ */
#ifdef DB_RENUMBER
*iv_return = DB_RENUMBER;
return PERL_constant_ISIV;
#else
return PERL_constant_NOTDEF;
#endif
}
if (memEQ(name, "LOGREC_DBOP", 11)) {
/* ^ */
#if (DB_VERSION_MAJOR > 5) || \
(DB_VERSION_MAJOR == 5 && DB_VERSION_MINOR > 0) || \
(DB_VERSION_MAJOR == 5 && DB_VERSION_MINOR == 0 && \
DB_VERSION_PATCH >= 21)
*iv_return = LOGREC_DBOP;
return PERL_constant_ISIV;
#else
return PERL_constant_NOTDEF;
#endif
}
break;
case 'C':
if (memEQ(name, "DB_INIT_CDB", 11)) {
/* ^ */
#ifdef DB_INIT_CDB
*iv_return = DB_INIT_CDB;
return PERL_constant_ISIV;
#else
return PERL_constant_NOTDEF;
#endif
}
if (memEQ(name, "DB_OK_RECNO", 11)) {
/* ^ */
#ifdef DB_OK_RECNO
*iv_return = DB_OK_RECNO;
return PERL_constant_ISIV;
#else
return PERL_constant_NOTDEF;
#endif
}
if (memEQ(name, "DB_YIELDCPU", 11)) {
/* ^ */
#ifdef DB_YIELDCPU
*iv_return = DB_YIELDCPU;
return PERL_constant_ISIV;
#else
return PERL_constant_NOTDEF;
#endif
}
break;
case 'D':
if (memEQ(name, "DB_NEXT_DUP", 11)) {
/* ^ */