c-symbol-types.inc

filter: Statementstmt 0.0% 0 / 13 Branchbran 0.0% 0 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub n/a Podpod n/a totaltotal 0.0% 0 / 17 CC 0 SCAR 0
CC
0
Cov
0%
CRAP 0
« c-rulePropertyBitSet-types.inc ↑ Summary c-symbolEventBitSet-types.inc »
1 static int
2 0 symbol_constant (pTHX_ const char *name, STRLEN len, IV *iv_return) {
3 /* Initially switch on the length of the name. */
4 /* When generated this function returned values for the list of names given
5 in this section of perl code. Rather than manually editing these functions
6 to add or remove constants, which would result in this comment and section
7 of code becoming inaccurate, we recommend that you edit this section of
8 code, and use it to regenerate a new set of constant functions which you
9 then use to replace the originals.
10  
11 Regenerate these constant functions by feeding this entire source file to
12 perl -x
13  
14 #!/usr/local/bin/perl -w
15 use ExtUtils::Constant qw (constant_types C_constant XS_constant);
16  
17 my $types = {map {($_, 1)} qw(IV)};
18 my @names = (qw(MARPAESLIF_SYMBOLTYPE_META MARPAESLIF_SYMBOLTYPE_TERMINAL));
19  
20 print constant_types(), "\n"; # macro defs
21 foreach (C_constant ("MarpaX::ESLIF::Symbol::Type", 'symbol_constant', 'IV', $types, undef, 3, @names) ) {
22 print $_, "\n"; # C constant subs
23 }
24 print "\n#### XS Section:\n";
25 print XS_constant ("MarpaX::ESLIF::Symbol::Type", $types);
26 __END__
« c-rulePropertyBitSet-types.inc ↑ Summary c-symbolEventBitSet-types.inc »