-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconst-c.inc
3865 lines (3831 loc) · 135 KB
/
const-c.inc
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_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.
AF_LOCAL HTTP_0_9 HTTP_1_0 HTTP_1_1 HTTP_GET HTTP_PUT IPP_DATA IPP_GONE
IPP_IDLE IPP_PORT PPD_CS_N */
/* Offset 5 gives the best switch position. */
switch (name[5]) {
case '0':
if (memEQ(name, "HTTP_0_9", 8)) {
/* ^ */
*iv_return = HTTP_0_9;
return PERL_constant_ISIV;
}
break;
case '1':
if (memEQ(name, "HTTP_1_0", 8)) {
/* ^ */
*iv_return = HTTP_1_0;
return PERL_constant_ISIV;
}
if (memEQ(name, "HTTP_1_1", 8)) {
/* ^ */
*iv_return = HTTP_1_1;
return PERL_constant_ISIV;
}
break;
case 'A':
if (memEQ(name, "IPP_DATA", 8)) {
/* ^ */
*iv_return = IPP_DATA;
return PERL_constant_ISIV;
}
break;
case 'C':
if (memEQ(name, "AF_LOCAL", 8)) {
/* ^ */
*iv_return = AF_LOCAL;
return PERL_constant_ISIV;
}
break;
case 'D':
if (memEQ(name, "IPP_IDLE", 8)) {
/* ^ */
*iv_return = IPP_IDLE;
return PERL_constant_ISIV;
}
break;
case 'G':
if (memEQ(name, "HTTP_GET", 8)) {
/* ^ */
*iv_return = HTTP_GET;
return PERL_constant_ISIV;
}
break;
case 'O':
if (memEQ(name, "IPP_GONE", 8)) {
/* ^ */
*iv_return = IPP_GONE;
return PERL_constant_ISIV;
}
if (memEQ(name, "IPP_PORT", 8)) {
/* ^ */
*iv_return = IPP_PORT;
return PERL_constant_ISIV;
}
break;
case 'P':
if (memEQ(name, "HTTP_PUT", 8)) {
/* ^ */
*iv_return = HTTP_PUT;
return PERL_constant_ISIV;
}
break;
case 'S':
if (memEQ(name, "PPD_CS_N", 8)) {
/* ^ */
*iv_return = PPD_CS_N;
return PERL_constant_ISIV;
}
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.
CUPS_UTF8 HTTP_GONE HTTP_HEAD HTTP_POST IPP_ERROR */
/* Offset 5 gives the best switch position. */
switch (name[5]) {
case 'G':
if (memEQ(name, "HTTP_GONE", 9)) {
/* ^ */
*iv_return = HTTP_GONE;
return PERL_constant_ISIV;
}
break;
case 'H':
if (memEQ(name, "HTTP_HEAD", 9)) {
/* ^ */
*iv_return = HTTP_HEAD;
return PERL_constant_ISIV;
}
break;
case 'P':
if (memEQ(name, "HTTP_POST", 9)) {
/* ^ */
*iv_return = HTTP_POST;
return PERL_constant_ISIV;
}
break;
case 'R':
if (memEQ(name, "IPP_ERROR", 9)) {
/* ^ */
*iv_return = IPP_ERROR;
return PERL_constant_ISIV;
}
break;
case 'U':
if (memEQ(name, "CUPS_UTF8", 9)) {
/* ^ */
*iv_return = CUPS_UTF8;
return PERL_constant_ISIV;
}
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.
HTTP_CLOSE HTTP_ERROR HTTP_TRACE IPP_HEADER PPD_CS_CMY PPD_CS_RGB */
/* Offset 8 gives the best switch position. */
switch (name[8]) {
case 'C':
if (memEQ(name, "HTTP_TRACE", 10)) {
/* ^ */
*iv_return = HTTP_TRACE;
return PERL_constant_ISIV;
}
break;
case 'E':
if (memEQ(name, "IPP_HEADER", 10)) {
/* ^ */
*iv_return = IPP_HEADER;
return PERL_constant_ISIV;
}
break;
case 'G':
if (memEQ(name, "PPD_CS_RGB", 10)) {
/* ^ */
*iv_return = PPD_CS_RGB;
return PERL_constant_ISIV;
}
break;
case 'M':
if (memEQ(name, "PPD_CS_CMY", 10)) {
/* ^ */
*iv_return = PPD_CS_CMY;
return PERL_constant_ISIV;
}
break;
case 'O':
if (memEQ(name, "HTTP_ERROR", 10)) {
/* ^ */
*iv_return = HTTP_ERROR;
return PERL_constant_ISIV;
}
break;
case 'S':
if (memEQ(name, "HTTP_CLOSE", 10)) {
/* ^ */
*iv_return = HTTP_CLOSE;
return PERL_constant_ISIV;
}
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.
CUPS_EUC_CN CUPS_EUC_JP CUPS_EUC_KR CUPS_EUC_TW CUPS_KOI8_R CUPS_KOI8_U
HTTP_DELETE HTTP_STATUS HTTP_URI_OK IPP_CHARSET IPP_PRIVATE IPP_TAG_END
IPP_TAG_JOB IPP_TAG_URI IPP_TIMEOUT PPD_CS_CMYK PPD_CS_GRAY PPD_CS_RGBK
PPD_VERSION */
/* Offset 10 gives the best switch position. */
switch (name[10]) {
case 'B':
if (memEQ(name, "IPP_TAG_JO", 10)) {
/* B */
*iv_return = IPP_TAG_JOB;
return PERL_constant_ISIV;
}
break;
case 'D':
if (memEQ(name, "IPP_TAG_EN", 10)) {
/* D */
*iv_return = IPP_TAG_END;
return PERL_constant_ISIV;
}
break;
case 'E':
if (memEQ(name, "HTTP_DELET", 10)) {
/* E */
*iv_return = HTTP_DELETE;
return PERL_constant_ISIV;
}
if (memEQ(name, "IPP_PRIVAT", 10)) {
/* E */
*iv_return = IPP_PRIVATE;
return PERL_constant_ISIV;
}
break;
case 'I':
if (memEQ(name, "IPP_TAG_UR", 10)) {
/* I */
*iv_return = IPP_TAG_URI;
return PERL_constant_ISIV;
}
break;
case 'K':
if (memEQ(name, "HTTP_URI_O", 10)) {
/* K */
*iv_return = HTTP_URI_OK;
return PERL_constant_ISIV;
}
if (memEQ(name, "PPD_CS_CMY", 10)) {
/* K */
*iv_return = PPD_CS_CMYK;
return PERL_constant_ISIV;
}
if (memEQ(name, "PPD_CS_RGB", 10)) {
/* K */
*iv_return = PPD_CS_RGBK;
return PERL_constant_ISIV;
}
break;
case 'N':
if (memEQ(name, "CUPS_EUC_C", 10)) {
/* N */
*iv_return = CUPS_EUC_CN;
return PERL_constant_ISIV;
}
if (memEQ(name, "PPD_VERSIO", 10)) {
/* N */
*iv_return = PPD_VERSION;
return PERL_constant_ISIV;
}
break;
case 'P':
if (memEQ(name, "CUPS_EUC_J", 10)) {
/* P */
*iv_return = CUPS_EUC_JP;
return PERL_constant_ISIV;
}
break;
case 'R':
if (memEQ(name, "CUPS_EUC_K", 10)) {
/* R */
*iv_return = CUPS_EUC_KR;
return PERL_constant_ISIV;
}
if (memEQ(name, "CUPS_KOI8_", 10)) {
/* R */
*iv_return = CUPS_KOI8_R;
return PERL_constant_ISIV;
}
break;
case 'S':
if (memEQ(name, "HTTP_STATU", 10)) {
/* S */
*iv_return = HTTP_STATUS;
return PERL_constant_ISIV;
}
break;
case 'T':
if (memEQ(name, "IPP_CHARSE", 10)) {
/* T */
*iv_return = IPP_CHARSET;
return PERL_constant_ISIV;
}
if (memEQ(name, "IPP_TIMEOU", 10)) {
/* T */
*iv_return = IPP_TIMEOUT;
return PERL_constant_ISIV;
}
break;
case 'U':
if (memEQ(name, "CUPS_KOI8_", 10)) {
/* U */
*iv_return = CUPS_KOI8_U;
return PERL_constant_ISIV;
}
break;
case 'W':
if (memEQ(name, "CUPS_EUC_T", 10)) {
/* W */
*iv_return = CUPS_EUC_TW;
return PERL_constant_ISIV;
}
break;
case 'Y':
if (memEQ(name, "PPD_CS_GRA", 10)) {
/* Y */
*iv_return = PPD_CS_GRAY;
return PERL_constant_ISIV;
}
break;
}
return PERL_constant_NOTFOUND;
}
static int
constant_12 (pTHX_ const char *name, IV *iv_return) {
/* When generated this function returned values for the list of names given
here. However, subsequent manual editing may have added or removed some.
CUPS_VERSION HTTP_CREATED HTTP_MAX_URI HTTP_OPTIONS HTTP_WAITING
IPP_CONFLICT IPP_GET_JOBS IPP_HOLD_JOB IPP_JOB_HELD IPP_MAX_NAME
IPP_OK_SUBST IPP_PORTRAIT IPP_SEND_URI IPP_TAG_COPY IPP_TAG_DATE
IPP_TAG_ENUM IPP_TAG_MASK IPP_TAG_NAME IPP_TAG_TEXT IPP_TAG_ZERO
PPD_MAX_LINE PPD_MAX_NAME PPD_MAX_TEXT */
/* Offset 8 gives the best switch position. */
switch (name[8]) {
case 'A':
if (memEQ(name, "HTTP_CREATED", 12)) {
/* ^ */
*iv_return = HTTP_CREATED;
return PERL_constant_ISIV;
}
break;
case 'C':
if (memEQ(name, "IPP_TAG_COPY", 12)) {
/* ^ */
*iv_return = IPP_TAG_COPY;
return PERL_constant_ISIV;
}
break;
case 'D':
if (memEQ(name, "IPP_TAG_DATE", 12)) {
/* ^ */
*iv_return = IPP_TAG_DATE;
return PERL_constant_ISIV;
}
break;
case 'E':
if (memEQ(name, "IPP_TAG_ENUM", 12)) {
/* ^ */
*iv_return = IPP_TAG_ENUM;
return PERL_constant_ISIV;
}
break;
case 'H':
if (memEQ(name, "IPP_JOB_HELD", 12)) {
/* ^ */
*iv_return = IPP_JOB_HELD;
return PERL_constant_ISIV;
}
break;
case 'I':
if (memEQ(name, "HTTP_OPTIONS", 12)) {
/* ^ */
*iv_return = HTTP_OPTIONS;
return PERL_constant_ISIV;
}
break;
case 'J':
if (memEQ(name, "IPP_GET_JOBS", 12)) {
/* ^ */
*iv_return = IPP_GET_JOBS;
return PERL_constant_ISIV;
}
break;
case 'L':
if (memEQ(name, "IPP_CONFLICT", 12)) {
/* ^ */
*iv_return = IPP_CONFLICT;
return PERL_constant_ISIV;
}
if (memEQ(name, "PPD_MAX_LINE", 12)) {
/* ^ */
*iv_return = PPD_MAX_LINE;
return PERL_constant_ISIV;
}
break;
case 'M':
if (memEQ(name, "IPP_TAG_MASK", 12)) {
/* ^ */
*iv_return = IPP_TAG_MASK;
return PERL_constant_ISIV;
}
break;
case 'N':
if (memEQ(name, "IPP_MAX_NAME", 12)) {
/* ^ */
*iv_return = IPP_MAX_NAME;
return PERL_constant_ISIV;
}
if (memEQ(name, "IPP_TAG_NAME", 12)) {
/* ^ */
*iv_return = IPP_TAG_NAME;
return PERL_constant_ISIV;
}
if (memEQ(name, "PPD_MAX_NAME", 12)) {
/* ^ */
*iv_return = PPD_MAX_NAME;
return PERL_constant_ISIV;
}
break;
case 'R':
if (memEQ(name, "IPP_PORTRAIT", 12)) {
/* ^ */
*iv_return = IPP_PORTRAIT;
return PERL_constant_ISIV;
}
break;
case 'S':
if (memEQ(name, "CUPS_VERSION", 12)) {
/* ^ */
*iv_return = CUPS_VERSION;
return PERL_constant_ISIV;
}
break;
case 'T':
if (memEQ(name, "HTTP_WAITING", 12)) {
/* ^ */
*iv_return = HTTP_WAITING;
return PERL_constant_ISIV;
}
if (memEQ(name, "IPP_TAG_TEXT", 12)) {
/* ^ */
*iv_return = IPP_TAG_TEXT;
return PERL_constant_ISIV;
}
if (memEQ(name, "PPD_MAX_TEXT", 12)) {
/* ^ */
*iv_return = PPD_MAX_TEXT;
return PERL_constant_ISIV;
}
break;
case 'U':
if (memEQ(name, "IPP_OK_SUBST", 12)) {
/* ^ */
*iv_return = IPP_OK_SUBST;
return PERL_constant_ISIV;
}
break;
case 'Z':
if (memEQ(name, "IPP_TAG_ZERO", 12)) {
/* ^ */
*iv_return = IPP_TAG_ZERO;
return PERL_constant_ISIV;
}
break;
case '_':
if (memEQ(name, "HTTP_MAX_URI", 12)) {
/* ^ */
*iv_return = HTTP_MAX_URI;
return PERL_constant_ISIV;
}
if (memEQ(name, "IPP_HOLD_JOB", 12)) {
/* ^ */
*iv_return = IPP_HOLD_JOB;
return PERL_constant_ISIV;
}
if (memEQ(name, "IPP_SEND_URI", 12)) {
/* ^ */
*iv_return = IPP_SEND_URI;
return PERL_constant_ISIV;
}
break;
}
return PERL_constant_NOTFOUND;
}
static int
constant_13 (pTHX_ const char *name, IV *iv_return) {
/* When generated this function returned values for the list of names given
here. However, subsequent manual editing may have added or removed some.
CUPS_DATE_ANY CUPS_GET_PPDS CUPS_MOVE_JOB CUPS_US_ASCII HTTP_ACCEPTED
HTTP_AUTH_MD5 HTTP_CONFLICT HTTP_CONTINUE HTTP_GET_SEND HTTP_MAX_HOST
HTTP_PUT_RECV IPP_ATTRIBUTE IPP_FORBIDDEN IPP_LANDSCAPE IPP_NOT_FOUND
IPP_PRINT_JOB IPP_PRINT_URI IPP_TAG_RANGE PPD_NULL_FILE PPD_ORDER_ANY
PPD_ORDER_JCL */
/* Offset 6 gives the best switch position. */
switch (name[6]) {
case 'A':
if (memEQ(name, "CUPS_DATE_ANY", 13)) {
/* ^ */
*iv_return = CUPS_DATE_ANY;
return PERL_constant_ISIV;
}
if (memEQ(name, "HTTP_MAX_HOST", 13)) {
/* ^ */
*iv_return = HTTP_MAX_HOST;
return PERL_constant_ISIV;
}
break;
case 'C':
if (memEQ(name, "HTTP_ACCEPTED", 13)) {
/* ^ */
*iv_return = HTTP_ACCEPTED;
return PERL_constant_ISIV;
}
break;
case 'D':
if (memEQ(name, "PPD_ORDER_ANY", 13)) {
/* ^ */
*iv_return = PPD_ORDER_ANY;
return PERL_constant_ISIV;
}
if (memEQ(name, "PPD_ORDER_JCL", 13)) {
/* ^ */
*iv_return = PPD_ORDER_JCL;
return PERL_constant_ISIV;
}
break;
case 'E':
if (memEQ(name, "CUPS_GET_PPDS", 13)) {
/* ^ */
*iv_return = CUPS_GET_PPDS;
return PERL_constant_ISIV;
}
if (memEQ(name, "HTTP_GET_SEND", 13)) {
/* ^ */
*iv_return = HTTP_GET_SEND;
return PERL_constant_ISIV;
}
break;
case 'G':
if (memEQ(name, "IPP_TAG_RANGE", 13)) {
/* ^ */
*iv_return = IPP_TAG_RANGE;
return PERL_constant_ISIV;
}
break;
case 'I':
if (memEQ(name, "IPP_PRINT_JOB", 13)) {
/* ^ */
*iv_return = IPP_PRINT_JOB;
return PERL_constant_ISIV;
}
if (memEQ(name, "IPP_PRINT_URI", 13)) {
/* ^ */
*iv_return = IPP_PRINT_URI;
return PERL_constant_ISIV;
}
break;
case 'L':
if (memEQ(name, "PPD_NULL_FILE", 13)) {
/* ^ */
*iv_return = PPD_NULL_FILE;
return PERL_constant_ISIV;
}
break;
case 'N':
if (memEQ(name, "IPP_LANDSCAPE", 13)) {
/* ^ */
*iv_return = IPP_LANDSCAPE;
return PERL_constant_ISIV;
}
break;
case 'O':
if (memEQ(name, "CUPS_MOVE_JOB", 13)) {
/* ^ */
*iv_return = CUPS_MOVE_JOB;
return PERL_constant_ISIV;
}
if (memEQ(name, "HTTP_CONFLICT", 13)) {
/* ^ */
*iv_return = HTTP_CONFLICT;
return PERL_constant_ISIV;
}
if (memEQ(name, "HTTP_CONTINUE", 13)) {
/* ^ */
*iv_return = HTTP_CONTINUE;
return PERL_constant_ISIV;
}
break;
case 'R':
if (memEQ(name, "IPP_FORBIDDEN", 13)) {
/* ^ */
*iv_return = IPP_FORBIDDEN;
return PERL_constant_ISIV;
}
break;
case 'S':
if (memEQ(name, "CUPS_US_ASCII", 13)) {
/* ^ */
*iv_return = CUPS_US_ASCII;
return PERL_constant_ISIV;
}
break;
case 'T':
if (memEQ(name, "IPP_ATTRIBUTE", 13)) {
/* ^ */
*iv_return = IPP_ATTRIBUTE;
return PERL_constant_ISIV;
}
if (memEQ(name, "IPP_NOT_FOUND", 13)) {
/* ^ */
*iv_return = IPP_NOT_FOUND;
return PERL_constant_ISIV;
}
break;
case 'U':
if (memEQ(name, "HTTP_AUTH_MD5", 13)) {
/* ^ */
*iv_return = HTTP_AUTH_MD5;
return PERL_constant_ISIV;
}
if (memEQ(name, "HTTP_PUT_RECV", 13)) {
/* ^ */
*iv_return = HTTP_PUT_RECV;
return PERL_constant_ISIV;
}
break;
}
return PERL_constant_NOTFOUND;
}
static int
constant_14 (pTHX_ const char *name, IV *iv_return) {
/* When generated this function returned values for the list of names given
here. However, subsequent manual editing may have added or removed some.
CUPS_ADD_CLASS CUPS_FILE_GZIP CUPS_FILE_NONE CUPS_IMAGE_CMY CUPS_IMAGE_RGB
CUPS_ISO8859_1 CUPS_ISO8859_2 CUPS_ISO8859_3 CUPS_ISO8859_4 CUPS_ISO8859_5
CUPS_ISO8859_6 CUPS_ISO8859_7 CUPS_ISO8859_8 CUPS_ISO8859_9 CUPS_MAC_ROMAN
HTTP_AUTH_NONE HTTP_FIELD_MAX HTTP_FORBIDDEN HTTP_MAX_VALUE HTTP_NOT_FOUND
HTTP_POST_RECV HTTP_POST_SEND HTTP_SEE_OTHER HTTP_USE_PROXY IPP_ATTRIBUTES
IPP_CANCEL_JOB IPP_CREATE_JOB IPP_MAX_VALUES IPP_PURGE_JOBS IPP_RESUME_JOB
IPP_RES_PER_CM IPP_TAG_STRING IPP_URI_SCHEME PPD_CUSTOM_INT PPD_ORDER_EXIT
PPD_ORDER_PAGE PPD_UI_BOOLEAN PPD_UI_PICKONE */
/* Offset 13 gives the best switch position. */
switch (name[13]) {
case '1':
if (memEQ(name, "CUPS_ISO8859_", 13)) {
/* 1 */
*iv_return = CUPS_ISO8859_1;
return PERL_constant_ISIV;
}
break;
case '2':
if (memEQ(name, "CUPS_ISO8859_", 13)) {
/* 2 */
*iv_return = CUPS_ISO8859_2;
return PERL_constant_ISIV;
}
break;
case '3':
if (memEQ(name, "CUPS_ISO8859_", 13)) {
/* 3 */
*iv_return = CUPS_ISO8859_3;
return PERL_constant_ISIV;
}
break;
case '4':
if (memEQ(name, "CUPS_ISO8859_", 13)) {
/* 4 */
*iv_return = CUPS_ISO8859_4;
return PERL_constant_ISIV;
}
break;
case '5':
if (memEQ(name, "CUPS_ISO8859_", 13)) {
/* 5 */
*iv_return = CUPS_ISO8859_5;
return PERL_constant_ISIV;
}
break;
case '6':
if (memEQ(name, "CUPS_ISO8859_", 13)) {
/* 6 */
*iv_return = CUPS_ISO8859_6;
return PERL_constant_ISIV;
}
break;
case '7':
if (memEQ(name, "CUPS_ISO8859_", 13)) {
/* 7 */
*iv_return = CUPS_ISO8859_7;
return PERL_constant_ISIV;
}
break;
case '8':
if (memEQ(name, "CUPS_ISO8859_", 13)) {
/* 8 */
*iv_return = CUPS_ISO8859_8;
return PERL_constant_ISIV;
}
break;
case '9':
if (memEQ(name, "CUPS_ISO8859_", 13)) {
/* 9 */
*iv_return = CUPS_ISO8859_9;
return PERL_constant_ISIV;
}
break;
case 'B':
if (memEQ(name, "CUPS_IMAGE_RG", 13)) {
/* B */
*iv_return = CUPS_IMAGE_RGB;
return PERL_constant_ISIV;
}
if (memEQ(name, "IPP_CANCEL_JO", 13)) {
/* B */
*iv_return = IPP_CANCEL_JOB;
return PERL_constant_ISIV;
}
if (memEQ(name, "IPP_CREATE_JO", 13)) {
/* B */
*iv_return = IPP_CREATE_JOB;
return PERL_constant_ISIV;
}
if (memEQ(name, "IPP_RESUME_JO", 13)) {
/* B */
*iv_return = IPP_RESUME_JOB;
return PERL_constant_ISIV;
}
break;
case 'D':
if (memEQ(name, "HTTP_NOT_FOUN", 13)) {
/* D */
*iv_return = HTTP_NOT_FOUND;
return PERL_constant_ISIV;
}
if (memEQ(name, "HTTP_POST_SEN", 13)) {
/* D */
*iv_return = HTTP_POST_SEND;
return PERL_constant_ISIV;
}
break;
case 'E':
if (memEQ(name, "CUPS_FILE_NON", 13)) {
/* E */
*iv_return = CUPS_FILE_NONE;
return PERL_constant_ISIV;
}
if (memEQ(name, "HTTP_AUTH_NON", 13)) {
/* E */
*iv_return = HTTP_AUTH_NONE;
return PERL_constant_ISIV;
}
if (memEQ(name, "HTTP_MAX_VALU", 13)) {
/* E */
*iv_return = HTTP_MAX_VALUE;
return PERL_constant_ISIV;
}
if (memEQ(name, "IPP_URI_SCHEM", 13)) {
/* E */
*iv_return = IPP_URI_SCHEME;
return PERL_constant_ISIV;
}
if (memEQ(name, "PPD_ORDER_PAG", 13)) {
/* E */
*iv_return = PPD_ORDER_PAGE;
return PERL_constant_ISIV;
}
if (memEQ(name, "PPD_UI_PICKON", 13)) {
/* E */
*iv_return = PPD_UI_PICKONE;
return PERL_constant_ISIV;
}
break;
case 'G':
if (memEQ(name, "IPP_TAG_STRIN", 13)) {
/* G */
*iv_return = IPP_TAG_STRING;
return PERL_constant_ISIV;
}
break;
case 'M':
if (memEQ(name, "IPP_RES_PER_C", 13)) {
/* M */
*iv_return = IPP_RES_PER_CM;
return PERL_constant_ISIV;
}
break;
case 'N':
if (memEQ(name, "CUPS_MAC_ROMA", 13)) {
/* N */
*iv_return = CUPS_MAC_ROMAN;
return PERL_constant_ISIV;
}
if (memEQ(name, "HTTP_FORBIDDE", 13)) {
/* N */
*iv_return = HTTP_FORBIDDEN;
return PERL_constant_ISIV;
}
if (memEQ(name, "PPD_UI_BOOLEA", 13)) {
/* N */
*iv_return = PPD_UI_BOOLEAN;
return PERL_constant_ISIV;
}
break;
case 'P':
if (memEQ(name, "CUPS_FILE_GZI", 13)) {
/* P */
*iv_return = CUPS_FILE_GZIP;
return PERL_constant_ISIV;
}
break;
case 'R':
if (memEQ(name, "HTTP_SEE_OTHE", 13)) {
/* R */
*iv_return = HTTP_SEE_OTHER;
return PERL_constant_ISIV;
}
break;
case 'S':
if (memEQ(name, "CUPS_ADD_CLAS", 13)) {
/* S */
*iv_return = CUPS_ADD_CLASS;
return PERL_constant_ISIV;
}
if (memEQ(name, "IPP_ATTRIBUTE", 13)) {
/* S */
*iv_return = IPP_ATTRIBUTES;
return PERL_constant_ISIV;
}
if (memEQ(name, "IPP_MAX_VALUE", 13)) {
/* S */
*iv_return = IPP_MAX_VALUES;
return PERL_constant_ISIV;
}
if (memEQ(name, "IPP_PURGE_JOB", 13)) {
/* S */
*iv_return = IPP_PURGE_JOBS;
return PERL_constant_ISIV;
}
break;
case 'T':
if (memEQ(name, "PPD_CUSTOM_IN", 13)) {
/* T */
*iv_return = PPD_CUSTOM_INT;
return PERL_constant_ISIV;
}
if (memEQ(name, "PPD_ORDER_EXI", 13)) {
/* T */
*iv_return = PPD_ORDER_EXIT;
return PERL_constant_ISIV;
}
break;
case 'V':
if (memEQ(name, "HTTP_POST_REC", 13)) {
/* V */
*iv_return = HTTP_POST_RECV;
return PERL_constant_ISIV;
}
break;
case 'X':
if (memEQ(name, "HTTP_FIELD_MA", 13)) {
/* X */
*iv_return = HTTP_FIELD_MAX;
return PERL_constant_ISIV;
}
break;
case 'Y':
if (memEQ(name, "CUPS_IMAGE_CM", 13)) {
/* Y */
*iv_return = CUPS_IMAGE_CMY;
return PERL_constant_ISIV;
}
if (memEQ(name, "HTTP_USE_PROX", 13)) {
/* Y */
*iv_return = HTTP_USE_PROXY;
return PERL_constant_ISIV;
}
break;
}
return PERL_constant_NOTFOUND;
}
static int
constant_15 (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.
CUPS_IMAGE_CMYK CUPS_ISO8859_10 CUPS_ISO8859_11 CUPS_ISO8859_13
CUPS_ISO8859_14 CUPS_ISO8859_15 CUPS_ISO8859_16 CUPS_PRINTER_BW
HTTP_AUTH_BASIC HTTP_FIELD_DATE HTTP_FIELD_HOST HTTP_FIELD_LINK
HTTP_MAX_BUFFER HTTP_NO_CONTENT IPP_BAD_REQUEST IPP_JOB_ABORTED
IPP_JOB_PENDING IPP_JOB_STOPPED IPP_OK_CONFLICT IPP_PROMOTE_JOB
IPP_RELEASE_JOB IPP_RESTART_JOB IPP_TAG_BOOLEAN IPP_TAG_CHARSET
IPP_TAG_DEFAULT IPP_TAG_INTEGER IPP_TAG_KEYWORD IPP_TAG_NOVALUE
IPP_TAG_PRINTER IPP_TAG_UNKNOWN PPD_ALLOC_ERROR PPD_BAD_OPEN_UI
PPD_CUSTOM_REAL PPD_UI_PICKMANY */
/* Offset 14 gives the best switch position. */
switch (name[14]) {
case '0':
if (memEQ(name, "CUPS_ISO8859_1", 14)) {
/* 0 */
*iv_return = CUPS_ISO8859_10;
return PERL_constant_ISIV;
}
break;
case '1':
if (memEQ(name, "CUPS_ISO8859_1", 14)) {
/* 1 */
*iv_return = CUPS_ISO8859_11;
return PERL_constant_ISIV;
}
break;
case '3':
if (memEQ(name, "CUPS_ISO8859_1", 14)) {
/* 3 */
*iv_return = CUPS_ISO8859_13;
return PERL_constant_ISIV;
}
break;
case '4':
if (memEQ(name, "CUPS_ISO8859_1", 14)) {
/* 4 */
*iv_return = CUPS_ISO8859_14;
return PERL_constant_ISIV;
}
break;
case '5':
if (memEQ(name, "CUPS_ISO8859_1", 14)) {
/* 5 */
*iv_return = CUPS_ISO8859_15;
return PERL_constant_ISIV;
}
break;
case '6':
if (memEQ(name, "CUPS_ISO8859_1", 14)) {
/* 6 */
*iv_return = CUPS_ISO8859_16;
return PERL_constant_ISIV;
}
break;
case 'B':
if (memEQ(name, "IPP_PROMOTE_JO", 14)) {
/* B */
*iv_return = IPP_PROMOTE_JOB;
return PERL_constant_ISIV;
}
if (memEQ(name, "IPP_RELEASE_JO", 14)) {
/* B */
*iv_return = IPP_RELEASE_JOB;
return PERL_constant_ISIV;
}
if (memEQ(name, "IPP_RESTART_JO", 14)) {
/* B */
*iv_return = IPP_RESTART_JOB;
return PERL_constant_ISIV;
}
break;
case 'C':
if (memEQ(name, "HTTP_AUTH_BASI", 14)) {
/* C */
*iv_return = HTTP_AUTH_BASIC;
return PERL_constant_ISIV;
}
break;
case 'D':
if (memEQ(name, "IPP_JOB_ABORTE", 14)) {
/* D */
*iv_return = IPP_JOB_ABORTED;
return PERL_constant_ISIV;
}
if (memEQ(name, "IPP_JOB_STOPPE", 14)) {
/* D */
*iv_return = IPP_JOB_STOPPED;
return PERL_constant_ISIV;
}
if (memEQ(name, "IPP_TAG_KEYWOR", 14)) {
/* D */
*iv_return = IPP_TAG_KEYWORD;
return PERL_constant_ISIV;
}
break;
case 'E':