summaryrefslogtreecommitdiff
path: root/ext/PerlIO-scalar
Commit message (Collapse)AuthorAgeFilesLines
* [perl #92258] <$fh> hangs on a glob copyFather Chrysostomos2011-06-051-3/+10
| | | | | | | | | Opening a file handle to \$glob causes assertion failures (under debugging) or hangs or other erratic behaviour without debugging. This might even crash in some cases. It never really worked properly, but it didn’t start hanging apparently until 5.12.2 and 5.14.0.
* Get PerlIO::scalar to write to COWsFather Chrysostomos2011-06-043-3/+12
|
* Made binmode $fh, ':scalar' DWIMLeon Timmermans2011-01-271-1/+1
| | | | | | This silences this warning: $ perl -we 'open my $f, ">", \my $x; binmode $f, "scalar"' Use of uninitialized value in binmode at -e line 1.
* fix various compiler warnings from XS codeZefram2010-12-111-1/+8
| | | | | | | | | | | Trivial changes to fix warnings of types * unclear precedence * assignment as conditional * signed/unsigned mixing * unused parameter/variable * value computed not used * wrong argument type for a printf format * variable may be used uninitialised (due to unhandled switch case)
* Increase PerlIO::scalar’s versionFather Chrysostomos2010-11-271-1/+1
|
* [perl #78716] Bogus read after seek beyond end of stringFather Chrysostomos2010-11-272-3/+11
| | | | | This is a signedness problem that ffe0bb5ab did not take into account. (STRLEN)-10 > 0 returns true for me.
* Convert modules in ext/ to pass minimal arguments to XSLoader::load().Nicholas Clark2010-10-141-3/+3
|
* Bump VERSION in PerlIO-scalarSteve Hay2010-09-191-1/+1
| | | | The XS file has been changed since 5.13.4
* [perl #77684] Restore the 5.10/12 behaviour of open $fh, ">", \$glob_copyFather Chrysostomos2010-09-131-0/+7
| | | | | | | | | This restores the perl 5.10/12 behaviour, making open treat \$foo as a scalar reference if it is a glob copy (SvFAKE). It also fixes an existing assertion failure that the test now trig- gers. PerlIOScalar_pushed was not downgrading the sv before set- ting SvCUR.
* Move code to after the variable declarations.Nicholas Clark2010-05-061-2/+5
| | | | | | | Currently we only compile the top level code with "extreme warnings", so code in ext/ isn't subject to -Wdeclaration-after-statement, hence why this was missed. Now that dual life modules have been evicted from ext/, we could probably consider notching up the warnings for all code in ext/.
* bump PerlIO::scalar versionDavid Mitchell2010-05-051-1/+1
|
* RT 43789: "in memory" files don't call STOREDavid Mitchell2010-05-052-5/+89
| | | | | | | | | | | The code in PerlIO-scalar that implements the open $fh, '>' \$buffer feature did not, apart from accidentally, support get/set magic and thus tied buffers. This patch remedies that: mostly by just blindly sprinkling SvGETMAGIC/SvSETMAGIC about, rather than doing any deep analysis and understanding of the code. One main change I did was to add a PerlIOScalar_read() function, rather than rely on the default behaviour (which implements it in terms of PerlIOScalar_get_ptr() etc), since that approach had a tendency to call FETCH multiple times
* Make extensions in ext run their tests from the extension's own directory.Nicholas Clark2009-08-281-2/+0
| | | | | | | | | | | Inspired by, and in parts borrows from, Schwern's branch on github, but takes a slightly different approach in places. Not quite perfect yet - ext/File-Glob still runs from t, at least one FIXME needs fixing, and the changes to dual-life modules' tests need to be filtered back upstream, and possibly modified to suit their respective authors. But it works.
* make_ext.pl's automatic Makefile.PL generation can write these five for us.Nicholas Clark2009-03-261-7/+0
|
* Rename ext/PerlIO/scalar to ext/PerlIO-scalarNicholas Clark2009-02-095-0/+629