summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Revert "Fix failing autodie test with new smartmatch semantics."Rafael Garcia-Suarez2009-05-251-8/+8
| | | | | | | This should now work, since we now allow objects with ~~-overloading on the left side of ~~. This reverts commit 7fecd077a7bc92add80772966a8c824277223d09.
* Update CPAN.pm to 1.94Andreas J Koenig2009-05-251-1/+1
|
* Fix test for overload in given() with smart match after last changeRafael Garcia-Suarez2009-05-251-3/+3
|
* Allow ~~ overloading on the left side, when the right side is a plain scalarRafael Garcia-Suarez2009-05-243-7/+35
|
* Change the specs of %h~~%h to avoid mentioning ~~ recursivelyRafael Garcia-Suarez2009-05-241-1/+1
|
* In the ~~ implementation, consistently use the SV-aware API for hash keys.Rafael Garcia-Suarez2009-05-242-13/+13
| | | | This way, we can handle tied hashes such as ones that have references as keys.
* Ignore vim swap filesVincent Pit2009-05-242-0/+7
|
* Remove vim swap fileRafael Garcia-Suarez2009-05-241-0/+0
|
* perlpodspec correctionsRicardo SIGNES2009-05-242-4/+4
|
* Move the code to add magic to $0 into Perl_gv_fetchpvn_flags().Nicholas Clark2009-05-232-5/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | Curiously, this appears to always have been implemented slightly inefficiently. It dates from perl 4.000, which added the functionality to make assigning to $0 set the process name. The equivalent fix for 4.000 is: --- a/perl.c +++ b/perl.c @@ -738,7 +738,7 @@ FIX YOUR KERNEL, PUT A C WRAPPER AROUND THIS SCRIPT, OR USE -u AND UNDUMP!\n"); (void)hadd(sigstab); } - magicalize("!#?^~=-%.+&*()<>,\\/[|`':\004\t\020\024\027\006"); + magicalize("!#?^~=-%.+&*()<>,\\/[|`':0\004\t\020\024\027\006"); userinit(); /* in case linked C routines want magical variables */ amperstab = stabent("&",allstabs); @@ -828,7 +828,6 @@ FIX YOUR KERNEL, PUT A C WRAPPER AROUND THIS SCRIPT, OR USE -u AND UNDUMP!\n"); #endif if (tmpstab = stabent("0",allstabs)) { str_set(stab_val(tmpstab),origfilename); - magicname("0", Nullch, 0); } if (tmpstab = stabent("\030",allstabs)) str_set(stab_val(tmpstab),origargv[0]);
* TODO must be on same line as message for TAP.Craig A. Berry2009-05-221-1/+1
| | | | Follow-up to b2978f4e665fcbbc23bf7f986d2650556cfec504
* In Perl_magic_setsig(), silence a "possible loss of data" warning.Nicholas Clark2009-05-221-1/+2
|
* Smoke failing on longdoubleRich Rauenzahn2009-05-221-12/+0
| | | | Signed-off-by: H.Merijn Brand <h.m.brand@xs4all.nl>
* $? needs upgrade to PVLV when COMPLEX_STATUS is defined.Craig A. Berry2009-05-211-0/+2
|
* Merge Perl_magic_setisa() and Perl_magic_clearisa(), to remove duplicated logic.Nicholas Clark2009-05-213-28/+14
|
* In Perl_magic_setisa(), re-order two independant return early checks.Nicholas Clark2009-05-211-3/+3
|
* Remove all the 5005threads specific mutex macros, which are now vestigial.Nicholas Clark2009-05-216-62/+0
|
* Use only one block of memory for both PL_psig_name and PL_psig_ptr.Nicholas Clark2009-05-214-14/+11
|
* Cache the signal number or -1 in mg_private, to reduce calls to Perl_whichsig().Nicholas Clark2009-05-211-2/+9
| | | | | | It doesn't matter that 0 isn't cacheable, as the logic in Perl_magic_setsig() is such that we already can't "set" $SIG{ZERO}. Without this we make thousands of failing calls to Perl_whichsig() from Perl_magic_getsig() for "__WARN__".
* Perl_mg_clear() did not cope with the called magic deleting itself - fix this.Nicholas Clark2009-05-201-1/+4
| | | | Should all routines that iterate over the magic chain be hardened against this?
* run dos2unix on lib/Parse/CPAN/Meta.pmDavid Mitchell2009-05-201-437/+437
| | | | (for some reaon de044c3605bd12a0b679b024ec9c16b44093c54b added ^M's)
* Add new files from Parse::CPAN::Meta 1.38 to the MANIFEST.Nicholas Clark2009-05-201-0/+5
|
* In Perl_magic_setsig(), don't discard and then recreate the signal name SV.Nicholas Clark2009-05-201-3/+12
|
* Refactor Perl_magic_setsig() to remove duplication in the function exit logic.Nicholas Clark2009-05-201-36/+32
| | | | (With a lot of re-indenting, which vanishes with a whitespace ignoring diff)
* Merge the bulk of Perl_magic_clearsig() into Perl_magic_setsig().Nicholas Clark2009-05-203-76/+31
| | | | | | | | | | | | The comment at the top of Perl_magic_clearsig() said: XXX Some of this code was copied from Perl_magic_setsig. A little refactoring might be in order. and it was not wrong. Perl_magic_clearsig() is almost equivalent to Perl_magic_setsig() with the new signal handler as "DEFAULT". Externally, the sv parameter to Perl_magic_setsig() was Not NULL, so use a NULL sv to signal that the code is being called as Perl_magic_clearsig(), for the places where the behaviour of the two diverges.
* Perl_magic_clearsig() needs to remove magic, else delete $SIG{INT} returns undefNicholas Clark2009-05-202-3/+28
| | | | instead of the now-removed INT handler.
* fix glob-assign for FORMATH.Merijn Brand2009-05-202-1/+5
|
* Update bisect notesH.Merijn Brand2009-05-201-2/+10
|
* Convert t/op/magic.t to use test.plNicholas Clark2009-05-201-113/+98
|
* Tests for calls to Perl_croak() in the C source. Starting with "No such hook".Nicholas Clark2009-05-202-0/+21
|
* Ignore bitcount.hNicholas Clark2009-05-201-0/+1
|
* Remove binary compatibility scaffolding for the change to PL_bitcount.Nicholas Clark2009-05-207-34/+0
|
* Replace run-time on-demand initialisation of PL_bitcount with a constant table.Nicholas Clark2009-05-2012-35/+74
| | | | | | | | | | | | | | | | (The table is 256 bytes; the run-time initialisation code is larger than this!) Adapt generate_uudmap.c to generate the initalisation block for PL_bitcount, writing the code to bitcount.h, using the same approach as uudmap.h. To preserve binary compatibility: for MULTIPLICITY: keep Ibitcount in the interpreter structure, but remove all the macros that access it. PL_bitcount is a new symbol in the object file, which won't clash with anything as that name wasn't used before. otherwise: keep PL_bitcount as a char *, but initialise it at compile time to a new constant array PL_bitcount array. Remove the code that attempts to Safefree() it at interpreter destruction time.
* Break out the file output code from generate_uudmap's main() to allow re-use.Nicholas Clark2009-05-201-29/+32
|
* In Perl_magic_clearsig(), only call LEAVE if we call ENTER.Nicholas Clark2009-05-201-0/+4
| | | | | (2d4fcd5e8be8d83efa948a259c49b56fc6c27ee5, reported and fixed by RT #20613, would ENTER but not LEAVE when HAS_SIGPROCMASK was not defined.)
* In Perl_magic_setsig(), clarify the scope of a block that interacts with #ifdef.Nicholas Clark2009-05-191-3/+2
|
* Document the purpose of PL_psig_ptr and PL_psig_name.Nicholas Clark2009-05-191-1/+5
|
* Re: [PATCH] Update CPANPLUS::Dist::Build to CPAN version 0.30Chris 'BinGOs' Williams2009-05-191-36/+1
| | | | Erratum: Avoid creating .output files
* Pass the output file name to generate_uudmap, and open it within the code,Nicholas Clark2009-05-195-11/+34
| | | | instead of having the calling Makefile redirect stdout.
* In Perl_yylex(), no need to Newxz() a buffer we immediately write to.Nicholas Clark2009-05-191-1/+1
|
* In Perl_gv_fetchpvn_flags(), don't re-zero memory from Newxz().Nicholas Clark2009-05-191-3/+13
| | | | | Explicitly zero the memory for PL_psig_ptr, PL_psig_name and PL_psig_pend if we didn't need to allocate it this time round.
* In perl_clone_using(), use sv_dup_inc_multiple() to clone the temps stack.Nicholas Clark2009-05-191-6/+3
| | | | Avoid using Newxz() to zero allocate memory we will immediately overwrite.
* Ignore ".output" files, that might be generated by some tests, apparentlyRafael Garcia-Suarez2009-05-191-0/+1
|
* Update CPANPLUS::Dist::Build to CPAN version 0.30Chris 'BinGOs' Williams2009-05-198-8/+10
|
* Add S_sv_dup_inc_multiple(), used in place of loops that call sv_dup_inc().Nicholas Clark2009-05-184-11/+47
| | | | Just 4 uses already give a size saving with gcc -Os.
* Remove old version of Fatal.t test, now moved under lib/autodie/tRafael Garcia-Suarez2009-05-183-44/+0
|
* In perl_clone_using(), don't use Newxz() for arrays we immediately assign to.Nicholas Clark2009-05-181-2/+2
|
* In Perl_ptr_table_new(), fight back against the cult of Newxz().Nicholas Clark2009-05-181-1/+1
| | | | | (There's no need to zero-allocate memory for a structure when you're about to explicitly allocate every member.)
* Tidy the implementation of Perl_mg_dup().Nicholas Clark2009-05-181-25/+26
| | | | | | | | As all the structure elements are directly assigned to, use Newx() rather than Newxz(). Replace the explicit assignments with a direct structure copy. When reading values from the parent, read from those copied to the new structure, rather than the identical value in the old structure, to recduce CPU cache pressure.
* In Perl_mg_dup(), remove a branch by tracking the address to write to instead ofNicholas Clark2009-05-181-6/+4
| | | | the address of the structure, with a special case for the first time round.