1 # Do not remove the following line; MakeMaker relies on it to identify
2 # this file as a template for defsubs.h
3 # Extracting defsubs.h (with variable substitutions)
5 my ($out) = __FILE__ =~ /(^.*)\.PL/i;
7 open(OUT,">$out") || die "Cannot open $file:$!";
8 print "Extracting $out...\n";
11 !!! Don't modify this file - it's autogenerated from $0 !!!
15 foreach my $const (qw(
58 # This is only present in 5.10, but it's useful to B::Deparse to be able
59 # to import a dummy value from B
60 doconst(OPpPAD_STATE);
63 foreach my $file (qw(op.h cop.h))
65 my $path = $^O eq 'MacOS' ? ":::$file" : "../../$file";
66 open(OPH,"$path") || die "Cannot open $path:$!";
69 doconst($1) if (/#define\s+(\w+)\s+([\(\)\|\dx]+)\s*(?:$|\/\*)/);
80 newCONSTSUB(stash,"$sym",newSViv($sym));
81 av_push(export_ok,newSVpvn("$sym",$l));