diff options
author | Mark Murray <markm@FreeBSD.org> | 1999-05-02 14:33:17 +0000 |
---|---|---|
committer | Mark Murray <markm@FreeBSD.org> | 1999-05-02 14:33:17 +0000 |
commit | 7c312e6b6a7b1f9412f10365baf3c5eca8fa5649 (patch) | |
tree | b4adabf341898a4378f4b7f8c7fb65f3f7c77769 /contrib/perl5/ext/attrs | |
parent | ff6b7ba98e8d4aab04cbe2bfdffdfc9171c1812b (diff) |
Maintenance releace 3 of perl5.005. Includes support for threads.
Notes
Notes:
svn path=/vendor/perl5/dist/; revision=46307
Diffstat (limited to 'contrib/perl5/ext/attrs')
-rw-r--r-- | contrib/perl5/ext/attrs/Makefile.PL | 2 | ||||
-rw-r--r-- | contrib/perl5/ext/attrs/attrs.xs | 6 |
2 files changed, 5 insertions, 3 deletions
diff --git a/contrib/perl5/ext/attrs/Makefile.PL b/contrib/perl5/ext/attrs/Makefile.PL index c42175761546..86ed3f393551 100644 --- a/contrib/perl5/ext/attrs/Makefile.PL +++ b/contrib/perl5/ext/attrs/Makefile.PL @@ -2,6 +2,6 @@ use ExtUtils::MakeMaker; WriteMakefile( NAME => 'attrs', VERSION_FROM => 'attrs.pm', - MAN3PODS => ' ', # Pods will be built by installman. + MAN3PODS => {}, # Pods will be built by installman. XSPROTOARG => '-noprototypes' ); diff --git a/contrib/perl5/ext/attrs/attrs.xs b/contrib/perl5/ext/attrs/attrs.xs index da952d5a3f1a..7f7970d207d7 100644 --- a/contrib/perl5/ext/attrs/attrs.xs +++ b/contrib/perl5/ext/attrs/attrs.xs @@ -27,7 +27,8 @@ char * Class if (!PL_compcv || !(cv = CvOUTSIDE(PL_compcv))) croak("can't set attributes outside a subroutine scope"); for (i = 1; i < items; i++) { - char *attr = SvPV(ST(i), PL_na); + STRLEN n_a; + char *attr = SvPV(ST(i), n_a); cv_flags_t flag = get_flag(attr); if (!flag) croak("invalid attribute name %s", attr); @@ -47,7 +48,8 @@ SV * sub sub = Nullsv; } else { - char *name = SvPV(sub, PL_na); + STRLEN n_a; + char *name = SvPV(sub, n_a); sub = (SV*)perl_get_cv(name, FALSE); } if (!sub) |