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/;
6 if ($^O eq 'VMS') { ($out) = __FILE__ =~ /^(.+)_PL$/i; }
7 open(OUT,">$out") || die "Cannot open $file:$!";
8 print "Extracting $out . . .\n";
9 foreach my $const (qw(AVf_REAL
11 SVf_IOK SVf_IVisUV SVf_NOK SVf_POK
12 SVf_ROK SVp_IOK SVp_POK ))
16 foreach my $file (qw(op.h cop.h))
18 open(OPH,"../../$file") || die "Cannot open ../../$file:$!";
21 doconst($1) if (/#define\s+(\w+)\s+([\(\)\|\dx]+)\s*(?:$|\/\*)/);
32 newCONSTSUB(stash,"$sym",newSViv($sym));
33 av_push(export_ok,newSVpvn("$sym",$l));