diff options
author | James E. Keenan <jkeenan@cpan.org> | 2010-04-01 07:08:35 -0400 |
---|---|---|
committer | Steffen Mueller <smueller@cpan.org> | 2011-07-12 20:53:54 +0200 |
commit | ca406d0865853a4cc8be9804c89c49b783a92093 (patch) | |
tree | eca9581407c37951b35918eaeec00844e2d915e5 | |
parent | fe36d2069550819e51746a726236b08cefdb4313 (diff) | |
download | perl-ca406d0865853a4cc8be9804c89c49b783a92093.tar.gz |
Add $Module_cname to $self.
-rw-r--r-- | dist/ExtUtils-ParseXS/lib/ExtUtils/ParseXS.pm | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/dist/ExtUtils-ParseXS/lib/ExtUtils/ParseXS.pm b/dist/ExtUtils-ParseXS/lib/ExtUtils/ParseXS.pm index 39919916f9..5bdf93efb1 100644 --- a/dist/ExtUtils-ParseXS/lib/ExtUtils/ParseXS.pm +++ b/dist/ExtUtils-ParseXS/lib/ExtUtils/ParseXS.pm @@ -38,7 +38,7 @@ our ( # The scalars in the line below remain (for the time being) 'our' variables # because I suspect they will pose the same problems as those in the statement # above. -our ($newXS, $proto, $Module_cname, ); +our ($newXS, $proto, ); our $self = {}; @@ -976,8 +976,8 @@ MAKE_FETCHMETHOD_WORK EOF print Q(<<"EOF"); -#XS(boot_$Module_cname); /* prototype to pass -Wmissing-prototypes */ -#XS(boot_$Module_cname) +#XS(boot_$self->{Module_cname}); /* prototype to pass -Wmissing-prototypes */ +#XS(boot_$self->{Module_cname}) EOF print Q(<<"EOF"); @@ -1674,7 +1674,7 @@ sub fetch_para { $Package = defined($2) ? $2 : ''; # keep -w happy $self->{Prefix} = defined($3) ? $3 : ''; # keep -w happy $self->{Prefix} = quotemeta $self->{Prefix}; - ($Module_cname = $Module) =~ s/\W/_/g; + ($self->{Module_cname} = $Module) =~ s/\W/_/g; ($Packid = $Package) =~ tr/:/_/; $self->{Packprefix} = $Package; $self->{Packprefix} .= "::" if $self->{Packprefix} ne ""; |