NfDump.c

filter: Statementstmt 0.0% 0 / 166 Branchbran 0.0% 0 / 68 Conditioncond n/a MC/DCmcdc n/a Subroutinesub n/a Podpod n/a totaltotal 0.0% 0 / 234 SCAR 0
CC
0
Cov
0%
CRAP 0
« blib/lib/Net/NfDump.pm ↑ Summary blib/lib/Net/NfDump/Fields.pm »
1 /*
2 * This file was generated automatically by ExtUtils::ParseXS version 3.63 from the
3 * contents of NfDump.xs. Do not edit this file, edit NfDump.xs instead.
4 *
5 * ANY CHANGES MADE HERE WILL BE LOST!
6 *
7 */
8  
9 #line 1 "NfDump.xs"
10 #include "EXTERN.h"
11 #include "perl.h"
12 #include "XSUB.h"
13  
14 #include "ppport.h"
15  
16 #include "libnf_perl/libnf_perl.h"
17  
18 #include "const-c.inc"
19  
20 /* #include <sys/vfs.h> */
21  
22 #define MATH_INT64_NATIVE_IF_AVAILABLE 1
23 #include "perl_math_int64.h"
24  
25 #line 26 "NfDump.c"
26 #ifndef PERL_UNUSED_VAR
27 # define PERL_UNUSED_VAR(var) if (0) var = var
28 #endif
29  
30 #ifndef dVAR
31 # define dVAR dNOOP
32 #endif
33  
34  
35 /* This stuff is not part of the API! You have been warned. */
36 #ifndef PERL_VERSION_DECIMAL
37 # define PERL_VERSION_DECIMAL(r,v,s) (r*1000000 + v*1000 + s)
38 #endif
39 #ifndef PERL_DECIMAL_VERSION
40 # define PERL_DECIMAL_VERSION \
41 PERL_VERSION_DECIMAL(PERL_REVISION,PERL_VERSION,PERL_SUBVERSION)
42 #endif
43 #ifndef PERL_VERSION_GE
44 # define PERL_VERSION_GE(r,v,s) \
45 (PERL_DECIMAL_VERSION >= PERL_VERSION_DECIMAL(r,v,s))
46 #endif
47 #ifndef PERL_VERSION_LE
48 # define PERL_VERSION_LE(r,v,s) \
49 (PERL_DECIMAL_VERSION <= PERL_VERSION_DECIMAL(r,v,s))
50 #endif
51  
52 /* XS_INTERNAL is the explicit static-linkage variant of the default
53 * XS macro.
54 *
55 * XS_EXTERNAL is the same as XS_INTERNAL except it does not include
56 * "static", ie. it exports XSUB symbols. You probably don't want that
57 * for anything but the BOOT XSUB.
58 *
59 * See XSUB.h in core!
60 */
61  
62  
63 /* TODO: This might be compatible further back than 5.10.0. */
64 #if PERL_VERSION_GE(5, 10, 0) && PERL_VERSION_LE(5, 15, 1)
65 # undef XS_EXTERNAL
66 # undef XS_INTERNAL
67 # if defined(__CYGWIN__) && defined(USE_DYNAMIC_LOADING)
68 # define XS_EXTERNAL(name) __declspec(dllexport) XSPROTO(name)
69 # define XS_INTERNAL(name) static XSPROTO(name)
70 # endif
71 # if defined(__SYMBIAN32__)
72 # define XS_EXTERNAL(name) EXPORT_C XSPROTO(name)
73 # define XS_INTERNAL(name) EXPORT_C static XSPROTO(name)
74 # endif
75 # ifndef XS_EXTERNAL
76 # if defined(HASATTRIBUTE_UNUSED) && !defined(__cplusplus)
77 # define XS_EXTERNAL(name) void name(pTHX_ CV* cv __attribute__unused__)
78 # define XS_INTERNAL(name) static void name(pTHX_ CV* cv __attribute__unused__)
79 # else
80 # ifdef __cplusplus
81 # define XS_EXTERNAL(name) extern "C" XSPROTO(name)
82 # define XS_INTERNAL(name) static XSPROTO(name)
83 # else
84 # define XS_EXTERNAL(name) XSPROTO(name)
85 # define XS_INTERNAL(name) static XSPROTO(name)
86 # endif
87 # endif
88 # endif
89 #endif
90  
91 /* perl >= 5.10.0 && perl <= 5.15.1 */
92  
93  
94 /* The XS_EXTERNAL macro is used for functions that must not be static
95 * like the boot XSUB of a module. If perl didn't have an XS_EXTERNAL
96 * macro defined, the best we can do is assume XS is the same.
97 * Dito for XS_INTERNAL.
98 */
99 #ifndef XS_EXTERNAL
100 # define XS_EXTERNAL(name) XS(name)
101 #endif
102 #ifndef XS_INTERNAL
103 # define XS_INTERNAL(name) XS(name)
104 #endif
105  
106 /* Now, finally, after all this mess, we want an ExtUtils::ParseXS
107 * internal macro that we're free to redefine for varying linkage due
108 * to the EXPORT_XSUB_SYMBOLS XS keyword. This is internal, use
109 * XS_EXTERNAL(name) or XS_INTERNAL(name) in your code if you need to!
110 */
111  
112 #undef XS_EUPXS
113 #if defined(PERL_EUPXS_ALWAYS_EXPORT)
114 # define XS_EUPXS(name) XS_EXTERNAL(name)
115 #else
116 /* default to internal */
117 # define XS_EUPXS(name) XS_INTERNAL(name)
118 #endif
119  
120 #ifndef PERL_ARGS_ASSERT_CROAK_XS_USAGE
121 #define PERL_ARGS_ASSERT_CROAK_XS_USAGE assert(cv); assert(params)
122  
123 /* prototype to pass -Wmissing-prototypes */
124 static void
125 S_croak_xs_usage(const CV *const cv, const char *const params);
126  
127 static void
128 S_croak_xs_usage(const CV *const cv, const char *const params)
129 {
130 const GV *const gv = CvGV(cv);
131  
132 PERL_ARGS_ASSERT_CROAK_XS_USAGE;
133  
134 if (gv) {
135 const char *const gvname = GvNAME(gv);
136 const HV *const stash = GvSTASH(gv);
137 const char *const hvname = stash ? HvNAME(stash) : NULL;
138  
139 if (hvname)
140 Perl_croak_nocontext("Usage: %s::%s(%s)", hvname, gvname, params);
141 else
142 Perl_croak_nocontext("Usage: %s(%s)", gvname, params);
143 } else {
144 /* Pants. I don't think that it should be possible to get here. */
145 Perl_croak_nocontext("Usage: CODE(0x%" UVxf ")(%s)", PTR2UV(cv), params);
146 }
147 }
148 #undef PERL_ARGS_ASSERT_CROAK_XS_USAGE
149  
150 #define croak_xs_usage S_croak_xs_usage
151  
152 #endif
153  
154 /* NOTE: the prototype of newXSproto() is different in versions of perls,
155 * so we define a portable version of newXSproto()
156 */
157 #ifdef newXS_flags
158 #define newXSproto_portable(name, c_impl, file, proto) newXS_flags(name, c_impl, file, proto, 0)
159 #else
160 #define newXSproto_portable(name, c_impl, file, proto) (PL_Sv=(SV*)newXS(name, c_impl, file), sv_setpv(PL_Sv, proto), (CV*)PL_Sv)
161 #endif /* !defined(newXS_flags) */
162  
163 #if PERL_VERSION_LE(5, 21, 5)
164 # define newXS_deffile(a,b) Perl_newXS(aTHX_ a,b,file)
165 #else
166 # define newXS_deffile(a,b) Perl_newXS_deffile(aTHX_ a,b)
167 #endif
168  
169 /* simple backcompat versions of the TARGx() macros with no optimisation */
170 #ifndef TARGi
171 # define TARGi(iv, do_taint) sv_setiv_mg(TARG, iv)
172 # define TARGu(uv, do_taint) sv_setuv_mg(TARG, uv)
173 # define TARGn(nv, do_taint) sv_setnv_mg(TARG, nv)
174 #endif
175  
176 #line 177 "NfDump.c"
177  
178 /* INCLUDE: Including 'const-xs.inc' from 'NfDump.xs' */
179  
180  
181 XS_EUPXS(XS_Net__NfDump_constant); /* prototype to pass -Wmissing-prototypes */
182 0 XS_EUPXS(XS_Net__NfDump_constant)
183 {
184 0 dVAR; dXSARGS;
185 0 ▶ if (items != 1)
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) 0 0 0
186 0 croak_xs_usage(cv, "sv");
187 PERL_UNUSED_VAR(ax); /* -Wall */
188 0 ▶ SP -= items;
Branch: 1 branch
BranchTrueFalseTotal
SP -= items; 0 0 0
189 {
190 #line 4 "./const-xs.inc"
191 #ifdef dXSTARG
192 dXSTARG; /* Faster if we have it. */
193 #else
194 dTARGET;
195 #endif
196 STRLEN len;
197 int type;
198 /* IV iv; Uncomment this if you need to return IVs */
199 /* NV nv; Uncomment this if you need to return NVs */
200 /* const char *pv; Uncomment this if you need to return PVs */
201 #line 202 "NfDump.c"
202 0 SV * sv = ST(0)
203 ;
204 0 const char * s = SvPV(sv, len);
205 #line 18 "./const-xs.inc"
206 type = constant(aTHX_ s, len);
207 /* Return 1 or 2 items. First is error message, or undef if no error.
208 Second, if present, is found value */
209 switch (type) {
210 case PERL_constant_NOTFOUND:
211 sv =
212 sv_2mortal(newSVpvf("%s is not a valid Net::NfDump macro", s));
213 PUSHs(sv);
214 break;
215 case PERL_constant_NOTDEF:
216 sv = sv_2mortal(newSVpvf(
217 "Your vendor has not defined Net::NfDump macro %s, used",
218 s));
219 PUSHs(sv);
220 break;
221 /* Uncomment this if you need to return IVs
222 case PERL_constant_ISIV:
223 EXTEND(SP, 2);
224 PUSHs(&PL_sv_undef);
225 PUSHi(iv);
226 break; */
227 /* Uncomment this if you need to return NOs
228 case PERL_constant_ISNO:
229 EXTEND(SP, 2);
230 PUSHs(&PL_sv_undef);
231 PUSHs(&PL_sv_no);
232 break; */
233 /* Uncomment this if you need to return NVs
234 case PERL_constant_ISNV:
235 EXTEND(SP, 2);
236 PUSHs(&PL_sv_undef);
237 PUSHn(nv);
238 break; */
239 /* Uncomment this if you need to return PVs
240 case PERL_constant_ISPV:
241 EXTEND(SP, 2);
242 PUSHs(&PL_sv_undef);
243 PUSHp(pv, strlen(pv));
244 break; */
245 /* Uncomment this if you need to return PVNs
246 case PERL_constant_ISPVN:
247 EXTEND(SP, 2);
248 PUSHs(&PL_sv_undef);
249 PUSHp(pv, iv);
250 break; */
251 /* Uncomment this if you need to return SVs
252 case PERL_constant_ISSV:
253 EXTEND(SP, 2);
254 PUSHs(&PL_sv_undef);
255 PUSHs(sv);
256 break; */
257 /* Uncomment this if you need to return UNDEFs
258 case PERL_constant_ISUNDEF:
259 break; */
260 /* Uncomment this if you need to return UVs
261 case PERL_constant_ISUV:
262 EXTEND(SP, 2);
263 PUSHs(&PL_sv_undef);
264 PUSHu((UV)iv);
265 break; */
266 /* Uncomment this if you need to return YESs
267 case PERL_constant_ISYES:
268 EXTEND(SP, 2);
269 PUSHs(&PL_sv_undef);
270 PUSHs(&PL_sv_yes);
271 break; */
272 default:
273 sv = sv_2mortal(newSVpvf(
274 "Unexpected return type %d while processing Net::NfDump macro %s, used",
275 type, s));
276 PUSHs(sv);
277 }
278 #line 279 "NfDump.c"
279 0 PUTBACK;
280 0 return;
281 }
282 }
283  
284  
285 /* INCLUDE: Returning to 'NfDump.xs' from 'const-xs.inc' */
286  
287  
288 XS_EUPXS(XS_Net__NfDump_libnf_file_info); /* prototype to pass -Wmissing-prototypes */
289 0 XS_EUPXS(XS_Net__NfDump_libnf_file_info)
290 {
291 0 dVAR; dXSARGS;
292 0 ▶ if (items != 1)
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) 0 0 0
293 0 croak_xs_usage(cv, "file");
294 {
295 0 char * file = (char *)SvPV_nolen(ST(0))
296 ;
297 SV * RETVAL;
298  
299 0 RETVAL = libnf_file_info(file);
300 0 RETVAL = sv_2mortal(RETVAL);
301 0 ST(0) = RETVAL;
302 }
303 0 XSRETURN(1);
304 }
305  
306  
307 XS_EUPXS(XS_Net__NfDump_libnf_init); /* prototype to pass -Wmissing-prototypes */
308 0 XS_EUPXS(XS_Net__NfDump_libnf_init)
309 {
310 0 dVAR; dXSARGS;
311 0 ▶ if (items != 0)
Branch: 1 branch
BranchTrueFalseTotal
if (items != 0) 0 0 0
312 0 croak_xs_usage(cv, "");
313 {
314 int RETVAL;
315 0 ▶ dXSTARG;
Branch: 1 branch
BranchTrueFalseTotal
dXSTARG; 0 0 0
316  
317 0 RETVAL = libnf_init();
318 0 ▶ TARGi((IV)RETVAL, 1);
Branch: 1 branch
BranchTrueFalseTotal
TARGi((IV)RETVAL, 1); 0 0 0
319 0 ST(0) = TARG;
320 }
321 0 XSRETURN(1);
322 }
323  
324  
325 XS_EUPXS(XS_Net__NfDump_libnf_instance_info); /* prototype to pass -Wmissing-prototypes */
326 0 XS_EUPXS(XS_Net__NfDump_libnf_instance_info)
327 {
328 0 dVAR; dXSARGS;
329 0 ▶ if (items != 1)
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) 0 0 0
330 0 croak_xs_usage(cv, "handle");
331 {
332 0 int handle = (int)SvIV(ST(0))
333 ;
334 SV * RETVAL;
335  
336 0 RETVAL = libnf_instance_info(handle);
337 0 RETVAL = sv_2mortal(RETVAL);
338 0 ST(0) = RETVAL;
339 }
340 0 XSRETURN(1);
341 }
342  
343  
344 XS_EUPXS(XS_Net__NfDump_libnf_read_files); /* prototype to pass -Wmissing-prototypes */
345 0 XS_EUPXS(XS_Net__NfDump_libnf_read_files)
346 {
347 0 dVAR; dXSARGS;
348 0 ▶ if (items != 5)
Branch: 1 branch
BranchTrueFalseTotal
if (items != 5) 0 0 0
349 0 croak_xs_usage(cv, "handle, filter, window_start, window_end, files");
350 {
351 0 int handle = (int)SvIV(ST(0))
352 ;
353 0 char * filter = (char *)SvPV_nolen(ST(1))
354 ;
355 0 int window_start = (int)SvIV(ST(2))
356 ;
357 0 int window_end = (int)SvIV(ST(3))
358 ;
359 0 SV * files = ST(4)
360 ;
361 int RETVAL;
362 0 ▶ dXSTARG;
Branch: 1 branch
BranchTrueFalseTotal
dXSTARG; 0 0 0
363  
364 0 RETVAL = libnf_read_files(handle, filter, window_start, window_end, files);
365 0 ▶ TARGi((IV)RETVAL, 1);
Branch: 1 branch
BranchTrueFalseTotal
TARGi((IV)RETVAL, 1); 0 0 0
366 0 ST(0) = TARG;
367 }
368 0 XSRETURN(1);
369 }
370  
371  
372 XS_EUPXS(XS_Net__NfDump_libnf_read_row); /* prototype to pass -Wmissing-prototypes */
373 0 XS_EUPXS(XS_Net__NfDump_libnf_read_row)
374 {
375 0 dVAR; dXSARGS;
376 0 ▶ if (items != 1)
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) 0 0 0
377 0 croak_xs_usage(cv, "handle");
378 {
379 0 int handle = (int)SvIV(ST(0))
380 ;
381 SV * RETVAL;
382  
383 0 RETVAL = libnf_read_row(handle);
384 0 RETVAL = sv_2mortal(RETVAL);
385 0 ST(0) = RETVAL;
386 }
387 0 XSRETURN(1);
388 }
389  
390  
391 XS_EUPXS(XS_Net__NfDump_libnf_create_file); /* prototype to pass -Wmissing-prototypes */
392 0 XS_EUPXS(XS_Net__NfDump_libnf_create_file)
393 {
394 0 dVAR; dXSARGS;
395 0 ▶ if (items != 5)
Branch: 1 branch
BranchTrueFalseTotal
if (items != 5) 0 0 0
396 0 croak_xs_usage(cv, "handle, filename, compressed, anonymized, ident");
397 {
398 0 int handle = (int)SvIV(ST(0))
399 ;
400 0 char * filename = (char *)SvPV_nolen(ST(1))
401 ;
402 0 int compressed = (int)SvIV(ST(2))
403 ;
404 0 int anonymized = (int)SvIV(ST(3))
405 ;
406 0 ▶ char * ident = (char *)SvPV_nolen(ST(4))
Branch: 1 branch
BranchTrueFalseTotal
char * ident = (char *)SvPV_nolen(ST(4)) 0 0 0
407 ;
408 int RETVAL;
409 0 ▶ dXSTARG;
Branch: 1 branch
BranchTrueFalseTotal
dXSTARG; 0 0 0
410  
411 0 RETVAL = libnf_create_file(handle, filename, compressed, anonymized, ident);
412 0 ▶ TARGi((IV)RETVAL, 1);
Branch: 1 branch
BranchTrueFalseTotal
TARGi((IV)RETVAL, 1); 0 0 0
413 0 ST(0) = TARG;
414 }
415 0 XSRETURN(1);
416 }
417  
418  
419 XS_EUPXS(XS_Net__NfDump_libnf_set_fields); /* prototype to pass -Wmissing-prototypes */
420 0 XS_EUPXS(XS_Net__NfDump_libnf_set_fields)
421 {
422 0 dVAR; dXSARGS;
423 0 ▶ if (items != 2)
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) 0 0 0
424 0 croak_xs_usage(cv, "handle, fields");
425 {
426 0 int handle = (int)SvIV(ST(0))
427 ;
428 0 SV * fields = ST(1)
429 ;
430 int RETVAL;
431 0 ▶ dXSTARG;
Branch: 1 branch
BranchTrueFalseTotal
dXSTARG; 0 0 0
432  
433 0 RETVAL = libnf_set_fields(handle, fields);
434 0 ▶ TARGi((IV)RETVAL, 1);
Branch: 1 branch
BranchTrueFalseTotal
TARGi((IV)RETVAL, 1); 0 0 0
435 0 ST(0) = TARG;
436 }
437 0 XSRETURN(1);
438 }
439  
440  
441 XS_EUPXS(XS_Net__NfDump_libnf_aggr_add); /* prototype to pass -Wmissing-prototypes */
442 0 XS_EUPXS(XS_Net__NfDump_libnf_aggr_add)
443 {
444 0 dVAR; dXSARGS;
445 0 ▶ if (items != 5)
Branch: 1 branch
BranchTrueFalseTotal
if (items != 5) 0 0 0
446 0 croak_xs_usage(cv, "handle, field, flags, numbits, numbits6");
447 {
448 0 int handle = (int)SvIV(ST(0))
449 ;
450 0 int field = (int)SvIV(ST(1))
451 ;
452 0 int flags = (int)SvIV(ST(2))
453 ;
454 0 int numbits = (int)SvIV(ST(3))
455 ;
456 0 int numbits6 = (int)SvIV(ST(4))
457 ;
458 int RETVAL;
459 0 ▶ dXSTARG;
Branch: 1 branch
BranchTrueFalseTotal
dXSTARG; 0 0 0
460  
461 0 RETVAL = libnf_aggr_add(handle, field, flags, numbits, numbits6);
462 0 ▶ TARGi((IV)RETVAL, 1);
Branch: 1 branch
BranchTrueFalseTotal
TARGi((IV)RETVAL, 1); 0 0 0
463 0 ST(0) = TARG;
464 }
465 0 XSRETURN(1);
466 }
467  
468  
469 XS_EUPXS(XS_Net__NfDump_libnf_listmode); /* prototype to pass -Wmissing-prototypes */
470 0 XS_EUPXS(XS_Net__NfDump_libnf_listmode)
471 {
472 0 dVAR; dXSARGS;
473 0 ▶ if (items != 1)
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) 0 0 0
474 0 croak_xs_usage(cv, "handle");
475 {
476 0 int handle = (int)SvIV(ST(0))
477 ;
478 int RETVAL;
479 0 ▶ dXSTARG;
Branch: 1 branch
BranchTrueFalseTotal
dXSTARG; 0 0 0
480  
481 0 RETVAL = libnf_listmode(handle);
482 0 ▶ TARGi((IV)RETVAL, 1);
Branch: 1 branch
BranchTrueFalseTotal
TARGi((IV)RETVAL, 1); 0 0 0
483 0 ST(0) = TARG;
484 }
485 0 XSRETURN(1);
486 }
487  
488  
489 XS_EUPXS(XS_Net__NfDump_libnf_compatmode); /* prototype to pass -Wmissing-prototypes */
490 0 XS_EUPXS(XS_Net__NfDump_libnf_compatmode)
491 {
492 0 dVAR; dXSARGS;
493 0 ▶ if (items != 1)
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) 0 0 0
494 0 croak_xs_usage(cv, "handle");
495 {
496 0 int handle = (int)SvIV(ST(0))
497 ;
498 int RETVAL;
499 0 ▶ dXSTARG;
Branch: 1 branch
BranchTrueFalseTotal
dXSTARG; 0 0 0
500  
501 0 RETVAL = libnf_compatmode(handle);
502 0 ▶ TARGi((IV)RETVAL, 1);
Branch: 1 branch
BranchTrueFalseTotal
TARGi((IV)RETVAL, 1); 0 0 0
503 0 ST(0) = TARG;
504 }
505 0 XSRETURN(1);
506 }
507  
508  
509 XS_EUPXS(XS_Net__NfDump_libnf_copy_row); /* prototype to pass -Wmissing-prototypes */
510 0 XS_EUPXS(XS_Net__NfDump_libnf_copy_row)
511 {
512 0 dVAR; dXSARGS;
513 0 ▶ if (items != 2)
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) 0 0 0
514 0 croak_xs_usage(cv, "handle, src_handle");
515 {
516 0 int handle = (int)SvIV(ST(0))
517 ;
518 0 int src_handle = (int)SvIV(ST(1))
519 ;
520 int RETVAL;
521 0 ▶ dXSTARG;
Branch: 1 branch
BranchTrueFalseTotal
dXSTARG; 0 0 0
522  
523 0 RETVAL = libnf_copy_row(handle, src_handle);
524 0 ▶ TARGi((IV)RETVAL, 1);
Branch: 1 branch
BranchTrueFalseTotal
TARGi((IV)RETVAL, 1); 0 0 0
525 0 ST(0) = TARG;
526 }
527 0 XSRETURN(1);
528 }
529  
530  
531 XS_EUPXS(XS_Net__NfDump_libnf_write_row); /* prototype to pass -Wmissing-prototypes */
532 0 XS_EUPXS(XS_Net__NfDump_libnf_write_row)
533 {
534 0 dVAR; dXSARGS;
535 0 ▶ if (items != 2)
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) 0 0 0
536 0 croak_xs_usage(cv, "handle, arrayref");
537 {
538 0 int handle = (int)SvIV(ST(0))
539 ;
540 0 SV * arrayref = ST(1)
541 ;
542 int RETVAL;
543 0 ▶ dXSTARG;
Branch: 1 branch
BranchTrueFalseTotal
dXSTARG; 0 0 0
544  
545 0 RETVAL = libnf_write_row(handle, arrayref);
546 0 ▶ TARGi((IV)RETVAL, 1);
Branch: 1 branch
BranchTrueFalseTotal
TARGi((IV)RETVAL, 1); 0 0 0
547 0 ST(0) = TARG;
548 }
549 0 XSRETURN(1);
550 }
551  
552  
553 XS_EUPXS(XS_Net__NfDump_libnf_finish); /* prototype to pass -Wmissing-prototypes */
554 0 XS_EUPXS(XS_Net__NfDump_libnf_finish)
555 {
556 0 dVAR; dXSARGS;
557 0 ▶ if (items != 1)
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) 0 0 0
558 0 croak_xs_usage(cv, "handle");
559 {
560 0 int handle = (int)SvIV(ST(0))
561 ;
562  
563 0 libnf_finish(handle);
564 }
565 0 XSRETURN_EMPTY;
566 }
567  
568 #ifdef __cplusplus
569 extern "C" {
570 #endif
571 XS_EXTERNAL(boot_Net__NfDump); /* prototype to pass -Wmissing-prototypes */
572 0 XS_EXTERNAL(boot_Net__NfDump)
573 {
574 #if PERL_VERSION_LE(5, 21, 5)
575 dVAR; dXSARGS;
576 #else
577 0 dVAR; dXSBOOTARGSXSAPIVERCHK;
578 #endif
579 #if PERL_VERSION_LE(5, 8, 999) /* PERL_VERSION_LT is 5.33+ */
580 char* file = __FILE__;
581 #else
582 0 const char* file = __FILE__;
583 #endif
584  
585 PERL_UNUSED_VAR(file);
586  
587 PERL_UNUSED_VAR(cv); /* -W */
588 PERL_UNUSED_VAR(items); /* -W */
589 #if PERL_VERSION_LE(5, 21, 5)
590 XS_VERSION_BOOTCHECK;
591 # ifdef XS_APIVERSION_BOOTCHECK
592 XS_APIVERSION_BOOTCHECK;
593 # endif
594 #endif
595  
596 0 newXS_deffile("Net::NfDump::constant", XS_Net__NfDump_constant);
597 0 newXS_deffile("Net::NfDump::libnf_file_info", XS_Net__NfDump_libnf_file_info);
598 0 newXS_deffile("Net::NfDump::libnf_init", XS_Net__NfDump_libnf_init);
599 0 newXS_deffile("Net::NfDump::libnf_instance_info", XS_Net__NfDump_libnf_instance_info);
600 0 newXS_deffile("Net::NfDump::libnf_read_files", XS_Net__NfDump_libnf_read_files);
601 0 newXS_deffile("Net::NfDump::libnf_read_row", XS_Net__NfDump_libnf_read_row);
602 0 newXS_deffile("Net::NfDump::libnf_create_file", XS_Net__NfDump_libnf_create_file);
603 0 newXS_deffile("Net::NfDump::libnf_set_fields", XS_Net__NfDump_libnf_set_fields);
604 0 newXS_deffile("Net::NfDump::libnf_aggr_add", XS_Net__NfDump_libnf_aggr_add);
605 0 newXS_deffile("Net::NfDump::libnf_listmode", XS_Net__NfDump_libnf_listmode);
606 0 newXS_deffile("Net::NfDump::libnf_compatmode", XS_Net__NfDump_libnf_compatmode);
607 0 newXS_deffile("Net::NfDump::libnf_copy_row", XS_Net__NfDump_libnf_copy_row);
608 0 newXS_deffile("Net::NfDump::libnf_write_row", XS_Net__NfDump_libnf_write_row);
609 0 newXS_deffile("Net::NfDump::libnf_finish", XS_Net__NfDump_libnf_finish);
610  
611 /* Initialisation Section */
612  
613 #line 19 "NfDump.xs"
614 #ifndef MATH_INT64_NATIVE
615 MATH_INT64_BOOT;
616 #endif
617  
618 #line 619 "NfDump.c"
619  
620 /* End of Initialisation Section */
621  
622 #if PERL_VERSION_LE(5, 21, 5)
623 # if PERL_VERSION_GE(5, 9, 0)
624 if (PL_unitcheckav)
625 call_list(PL_scopestack_ix, PL_unitcheckav);
626 # endif
627 XSRETURN_YES;
628 #else
629 0 Perl_xs_boot_epilog(aTHX_ ax);
630 #endif
631 0 }
632  
633 #ifdef __cplusplus
634 }
635 #endif
« blib/lib/Net/NfDump.pm ↑ Summary blib/lib/Net/NfDump/Fields.pm »