diff options
author | Nicholas Clark <nick@ccl4.org> | 2007-01-25 20:57:56 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2007-01-25 20:57:56 +0000 |
commit | da51bb9b4f7f527464b5e38aca8bcb956de1bbbc (patch) | |
tree | f2f952634f7d10137a8e0c223426969a64d76ff6 /universal.c | |
parent | ede8ac17cc8980652fa00e4d3b33ce031d6bbd24 (diff) | |
download | perl-da51bb9b4f7f527464b5e38aca8bcb956de1bbbc.tar.gz |
The last parameter to gv_stashpv/gv_stashpvn/gv_stashsv is a bitmask
of flags, not a boolean, so correct the documenation and callers.
p4raw-id: //depot/perl@29977
Diffstat (limited to 'universal.c')
-rw-r--r-- | universal.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/universal.c b/universal.c index 3fe831c310..d07ff2fd11 100644 --- a/universal.c +++ b/universal.c @@ -109,7 +109,7 @@ S_isa_lookup(pTHX_ HV *stash, const char *name, const HV* const name_stash, I32 items = AvFILLp(av) + 1; while (items--) { SV* const sv = *svp++; - HV* const basestash = gv_stashsv(sv, FALSE); + HV* const basestash = gv_stashsv(sv, 0); if (!basestash) { if (ckWARN(WARN_MISC)) Perl_warner(aTHX_ packWARN(WARN_SYNTAX), @@ -157,11 +157,11 @@ Perl_sv_derived_from(pTHX_ SV *sv, const char *name) stash = SvOBJECT(sv) ? SvSTASH(sv) : NULL; } else { - stash = gv_stashsv(sv, FALSE); + stash = gv_stashsv(sv, 0); } if (stash) { - HV * const name_stash = gv_stashpv(name, FALSE); + HV * const name_stash = gv_stashpv(name, 0); return isa_lookup(stash, name, name_stash, strlen(name), 0); } else @@ -362,7 +362,7 @@ XS(XS_UNIVERSAL_can) pkg = SvSTASH(sv); } else { - pkg = gv_stashsv(sv, FALSE); + pkg = gv_stashsv(sv, 0); } if (pkg) { @@ -411,7 +411,7 @@ XS(XS_UNIVERSAL_VERSION) pkg = SvSTASH(sv); } else { - pkg = gv_stashsv(ST(0), FALSE); + pkg = gv_stashsv(ST(0), 0); } gvp = pkg ? (GV**)hv_fetchs(pkg, "VERSION", FALSE) : NULL; @@ -498,7 +498,7 @@ XS(XS_version_new) rv = new_version(vs); if ( strcmp(classname,"version") != 0 ) /* inherited new() */ - sv_bless(rv, gv_stashpv(classname,TRUE)); + sv_bless(rv, gv_stashpv(classname, GV_ADD)); PUSHs(sv_2mortal(rv)); PUTBACK; |