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(
18 SVf_READONLY SVTYPEMASK
19 GVf_IMPORTED_AV GVf_IMPORTED_HV
20 GVf_IMPORTED_SV GVf_IMPORTED_CV
21 CVf_CLONE CVf_CLONED CVf_ANON CVf_OLDSTYLE
22 CVf_UNIQUE CVf_NODEBUG CVf_METHOD CVf_LOCKED
23 CVf_LVALUE CVf_CONST CVf_WEAKOUTSIDE CVf_ASSERTION
24 SVpad_OUR SVf_FAKE SVf_IOK SVf_IVisUV SVf_NOK SVf_POK
25 SVf_ROK SVp_IOK SVp_POK SVp_NOK SVt_PVGV SVt_PVHV SVs_RMG
30 foreach my $file (qw(op.h cop.h))
32 my $path = $^O eq 'MacOS' ? ":::$file" : "../../$file";
33 open(OPH,"$path") || die "Cannot open $path:$!";
36 doconst($1) if (/#define\s+(\w+)\s+([\(\)\|\dx]+)\s*(?:$|\/\*)/);
47 newCONSTSUB(stash,"$sym",newSViv($sym));
48 av_push(export_ok,newSVpvn("$sym",$l));