diff options
author | Steve Peters <steve@fisharerojo.org> | 2005-04-18 14:09:25 -0500 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2005-04-19 09:55:51 +0000 |
commit | b162af07ec759e1ba6b84569e4963bc5c289d75f (patch) | |
tree | dae58f745e70011d6b87525617543b26a5ff39fe /ext/PerlIO/scalar | |
parent | 9660f4819671f0b9100e5eabfa988ead3e799a1e (diff) | |
download | perl-b162af07ec759e1ba6b84569e4963bc5c289d75f.tar.gz |
Refactoring to Sv*_set() macros - patch #5
Message-ID: <20050419000925.GA21640@mccoy.peters.homeunix.org>
Date: Mon, 18 Apr 2005 19:09:25 -0500
p4raw-id: //depot/perl@24248
Diffstat (limited to 'ext/PerlIO/scalar')
-rw-r--r-- | ext/PerlIO/scalar/scalar.pm | 2 | ||||
-rw-r--r-- | ext/PerlIO/scalar/scalar.xs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/ext/PerlIO/scalar/scalar.pm b/ext/PerlIO/scalar/scalar.pm index 1c4fa4549c..7eb936eacb 100644 --- a/ext/PerlIO/scalar/scalar.pm +++ b/ext/PerlIO/scalar/scalar.pm @@ -1,5 +1,5 @@ package PerlIO::scalar; -our $VERSION = '0.02'; +our $VERSION = '0.03'; use XSLoader (); XSLoader::load 'PerlIO::scalar'; 1; diff --git a/ext/PerlIO/scalar/scalar.xs b/ext/PerlIO/scalar/scalar.xs index c116f07f17..074da92631 100644 --- a/ext/PerlIO/scalar/scalar.xs +++ b/ext/PerlIO/scalar/scalar.xs @@ -40,7 +40,7 @@ PerlIOScalar_pushed(pTHX_ PerlIO * f, const char *mode, SV * arg, SvUPGRADE(s->var, SVt_PV); code = PerlIOBase_pushed(aTHX_ f, mode, Nullsv, tab); if (!SvOK(s->var) || (PerlIOBase(f)->flags) & PERLIO_F_TRUNCATE) - SvCUR(s->var) = 0; + SvCUR_set(s->var, 0); if ((PerlIOBase(f)->flags) & PERLIO_F_APPEND) s->posn = SvCUR(s->var); else |