summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Sanity check on Errno values.Curtis Jewell2010-09-021-2/+3
| | | | | | On a few machines (Win32/gcc using mingw64 headers) Errno.pm will find a value that is not numeric for a proposed error key. This change adds a sanity check to discard such keys.
* t/lib/common.pl must convert $^X to an absolute path before changing directory.Nicholas Clark2010-09-011-1/+2
| | | | Not every operating system has /proc/self/exe
* Tests using t/lib/common.pl need to run in separate directories.Nicholas Clark2010-09-015-19/+35
| | | | | | | Commit 8f776eae73090661 turned out to be a bit optimistic with "should be capable of running in parallel", as the temporary files and modules written out by the various test scripts have clashing names. Hence run each test a private subdirectory.
* RT 74444 - install_lib.pl emits warnings when installperl is run with destdirTodd Rinaldo2010-09-011-1/+1
| | | | | | | | | running the following produces 7 warnings like this on my system: 'LD_LIBRARY_PATH=/usr/home/build/perl-5.12.0 ./perl installperl --destdir=/var/local/tmp/perl-root' Use of uninitialized value $dev2 in numeric eq (==) at ./install_lib.pl line 123. replacing == with ~~ (the smart match operator) seems to be the best DWIM fix.
* Add alternate email address for ToddFlorian Ragwitz2010-09-011-0/+1
|
* Ignore droppings from lib/h2ph.tFlorian Ragwitz2010-09-011-0/+2
|
* Add test for deprecation warnings from h2phFlorian Ragwitz2010-09-013-8/+19
| | | | This makes sure the fix for RT#74404 is working.
* RT 74404 - h2ph using deprecated gotoTodd Rinaldo2010-09-011-18/+24
| | | | | | | | | | It looks like h2ph makes copious use of global variables. As a result, I can commit this evil for a minimal patch. No code was changed moving it into the sub other than passing $proto, which is the only non-global used (but not modified). I tried a 5.12.0 build with this patch and it seems to be passing tests. There is a lib/h2ph.t file but I don't know what it tests exactly.
* Stop Tie::Hash->TIEHASH() looping forever.Nicholas Clark2010-09-015-5/+36
| | | | | This change is analogous to bc3707112523ba7a in Tie::Scalar, but with far fewer tests.
* pp_match: fix confusing layout in an if()David Mitchell2010-09-011-3/+3
| | | | | | | | | The if (( !global rather than if ( (!global made it hard to follow the precedence. Tidy up the rest of the expression while I'm at it.
* Copy RE capture buf on overload as well as TEMPDavid Mitchell2010-09-012-2/+7
| | | | | | | | | | | | Partial fix for [perl #77084]. Sometimes pp_match makes a copy of the original SV's string for the later use of $1 et al; in particular if the SV is TEMP (so will soon go away). Make it do the same if the SV is overloaded, as the string return is most certainly temporary! (Also tweak the tests to make them more likely to fail on badness by creating new stings that will likely reallocate freed buffer).
* perldelta up to 137127dFlorian Ragwitz2010-09-011-0/+15
|
* t/harness can run the tests lib/*.t in parallel with each other.Nicholas Clark2010-09-011-2/+3
| | | | | | All these tests are for different modules, and should be capable of running in parallel. Hopefully this will reduce the chance of seeing lib/warnings.t running all alone on a multi-core machine.
* Clarify CPU cache improvements entry in 5133deltaFlorian Ragwitz2010-09-011-1/+3
|
* PL_my_cxt_list is only available with PERL_IMPLICIT_CONTEXTTony Cook2010-09-011-0/+2
|
* fix some 64-bit casts under DEBUG_LEAKING_SCALARSDavid Mitchell2010-09-012-2/+2
|
* fix indentation of MY_CXT #definesDavid Mitchell2010-09-011-35/+35
| | | | Only whitespace changes
* merge two similar MY_CXT code branchesDavid Mitchell2010-09-011-37/+7
| | | | No functional changes
* MY_CXT macros: make the two sets of defs similarDavid Mitchell2010-09-011-8/+12
| | | | | | | Three years ago there was a cut and paste of all the MY_CXT macros into a second #ifdef PERL_GLOBAL_STRUCT_PRIVATE branch with minor modifications (Bad programmer! No cookie!). Make the two branches more similar in preparation for a partial merge. No functional changes.
* PL_my_cxt_list leaksJirka Hruška2010-09-011-0/+4
| | | | | | [perl #77352] PL_my_cxt_list was never freed
* Memory leak cloning PVGVsJirka Hruška2010-09-012-2/+3
| | | | | | | [perl #77352] In S_sv_dup_common, Perl_rvpv_dup was called twice on a non-GP PVGV value, causing the first duped value to be leaked
* Move the call to Perl_cv_clone() into S_doform(), from its two callers.Nicholas Clark2010-09-011-5/+3
| | | | This reduces code duplication slightly, and reduces the object code size.
* Refactor Perl_store_cop_label() to avoid exposing struct refcounted_he *.Nicholas Clark2010-09-014-13/+17
| | | | | | | Instead pass in a COP, as suggested by Ben Morrow. Also add length and flags parameters, and remove the comment suggesting this change. The underlying storage mechanism can honour length and UTF8/not, so there is no harm in exposing this one level higher.
* Bump blib::VERSION after 3f9bb6bFlorian Ragwitz2010-09-011-5/+5
|
* [perl #77492] open $fh, ">", \*glob causes SEGVFather Chrysostomos2010-09-012-2/+15
| | | | | PerlIO_layer_from_ref must not treat a real glob as a scalar. This function was not updated when SVt_PVGV was moved before SVt_PVLV.
* Correct errors in the use of multiple targets for bitcount.h and uudmap.hNicholas Clark2010-08-313-3/+10
| | | | | The fixes of Makefile.SH in 0f13ebd5d71f8177 also need to be applied on Win32 and VMS.
* Merge the two 5134delta entries for uniary functionsFlorian Ragwitz2010-08-311-41/+37
|
* [perl #77234] Change 649d02de (unary prototypes) changes precedenceFather Chrysostomos2010-08-311-0/+23
| | | | | This patch retroactively adds a description of the breakage to perl5134delta so it will be copied eventually into perl5140delta.
* remove dead listexprcom production from grammarZefram2010-08-313-388/+350
| | | | | The third production of <listexprcom>, "expr ','", could never be invoked, because <expr> can already end with arbitrarily many commas.
* better silencing of APItest deprecation warningDavid Mitchell2010-08-311-1/+2
| | | | | | | | | Commit 95ddc6755c1ff41d06e5afc2212c85f918ebcd28 attempted to add -Wno-deprecated-declarations' to the ccflags for APItest.xs; however it ended up deleting existing flags rather than appending. Under -DDEBUG_LEAKING_SCALARS this caused the PerlInterpreter structure to have different field alignments in core and APItest.xs. Ouch!
* Add Zefram as our release manager victim for 20 DecemberJesse Vincent2010-08-311-0/+3
|
* Add two missing break in Perl_magic_set's big switchVincent Pit2010-08-311-1/+2
| | | | | This fixes $^A being reset when $1..$2 are localized before any regexp match happened.
* Remove unneeded use of INT2PTR() in the XS for Tie::Hash::NamedCapture.Nicholas Clark2010-08-311-8/+8
|
* Start perl5135deltaFlorian Ragwitz2010-08-311-10/+86
|
* Module::CoreList updates for 5.12.2Jesse Vincent2010-08-301-2/+2
|
* Avoid needless use of UTF8=1 format [RT#56336]Eric Brine2010-08-312-14/+6
| | | | | Some literals (e.g. q'abc') don't set the UTF8 flag for pure ASCII literals. Others (e.g. -abc) do. This should be consistent.
* TODO tests for avoid needless use of UTF8=1 format [RT#56336]Eric Brine2010-08-311-1/+13
| | | | | Some literals (e.g. q'abc') don't set the UTF8 flag for pure ASCII literals. Others (e.g. -abc) do. This should be consistent.
* add more tests to lib/mauve.t so it tests also that mauve::reftype can ↵Zsbán Ambrus2010-08-302-17/+41
| | | | return "LVALUE"
* use more efficient sv_reftype_len() interfaceYves Orton2010-08-301-2/+3
|
* fix the AIX skip to only skip on AIXTony Cook2010-08-311-1/+1
|
* rt77432: sigaction would crash/assert with a replaced %SIGTony Cook2010-08-312-2/+9
|
* mauve.t needs access to %Config, make sure it's availableTony Cook2010-08-301-0/+1
|
* create the "mauve" temporary namespace for things like reftypeYves Orton2010-08-306-2/+632
| | | | | | | | | | | | | | | | | | | | | | Scalar::Util::reftype(), refaddr() and blessed() are all a bit less useful than they could be as they all return C<undef> when their argument is not a reference. While this is logical, it also means that using these routines has to be guarded, and normally guarded in such a way that the internal logic is called twice. Additionally these routines are quite commonly used and having to load an additional DLL and XS code every program is inefficient. Therefore we introduce the "mauve" namespace for to hold the "fixed" equivalents, this namespace is /always/ loaded (like the 're' or 'utf8' namespaces), and thus these routines can be accessed easily at any time. We also provide a new module wrapper in t/lib which allows these routines to be exported into other namespaces if the user so chooses. At Jesse's request I have included weaken() and as it seemed logical to do so I have also added isweak(). Once we have a good name for the namespace we can s/mauve/whatever/g
* add sv_reftype_len() and make sv_reftype() be a wrapper for itYves Orton2010-08-305-24/+153
| | | | | | | | | sv_reftype() mostly returns strings whose length is known at compile time, so we can avoid a strlen() call if we return the length. Additionally, the non-length interface is potentially buggy in the face of class names which contain "\0", therefore providing a way to obtain the true length allows us to avoid any trickyness.
* when building under git, test that MANIFEST and git ls-files match up properlyYves Orton2010-08-301-2/+31
|
* Update Unicode-Collate to CPAN version 0.58Chris 'BinGOs' Williams2010-08-2925-23/+1314
| | | | | | | [DELTA] 0.58 Sun Aug 29 19:56:50 2010 - U::C::Locale newly supports locales: af, cy, da, fo, haw, is, kl, sw.
* Fix a typo in the PL_keyword_plugin docsFlorian Ragwitz2010-08-281-1/+1
|
* Make PerlIOUnix_open honor default permissions on VMS.Craig A. Berry2010-08-281-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When perlio became the default and unixio became the default bottom layer, the most common path for creating files from Perl became PerlIOUnix_open, which has always explicitly used 0666 as the permission mask. This has the following undesireable effects on VMS: 1.) The execute bit is lost regardless of whether it's in the default permissions. 2.) Delete permission (which doesn't exist in the Unix permission mask) is copied from write permission, so granting write permission also grants delete even if it's not in the default permission mask. This can result in an inadvertent widening of permissions. 3.) System permissions (which don't exist in the Unix permission mask) are copied from owner permissions, so any distinction between system and owner is lost. 4.) ACLs are not inherited. For example, setting a default_protection ACE on a directory such that all world access is disallowed will be ignored; world will have the intersection of RWD (the final 6 in 0666) and whatever the default permissions are regardless of what the ACL says. Thus not inheriting ACLs can result in the inadvertent widening of permissions. The way to avoid all of this is to pass 0777 as the permissions to open(). In the VMS CRTL, 0777 has a special meaning over and above intersecting with the current umask; specifically, it allows Unix syscalls to preserve native default permissions. Details currently documented at: http://h71000.www7.hp.com/doc/732final/5763/5763pro_060.html#umask_routine
* Remove OA_RETINTEGER, unused since 2002 (commit e7311069df54baa6)Nicholas Clark2010-08-283-352/+351
| | | | | | | | This returns us to 8 flag bits, and restores OCSHIFT and OASHIFT to 8 and 12 Previously these were 9 and 13, and effectively PL_opargs[] was using 33 of 32 bits, relying on the ugly hack that no 5 argument builtin had an optional 5th argument, hence the (13 + 5 * 4)th bit was always zero. is effectively 33 bits.
* silence APItest deprecation warningRobin Barker2010-08-281-0/+3
|