| 1 | static int | ||
| 2 | 0 | symbolPropertyBitSet_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_SYMBOL_IS_ACCESSIBLE MARPAESLIF_SYMBOL_IS_NULLABLE | ||
| 19 | MARPAESLIF_SYMBOL_IS_NULLING MARPAESLIF_SYMBOL_IS_PRODUCTIVE | ||
| 20 | MARPAESLIF_SYMBOL_IS_START MARPAESLIF_SYMBOL_IS_TERMINAL)); | ||
| 21 | |||
| 22 | print constant_types(), "\n"; # macro defs | ||
| 23 | foreach (C_constant ("MarpaX::ESLIF::Symbol::PropertyBitSet", 'symbolPropertyBitSet_constant', 'IV', $types, undef, 3, @names) ) { | ||
| 24 | print $_, "\n"; # C constant subs | ||
| 25 | } | ||
| 26 | print "\n#### XS Section:\n"; | ||
| 27 | print XS_constant ("MarpaX::ESLIF::Symbol::PropertyBitSet", $types); | ||
| 28 | __END__ |