line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
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
|
0
|
|
|
|
|
|
_category_constant_3 (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
|
|
|
|
|
|
|
NET ODB SSH SSL TAG */ |
28
|
|
|
|
|
|
|
/* Offset 2 gives the best switch position. */ |
29
|
0
|
|
|
|
|
|
switch (name[2]) { |
30
|
|
|
|
|
|
|
case 'B': |
31
|
0
|
0
|
|
|
|
|
if (name[0] == 'O' && name[1] == 'D') { |
|
|
0
|
|
|
|
|
|
32
|
|
|
|
|
|
|
#ifdef ODB |
33
|
0
|
|
|
|
|
|
*iv_return = ODB; |
34
|
0
|
|
|
|
|
|
return PERL_constant_ISIV; |
35
|
|
|
|
|
|
|
#else |
36
|
|
|
|
|
|
|
return PERL_constant_NOTDEF; |
37
|
|
|
|
|
|
|
#endif |
38
|
|
|
|
|
|
|
} |
39
|
0
|
|
|
|
|
|
break; |
40
|
|
|
|
|
|
|
case 'G': |
41
|
0
|
0
|
|
|
|
|
if (name[0] == 'T' && name[1] == 'A') { |
|
|
0
|
|
|
|
|
|
42
|
|
|
|
|
|
|
#ifdef TAG |
43
|
0
|
|
|
|
|
|
*iv_return = TAG; |
44
|
0
|
|
|
|
|
|
return PERL_constant_ISIV; |
45
|
|
|
|
|
|
|
#else |
46
|
|
|
|
|
|
|
return PERL_constant_NOTDEF; |
47
|
|
|
|
|
|
|
#endif |
48
|
|
|
|
|
|
|
} |
49
|
0
|
|
|
|
|
|
break; |
50
|
|
|
|
|
|
|
case 'H': |
51
|
0
|
0
|
|
|
|
|
if (name[0] == 'S' && name[1] == 'S') { |
|
|
0
|
|
|
|
|
|
52
|
|
|
|
|
|
|
#ifdef SSH |
53
|
0
|
|
|
|
|
|
*iv_return = SSH; |
54
|
0
|
|
|
|
|
|
return PERL_constant_ISIV; |
55
|
|
|
|
|
|
|
#else |
56
|
|
|
|
|
|
|
return PERL_constant_NOTDEF; |
57
|
|
|
|
|
|
|
#endif |
58
|
|
|
|
|
|
|
} |
59
|
0
|
|
|
|
|
|
break; |
60
|
|
|
|
|
|
|
case 'L': |
61
|
0
|
0
|
|
|
|
|
if (name[0] == 'S' && name[1] == 'S') { |
|
|
0
|
|
|
|
|
|
62
|
|
|
|
|
|
|
#ifdef SSL |
63
|
0
|
|
|
|
|
|
*iv_return = SSL; |
64
|
0
|
|
|
|
|
|
return PERL_constant_ISIV; |
65
|
|
|
|
|
|
|
#else |
66
|
|
|
|
|
|
|
return PERL_constant_NOTDEF; |
67
|
|
|
|
|
|
|
#endif |
68
|
|
|
|
|
|
|
} |
69
|
0
|
|
|
|
|
|
break; |
70
|
|
|
|
|
|
|
case 'T': |
71
|
0
|
0
|
|
|
|
|
if (name[0] == 'N' && name[1] == 'E') { |
|
|
0
|
|
|
|
|
|
72
|
|
|
|
|
|
|
#ifdef NET |
73
|
0
|
|
|
|
|
|
*iv_return = NET; |
74
|
0
|
|
|
|
|
|
return PERL_constant_ISIV; |
75
|
|
|
|
|
|
|
#else |
76
|
|
|
|
|
|
|
return PERL_constant_NOTDEF; |
77
|
|
|
|
|
|
|
#endif |
78
|
|
|
|
|
|
|
} |
79
|
0
|
|
|
|
|
|
break; |
80
|
|
|
|
|
|
|
} |
81
|
0
|
|
|
|
|
|
return PERL_constant_NOTFOUND; |
82
|
|
|
|
|
|
|
} |
83
|
|
|
|
|
|
|
|
84
|
|
|
|
|
|
|
static int |
85
|
0
|
|
|
|
|
|
_category_constant_4 (pTHX_ const char *name, IV *iv_return) { |
86
|
|
|
|
|
|
|
/* When generated this function returned values for the list of names given |
87
|
|
|
|
|
|
|
here. However, subsequent manual editing may have added or removed some. |
88
|
|
|
|
|
|
|
NONE TREE ZLIB */ |
89
|
|
|
|
|
|
|
/* Offset 1 gives the best switch position. */ |
90
|
0
|
|
|
|
|
|
switch (name[1]) { |
91
|
|
|
|
|
|
|
case 'L': |
92
|
0
|
0
|
|
|
|
|
if (memEQ(name, "ZLIB", 4)) { |
93
|
|
|
|
|
|
|
/* ^ */ |
94
|
|
|
|
|
|
|
#ifdef ZLIB |
95
|
0
|
|
|
|
|
|
*iv_return = ZLIB; |
96
|
0
|
|
|
|
|
|
return PERL_constant_ISIV; |
97
|
|
|
|
|
|
|
#else |
98
|
|
|
|
|
|
|
return PERL_constant_NOTDEF; |
99
|
|
|
|
|
|
|
#endif |
100
|
|
|
|
|
|
|
} |
101
|
0
|
|
|
|
|
|
break; |
102
|
|
|
|
|
|
|
case 'O': |
103
|
0
|
0
|
|
|
|
|
if (memEQ(name, "NONE", 4)) { |
104
|
|
|
|
|
|
|
/* ^ */ |
105
|
|
|
|
|
|
|
#ifdef NONE |
106
|
0
|
|
|
|
|
|
*iv_return = NONE; |
107
|
0
|
|
|
|
|
|
return PERL_constant_ISIV; |
108
|
|
|
|
|
|
|
#else |
109
|
|
|
|
|
|
|
return PERL_constant_NOTDEF; |
110
|
|
|
|
|
|
|
#endif |
111
|
|
|
|
|
|
|
} |
112
|
0
|
|
|
|
|
|
break; |
113
|
|
|
|
|
|
|
case 'R': |
114
|
0
|
0
|
|
|
|
|
if (memEQ(name, "TREE", 4)) { |
115
|
|
|
|
|
|
|
/* ^ */ |
116
|
|
|
|
|
|
|
#ifdef TREE |
117
|
0
|
|
|
|
|
|
*iv_return = TREE; |
118
|
0
|
|
|
|
|
|
return PERL_constant_ISIV; |
119
|
|
|
|
|
|
|
#else |
120
|
|
|
|
|
|
|
return PERL_constant_NOTDEF; |
121
|
|
|
|
|
|
|
#endif |
122
|
|
|
|
|
|
|
} |
123
|
0
|
|
|
|
|
|
break; |
124
|
|
|
|
|
|
|
} |
125
|
0
|
|
|
|
|
|
return PERL_constant_NOTFOUND; |
126
|
|
|
|
|
|
|
} |
127
|
|
|
|
|
|
|
|
128
|
|
|
|
|
|
|
static int |
129
|
0
|
|
|
|
|
|
_category_constant_5 (pTHX_ const char *name, IV *iv_return) { |
130
|
|
|
|
|
|
|
/* When generated this function returned values for the list of names given |
131
|
|
|
|
|
|
|
here. However, subsequent manual editing may have added or removed some. |
132
|
|
|
|
|
|
|
INDEX MERGE REGEX STASH */ |
133
|
|
|
|
|
|
|
/* Offset 0 gives the best switch position. */ |
134
|
0
|
|
|
|
|
|
switch (*name++) { |
135
|
|
|
|
|
|
|
case 'I': |
136
|
0
|
0
|
|
|
|
|
if (memEQ(name, "NDEX", 4)) { |
137
|
|
|
|
|
|
|
/* I */ |
138
|
|
|
|
|
|
|
#ifdef INDEX |
139
|
0
|
|
|
|
|
|
*iv_return = INDEX; |
140
|
0
|
|
|
|
|
|
return PERL_constant_ISIV; |
141
|
|
|
|
|
|
|
#else |
142
|
|
|
|
|
|
|
return PERL_constant_NOTDEF; |
143
|
|
|
|
|
|
|
#endif |
144
|
|
|
|
|
|
|
} |
145
|
0
|
|
|
|
|
|
break; |
146
|
|
|
|
|
|
|
case 'M': |
147
|
0
|
0
|
|
|
|
|
if (memEQ(name, "ERGE", 4)) { |
148
|
|
|
|
|
|
|
/* M */ |
149
|
|
|
|
|
|
|
#ifdef MERGE |
150
|
0
|
|
|
|
|
|
*iv_return = MERGE; |
151
|
0
|
|
|
|
|
|
return PERL_constant_ISIV; |
152
|
|
|
|
|
|
|
#else |
153
|
|
|
|
|
|
|
return PERL_constant_NOTDEF; |
154
|
|
|
|
|
|
|
#endif |
155
|
|
|
|
|
|
|
} |
156
|
0
|
|
|
|
|
|
break; |
157
|
|
|
|
|
|
|
case 'R': |
158
|
0
|
0
|
|
|
|
|
if (memEQ(name, "EGEX", 4)) { |
159
|
|
|
|
|
|
|
/* R */ |
160
|
|
|
|
|
|
|
#ifdef REGEX |
161
|
0
|
|
|
|
|
|
*iv_return = REGEX; |
162
|
0
|
|
|
|
|
|
return PERL_constant_ISIV; |
163
|
|
|
|
|
|
|
#else |
164
|
|
|
|
|
|
|
return PERL_constant_NOTDEF; |
165
|
|
|
|
|
|
|
#endif |
166
|
|
|
|
|
|
|
} |
167
|
0
|
|
|
|
|
|
break; |
168
|
|
|
|
|
|
|
case 'S': |
169
|
0
|
0
|
|
|
|
|
if (memEQ(name, "TASH", 4)) { |
170
|
|
|
|
|
|
|
/* S */ |
171
|
|
|
|
|
|
|
#ifdef STASH |
172
|
0
|
|
|
|
|
|
*iv_return = STASH; |
173
|
0
|
|
|
|
|
|
return PERL_constant_ISIV; |
174
|
|
|
|
|
|
|
#else |
175
|
|
|
|
|
|
|
return PERL_constant_NOTDEF; |
176
|
|
|
|
|
|
|
#endif |
177
|
|
|
|
|
|
|
} |
178
|
0
|
|
|
|
|
|
break; |
179
|
|
|
|
|
|
|
} |
180
|
0
|
|
|
|
|
|
return PERL_constant_NOTFOUND; |
181
|
|
|
|
|
|
|
} |
182
|
|
|
|
|
|
|
|
183
|
|
|
|
|
|
|
static int |
184
|
0
|
|
|
|
|
|
_category_constant_6 (pTHX_ const char *name, IV *iv_return) { |
185
|
|
|
|
|
|
|
/* When generated this function returned values for the list of names given |
186
|
|
|
|
|
|
|
here. However, subsequent manual editing may have added or removed some. |
187
|
|
|
|
|
|
|
CONFIG FILTER OBJECT REBASE REVERT THREAD */ |
188
|
|
|
|
|
|
|
/* Offset 4 gives the best switch position. */ |
189
|
0
|
|
|
|
|
|
switch (name[4]) { |
190
|
|
|
|
|
|
|
case 'A': |
191
|
0
|
0
|
|
|
|
|
if (memEQ(name, "THREAD", 6)) { |
192
|
|
|
|
|
|
|
/* ^ */ |
193
|
|
|
|
|
|
|
#ifdef THREAD |
194
|
0
|
|
|
|
|
|
*iv_return = THREAD; |
195
|
0
|
|
|
|
|
|
return PERL_constant_ISIV; |
196
|
|
|
|
|
|
|
#else |
197
|
|
|
|
|
|
|
return PERL_constant_NOTDEF; |
198
|
|
|
|
|
|
|
#endif |
199
|
|
|
|
|
|
|
} |
200
|
0
|
|
|
|
|
|
break; |
201
|
|
|
|
|
|
|
case 'C': |
202
|
0
|
0
|
|
|
|
|
if (memEQ(name, "OBJECT", 6)) { |
203
|
|
|
|
|
|
|
/* ^ */ |
204
|
|
|
|
|
|
|
#ifdef OBJECT |
205
|
0
|
|
|
|
|
|
*iv_return = OBJECT; |
206
|
0
|
|
|
|
|
|
return PERL_constant_ISIV; |
207
|
|
|
|
|
|
|
#else |
208
|
|
|
|
|
|
|
return PERL_constant_NOTDEF; |
209
|
|
|
|
|
|
|
#endif |
210
|
|
|
|
|
|
|
} |
211
|
0
|
|
|
|
|
|
break; |
212
|
|
|
|
|
|
|
case 'E': |
213
|
0
|
0
|
|
|
|
|
if (memEQ(name, "FILTER", 6)) { |
214
|
|
|
|
|
|
|
/* ^ */ |
215
|
|
|
|
|
|
|
#ifdef FILTER |
216
|
0
|
|
|
|
|
|
*iv_return = FILTER; |
217
|
0
|
|
|
|
|
|
return PERL_constant_ISIV; |
218
|
|
|
|
|
|
|
#else |
219
|
|
|
|
|
|
|
return PERL_constant_NOTDEF; |
220
|
|
|
|
|
|
|
#endif |
221
|
|
|
|
|
|
|
} |
222
|
0
|
|
|
|
|
|
break; |
223
|
|
|
|
|
|
|
case 'I': |
224
|
0
|
0
|
|
|
|
|
if (memEQ(name, "CONFIG", 6)) { |
225
|
|
|
|
|
|
|
/* ^ */ |
226
|
|
|
|
|
|
|
#ifdef CONFIG |
227
|
0
|
|
|
|
|
|
*iv_return = CONFIG; |
228
|
0
|
|
|
|
|
|
return PERL_constant_ISIV; |
229
|
|
|
|
|
|
|
#else |
230
|
|
|
|
|
|
|
return PERL_constant_NOTDEF; |
231
|
|
|
|
|
|
|
#endif |
232
|
|
|
|
|
|
|
} |
233
|
0
|
|
|
|
|
|
break; |
234
|
|
|
|
|
|
|
case 'R': |
235
|
0
|
0
|
|
|
|
|
if (memEQ(name, "REVERT", 6)) { |
236
|
|
|
|
|
|
|
/* ^ */ |
237
|
|
|
|
|
|
|
#ifdef REVERT |
238
|
0
|
|
|
|
|
|
*iv_return = REVERT; |
239
|
0
|
|
|
|
|
|
return PERL_constant_ISIV; |
240
|
|
|
|
|
|
|
#else |
241
|
|
|
|
|
|
|
return PERL_constant_NOTDEF; |
242
|
|
|
|
|
|
|
#endif |
243
|
|
|
|
|
|
|
} |
244
|
0
|
|
|
|
|
|
break; |
245
|
|
|
|
|
|
|
case 'S': |
246
|
0
|
0
|
|
|
|
|
if (memEQ(name, "REBASE", 6)) { |
247
|
|
|
|
|
|
|
/* ^ */ |
248
|
|
|
|
|
|
|
#ifdef REBASE |
249
|
0
|
|
|
|
|
|
*iv_return = REBASE; |
250
|
0
|
|
|
|
|
|
return PERL_constant_ISIV; |
251
|
|
|
|
|
|
|
#else |
252
|
|
|
|
|
|
|
return PERL_constant_NOTDEF; |
253
|
|
|
|
|
|
|
#endif |
254
|
|
|
|
|
|
|
} |
255
|
0
|
|
|
|
|
|
break; |
256
|
|
|
|
|
|
|
} |
257
|
0
|
|
|
|
|
|
return PERL_constant_NOTFOUND; |
258
|
|
|
|
|
|
|
} |
259
|
|
|
|
|
|
|
|
260
|
|
|
|
|
|
|
static int |
261
|
2
|
|
|
|
|
|
_category_constant_8 (pTHX_ const char *name, IV *iv_return) { |
262
|
|
|
|
|
|
|
/* When generated this function returned values for the list of names given |
263
|
|
|
|
|
|
|
here. However, subsequent manual editing may have added or removed some. |
264
|
|
|
|
|
|
|
CALLBACK CHECKOUT DESCRIBE INTERNAL NOMEMORY */ |
265
|
|
|
|
|
|
|
/* Offset 1 gives the best switch position. */ |
266
|
2
|
|
|
|
|
|
switch (name[1]) { |
267
|
|
|
|
|
|
|
case 'A': |
268
|
0
|
0
|
|
|
|
|
if (memEQ(name, "CALLBACK", 8)) { |
269
|
|
|
|
|
|
|
/* ^ */ |
270
|
|
|
|
|
|
|
#ifdef CALLBACK |
271
|
0
|
|
|
|
|
|
*iv_return = CALLBACK; |
272
|
0
|
|
|
|
|
|
return PERL_constant_ISIV; |
273
|
|
|
|
|
|
|
#else |
274
|
|
|
|
|
|
|
return PERL_constant_NOTDEF; |
275
|
|
|
|
|
|
|
#endif |
276
|
|
|
|
|
|
|
} |
277
|
0
|
|
|
|
|
|
break; |
278
|
|
|
|
|
|
|
case 'E': |
279
|
0
|
0
|
|
|
|
|
if (memEQ(name, "DESCRIBE", 8)) { |
280
|
|
|
|
|
|
|
/* ^ */ |
281
|
|
|
|
|
|
|
#ifdef DESCRIBE |
282
|
0
|
|
|
|
|
|
*iv_return = DESCRIBE; |
283
|
0
|
|
|
|
|
|
return PERL_constant_ISIV; |
284
|
|
|
|
|
|
|
#else |
285
|
|
|
|
|
|
|
return PERL_constant_NOTDEF; |
286
|
|
|
|
|
|
|
#endif |
287
|
|
|
|
|
|
|
} |
288
|
0
|
|
|
|
|
|
break; |
289
|
|
|
|
|
|
|
case 'H': |
290
|
0
|
0
|
|
|
|
|
if (memEQ(name, "CHECKOUT", 8)) { |
291
|
|
|
|
|
|
|
/* ^ */ |
292
|
|
|
|
|
|
|
#ifdef CHECKOUT |
293
|
0
|
|
|
|
|
|
*iv_return = CHECKOUT; |
294
|
0
|
|
|
|
|
|
return PERL_constant_ISIV; |
295
|
|
|
|
|
|
|
#else |
296
|
|
|
|
|
|
|
return PERL_constant_NOTDEF; |
297
|
|
|
|
|
|
|
#endif |
298
|
|
|
|
|
|
|
} |
299
|
0
|
|
|
|
|
|
break; |
300
|
|
|
|
|
|
|
case 'N': |
301
|
2
|
50
|
|
|
|
|
if (memEQ(name, "INTERNAL", 8)) { |
302
|
|
|
|
|
|
|
/* ^ */ |
303
|
|
|
|
|
|
|
#ifdef INTERNAL |
304
|
2
|
|
|
|
|
|
*iv_return = INTERNAL; |
305
|
2
|
|
|
|
|
|
return PERL_constant_ISIV; |
306
|
|
|
|
|
|
|
#else |
307
|
|
|
|
|
|
|
return PERL_constant_NOTDEF; |
308
|
|
|
|
|
|
|
#endif |
309
|
|
|
|
|
|
|
} |
310
|
0
|
|
|
|
|
|
break; |
311
|
|
|
|
|
|
|
case 'O': |
312
|
0
|
0
|
|
|
|
|
if (memEQ(name, "NOMEMORY", 8)) { |
313
|
|
|
|
|
|
|
/* ^ */ |
314
|
|
|
|
|
|
|
#ifdef NOMEMORY |
315
|
0
|
|
|
|
|
|
*iv_return = NOMEMORY; |
316
|
0
|
|
|
|
|
|
return PERL_constant_ISIV; |
317
|
|
|
|
|
|
|
#else |
318
|
|
|
|
|
|
|
return PERL_constant_NOTDEF; |
319
|
|
|
|
|
|
|
#endif |
320
|
|
|
|
|
|
|
} |
321
|
0
|
|
|
|
|
|
break; |
322
|
|
|
|
|
|
|
} |
323
|
0
|
|
|
|
|
|
return PERL_constant_NOTFOUND; |
324
|
|
|
|
|
|
|
} |
325
|
|
|
|
|
|
|
|
326
|
|
|
|
|
|
|
static int |
327
|
0
|
|
|
|
|
|
_category_constant_9 (pTHX_ const char *name, IV *iv_return) { |
328
|
|
|
|
|
|
|
/* When generated this function returned values for the list of names given |
329
|
|
|
|
|
|
|
here. However, subsequent manual editing may have added or removed some. |
330
|
|
|
|
|
|
|
FETCHHEAD REFERENCE SUBMODULE */ |
331
|
|
|
|
|
|
|
/* Offset 5 gives the best switch position. */ |
332
|
0
|
|
|
|
|
|
switch (name[5]) { |
333
|
|
|
|
|
|
|
case 'D': |
334
|
0
|
0
|
|
|
|
|
if (memEQ(name, "SUBMODULE", 9)) { |
335
|
|
|
|
|
|
|
/* ^ */ |
336
|
|
|
|
|
|
|
#ifdef SUBMODULE |
337
|
0
|
|
|
|
|
|
*iv_return = SUBMODULE; |
338
|
0
|
|
|
|
|
|
return PERL_constant_ISIV; |
339
|
|
|
|
|
|
|
#else |
340
|
|
|
|
|
|
|
return PERL_constant_NOTDEF; |
341
|
|
|
|
|
|
|
#endif |
342
|
|
|
|
|
|
|
} |
343
|
0
|
|
|
|
|
|
break; |
344
|
|
|
|
|
|
|
case 'E': |
345
|
0
|
0
|
|
|
|
|
if (memEQ(name, "REFERENCE", 9)) { |
346
|
|
|
|
|
|
|
/* ^ */ |
347
|
|
|
|
|
|
|
#ifdef REFERENCE |
348
|
0
|
|
|
|
|
|
*iv_return = REFERENCE; |
349
|
0
|
|
|
|
|
|
return PERL_constant_ISIV; |
350
|
|
|
|
|
|
|
#else |
351
|
|
|
|
|
|
|
return PERL_constant_NOTDEF; |
352
|
|
|
|
|
|
|
#endif |
353
|
|
|
|
|
|
|
} |
354
|
0
|
|
|
|
|
|
break; |
355
|
|
|
|
|
|
|
case 'H': |
356
|
0
|
0
|
|
|
|
|
if (memEQ(name, "FETCHHEAD", 9)) { |
357
|
|
|
|
|
|
|
/* ^ */ |
358
|
|
|
|
|
|
|
#ifdef FETCHHEAD |
359
|
0
|
|
|
|
|
|
*iv_return = FETCHHEAD; |
360
|
0
|
|
|
|
|
|
return PERL_constant_ISIV; |
361
|
|
|
|
|
|
|
#else |
362
|
|
|
|
|
|
|
return PERL_constant_NOTDEF; |
363
|
|
|
|
|
|
|
#endif |
364
|
|
|
|
|
|
|
} |
365
|
0
|
|
|
|
|
|
break; |
366
|
|
|
|
|
|
|
} |
367
|
0
|
|
|
|
|
|
return PERL_constant_NOTFOUND; |
368
|
|
|
|
|
|
|
} |
369
|
|
|
|
|
|
|
|
370
|
|
|
|
|
|
|
static int |
371
|
0
|
|
|
|
|
|
_category_constant_10 (pTHX_ const char *name, IV *iv_return) { |
372
|
|
|
|
|
|
|
/* When generated this function returned values for the list of names given |
373
|
|
|
|
|
|
|
here. However, subsequent manual editing may have added or removed some. |
374
|
|
|
|
|
|
|
CHERRYPICK FILESYSTEM REPOSITORY */ |
375
|
|
|
|
|
|
|
/* Offset 1 gives the best switch position. */ |
376
|
0
|
|
|
|
|
|
switch (name[1]) { |
377
|
|
|
|
|
|
|
case 'E': |
378
|
0
|
0
|
|
|
|
|
if (memEQ(name, "REPOSITORY", 10)) { |
379
|
|
|
|
|
|
|
/* ^ */ |
380
|
|
|
|
|
|
|
#ifdef REPOSITORY |
381
|
0
|
|
|
|
|
|
*iv_return = REPOSITORY; |
382
|
0
|
|
|
|
|
|
return PERL_constant_ISIV; |
383
|
|
|
|
|
|
|
#else |
384
|
|
|
|
|
|
|
return PERL_constant_NOTDEF; |
385
|
|
|
|
|
|
|
#endif |
386
|
|
|
|
|
|
|
} |
387
|
0
|
|
|
|
|
|
break; |
388
|
|
|
|
|
|
|
case 'H': |
389
|
0
|
0
|
|
|
|
|
if (memEQ(name, "CHERRYPICK", 10)) { |
390
|
|
|
|
|
|
|
/* ^ */ |
391
|
|
|
|
|
|
|
#ifdef CHERRYPICK |
392
|
0
|
|
|
|
|
|
*iv_return = CHERRYPICK; |
393
|
0
|
|
|
|
|
|
return PERL_constant_ISIV; |
394
|
|
|
|
|
|
|
#else |
395
|
|
|
|
|
|
|
return PERL_constant_NOTDEF; |
396
|
|
|
|
|
|
|
#endif |
397
|
|
|
|
|
|
|
} |
398
|
0
|
|
|
|
|
|
break; |
399
|
|
|
|
|
|
|
case 'I': |
400
|
0
|
0
|
|
|
|
|
if (memEQ(name, "FILESYSTEM", 10)) { |
401
|
|
|
|
|
|
|
/* ^ */ |
402
|
|
|
|
|
|
|
#ifdef FILESYSTEM |
403
|
0
|
|
|
|
|
|
*iv_return = FILESYSTEM; |
404
|
0
|
|
|
|
|
|
return PERL_constant_ISIV; |
405
|
|
|
|
|
|
|
#else |
406
|
|
|
|
|
|
|
return PERL_constant_NOTDEF; |
407
|
|
|
|
|
|
|
#endif |
408
|
|
|
|
|
|
|
} |
409
|
0
|
|
|
|
|
|
break; |
410
|
|
|
|
|
|
|
} |
411
|
0
|
|
|
|
|
|
return PERL_constant_NOTFOUND; |
412
|
|
|
|
|
|
|
} |
413
|
|
|
|
|
|
|
|
414
|
|
|
|
|
|
|
static int |
415
|
2
|
|
|
|
|
|
_category_constant (pTHX_ const char *name, STRLEN len, IV *iv_return) { |
416
|
|
|
|
|
|
|
/* Initially switch on the length of the name. */ |
417
|
|
|
|
|
|
|
/* When generated this function returned values for the list of names given |
418
|
|
|
|
|
|
|
in this section of perl code. Rather than manually editing these functions |
419
|
|
|
|
|
|
|
to add or remove constants, which would result in this comment and section |
420
|
|
|
|
|
|
|
of code becoming inaccurate, we recommend that you edit this section of |
421
|
|
|
|
|
|
|
code, and use it to regenerate a new set of constant functions which you |
422
|
|
|
|
|
|
|
then use to replace the originals. |
423
|
|
|
|
|
|
|
|
424
|
|
|
|
|
|
|
Regenerate these constant functions by feeding this entire source file to |
425
|
|
|
|
|
|
|
perl -x |
426
|
|
|
|
|
|
|
|
427
|
|
|
|
|
|
|
#!/usr/local/bin/perl -w |
428
|
|
|
|
|
|
|
use ExtUtils::Constant qw (constant_types C_constant XS_constant); |
429
|
|
|
|
|
|
|
|
430
|
|
|
|
|
|
|
my $types = {map {($_, 1)} qw(IV)}; |
431
|
|
|
|
|
|
|
my @names = (qw(CALLBACK CHECKOUT CHERRYPICK CONFIG DESCRIBE FETCHHEAD |
432
|
|
|
|
|
|
|
FILESYSTEM FILTER INDEX INDEXER INTERNAL INVALID MERGE NET |
433
|
|
|
|
|
|
|
NOMEMORY NONE OBJECT ODB OS REBASE REFERENCE REGEX REPOSITORY |
434
|
|
|
|
|
|
|
REVERT SSH SSL STASH SUBMODULE TAG THREAD TREE ZLIB)); |
435
|
|
|
|
|
|
|
|
436
|
|
|
|
|
|
|
print constant_types(), "\n"; # macro defs |
437
|
|
|
|
|
|
|
foreach (C_constant ("Git::Raw::Error::Category", '_category_constant', 'IV', $types, undef, 3, @names) ) { |
438
|
|
|
|
|
|
|
print $_, "\n"; # C constant subs |
439
|
|
|
|
|
|
|
} |
440
|
|
|
|
|
|
|
print "\n#### XS Section:\n"; |
441
|
|
|
|
|
|
|
print XS_constant ("Git::Raw::Error::Category", $types); |
442
|
|
|
|
|
|
|
__END__ |