hax/make_argcheck_aux.c.inc

filter: Statementstmt 100% 6 / 6 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub n/a Podpod n/a totaltotal 100% 6 / 6 CC 0 SCAR 0
CC
0
Cov
0%
CRAP 0
« blib/lib/XS/Parse/Keyword.pm ↑ Summary t/build.xs »
1 /* vi: set ft=c : */
2  
3 #ifndef make_argcheck_aux
4  
5 #define make_argcheck_aux(params, opt_params, slurpy) S_make_argcheck_aux(aTHX_ params, opt_params, slurpy)
6 6 static inline UNOP_AUX_item *S_make_argcheck_aux(pTHX_ UV params, UV opt_params, char slurpy)
7 {
8 # if HAVE_PERL_VERSION(5, 31, 5)
9 struct op_argcheck_aux *aux = (struct op_argcheck_aux*)
10 6 PerlMemShared_malloc(sizeof(struct op_argcheck_aux));
11 6 aux->params = params;
12 6 aux->opt_params = opt_params;
13 6 aux->slurpy = slurpy;
14 6 return (UNOP_AUX_item *)aux;
15 # else
16 UNOP_AUX_item *aux = (UNOP_AUX_item *)PerlMemShared_malloc(sizeof(UNOP_AUX_item) * 3);
17 aux[0].iv = params;
18 aux[1].iv = opt_params;
19 aux[2].iv = slurpy;
20 return aux;
21 # endif
22 }
23  
24 #endif
« blib/lib/XS/Parse/Keyword.pm ↑ Summary t/build.xs »