summaryrefslogtreecommitdiff
path: root/ext
Commit message (Collapse)AuthorAgeFilesLines
* Fix build under Cygwin with g++. Not suitable for integration into blead.smoke-me/greerga/cygwin_g++greerga/cygwin_g++George Greer2011-06-012-5/+9
|
* [perl #91946] add constant folding testsJim Cromie2011-06-011-1/+152
| | | | | | | test arithmetic folding, conditional folding (both true & false), and string, lc() & uc() folds, and mixed string.int folds. Signed-off-by: Jim Cromie <jim.cromie@gmail.com>
* Warn when list-assigning to TEMPFather Chrysostomos2011-06-011-1/+5
|
* Tests for XS lvalue functionsFather Chrysostomos2011-06-013-1/+43
| | | | | including the ‘Useless assignment to a temporary’ warning which is only triggered by these.
* reflags.t: Remove no longer applicable TODOKarl Williamson2011-05-311-6/+2
| | | | | | When this test was written, t the new 5.14 regex modifiers were not usable in suffix notation. That changed before 5.14 shipped, but the test did not.
* Un-TODO a test on Snow LeopardFather Chrysostomos2011-05-231-1/+1
| | | | Snow Leopard is Darwin 10, which compares less than 6 lexicographically.
* Correct comments about B::PV::PVBM.Nicholas Clark2011-05-201-6/+11
| | | | | Original comments, partially incorrect, added in 5a44e503dc748f53 and f4c3658468ba5234.
* Bump the version of PerlIO::encoding following 1c2e8ccaafb0b2b1.Nicholas Clark2011-05-201-1/+1
| | | | 1c2e8ccaafb0b2b1 fixed a typo in a comment in the XS code.
* Bump the versions of B and Storable following 1b95d04f713d9c56.Nicholas Clark2011-05-201-1/+1
| | | | 1b95d04f713d9c56 changed HvKEYS() to HvUSEDKEYS() in the XS code.
* Increase t::OptreeCheck’s versionFather Chrysostomos2011-05-191-1/+1
| | | | | | cmp_version.t was complaining. Why does this even *have* a version?
* [perl #90306] Fix simple typosMarcel Grünauer2011-05-195-6/+6
|
* Increase B::Concise’s versionFather Chrysostomos2011-05-191-1/+1
| | | | because of the upcoming patch
* Clean: Actually use HvUSEDKEYS() instead of HvKEYS()Michael Witten2011-05-181-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This: commit 8aacddc1ea3837f8f1a911d90c644451fc7cfc86 Author: Nick Ing-Simmons <nik@tiuk.ti.com> Date: Tue Dec 18 15:55:22 2001 +0000 Tidied version of Jeffrey Friedl's <jfriedl@yahoo.com> restricted hashes - added delete of READONLY value inhibit & test for same - re-tabbed p4raw-id: //depot/perlio@13760 essentially deprecated HvKEYS() in favor of HvUSEDKEYS(); this is explained in line 144 (now 313) of file `hv.h': /* * HvKEYS gets the number of keys that actually exist(), and is provided * for backwards compatibility with old XS code. The core uses HvUSEDKEYS * (keys, excluding placeholdes) and HvTOTALKEYS (including placeholders) */ This commit simply puts that into practice, and is equivalent to running the following (at least with a35ef416833511da752c4b5b836b7a8915712aab checked out): git grep -l HvKEYS | sed /hv.h/d | xargs sed -i s/HvKEYS/HvUSEDKEYS/ Notice that HvKEYS is currently just an alias for HvUSEDKEYS: $ git show a35ef416833511da752c4b5b836b7a8915712aab:hv.h | sed -n 318p #define HvKEYS(hv) HvUSEDKEYS(hv) According to `make tests': All tests successful.
* Restore a croak I deleted by mistakeFather Chrysostomos2011-05-181-1/+2
|
* waitpid doesn't work with WIFSTOPPEDBo Lindbergh2011-05-181-12/+16
| | | | | | | | | | | | | | | | | | | | | > Quoth Emmanuel Rodriguez: >> I'm see a strange behavior in the fonction WIFSTOPPED($?) when >> waitpid($pid, WUNTRACED) is invoked and that the child process >> receives a stop signal. Under this conditions one would expect that >> WIFSTOPPED($?) would return a true value, but that's not what is >> happening. A similar program written in C will have the same macro >> return true instead of false under the same conditions. >> >> I can reproduce this with the default perl provided by Ubuntu 9.10 and >> OS X 10.6. Which lets me guess that this is not a distro related bug. > > This is a documentation error. POSIX.pod incorrectly claims that > you can pass the value of $? to WIFEXITED and its relatives. > You must use the raw status value from ${^CHILD_ERROR_NATIVE} instead. And here's the patch. Note that perlvar.pod gets it right already. /Bo Lindbergh
* Fix for [perl #90106] 5.14.0-RC2 ODBM_File failures on Ubuntu natty [multiarch]Vladimir Timofeev2011-05-181-3/+3
| | | | | Ubuntu has juggled lib paths so we get to play games to catch up with them.
* ext/Devel-Peek/Peek.pm: Fix broken linksKarl Williamson2011-05-181-2/+2
|
* FieldHash.pm: Fix broken linksKarl Williamson2011-05-181-6/+6
|
* POSIX.pod: fix broken linkKarl Williamson2011-05-181-1/+1
|
* Fix broken linkKarl Williamson2011-05-181-2/+3
|
* IPC::Open3 needs porting to work on VMS.Craig A. Berry2011-04-151-0/+4
| | | | | So skip the test for now. Something like the Win32 mechanism spawn_with_handles() may be workable but needs investigation.
* PATCH: final [perl #86972]: Allow /(?aia)/Karl Williamson2011-04-112-13/+34
| | | | | This fixes "use re '/aia'", and completes the sequence of commits for this ticket.
* [perl #87064] eval no longer shares filtersFather Chrysostomos2011-04-033-1/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Before this commit: commit f07ec6dd59215a56bc1159449a9631be7a02a94d Author: Zefram <zefram@fysh.org> Date: Wed Oct 13 19:05:19 2010 +0100 remove filter inheritance option from lex_start The only uses of lex_start that had the new_filter parameter false, to make the new lexer context share source filters with the previous lexer context, were uses with rsfp null, which therefore never invoked source filters. Inheriting source filters from a logically unrelated file seems like a silly idea anyway. string evals could inherit the same source filter space as the cur- rently compiling code. Despite what the quoted commit message says, sharing source filters allows filters to be inherited in both direc- tions: A source filter created when the eval is being compiled also applies to the file with which it is sharing its space. There are at least 20 CPAN distributions relying on this behaviour (or, rather, what could be considered a Test::More bug). So this com- mit restores the source-filter-sharing capability. It does not change the current API or make public the API for sharing source filters, as this is supposed to be a temporary stop-gap measure for 5.14.
* [perl #86566] Allow Pod::Html to write to STDOUT againDavid Leadbeater2011-03-281-5/+10
| | | | | | | | | 7319fd7 introduced lexical file handles but also switched to 3 arg open; Pod::Html was relying on 2 arg open's behaviour to make '-' mean STDOUT. There was also a single quoted argument that obviously needed to be interpolated.
* Minimise the actions of the BEGIN block in B.pmNicholas Clark2011-03-201-15/+17
| | | | | | | Retain the call to XSLoader::load() at BEGIN time, as we want the constants loaded before the compiler meets OPf_KIDS below, as the combination of having the constant stay a Proxy Constant Subroutine and its value being inlined saves a little over .5K
* In B, use typeglob aliasing instead of subref to typeglob assignment.Nicholas Clark2011-03-201-4/+4
| | | | | | | Typeglob aliasing saves just about 1.25K, because fewer internal structures are created. In the general case the behaviour of the two differs, but as the only package variables of these names are subroutines, and we are within our own namespace, there is no difference here.
* More version bumps in view of recent PERL_NO_GE_CONTEXT commitsFather Chrysostomos2011-03-192-2/+2
|
* Add PERL_NO_GET_CONTEXT to NDBM_FileNicholas Clark2011-03-191-0/+2
| | | | | For threaded platforms, this reduces the object code size, and should slightly reduce CPU usage.
* Add PERL_NO_GET_CONTEXT to GDBM_FileNicholas Clark2011-03-191-0/+2
| | | | | For threaded platforms, this reduces the object code size, and should slightly reduce CPU usage.
* Version bumps for the recent PERL_NO_GET_CONTEXT commitsFather Chrysostomos2011-03-198-8/+8
|
* Add PERL_NO_GET_CONTEXT to mroNicholas Clark2011-03-191-0/+2
| | | | | For threaded platforms, this reduces the object code size, and should slightly reduce CPU usage.
* Add PERL_NO_GET_CONTEXT to attributesNicholas Clark2011-03-191-0/+1
| | | | | For threaded platforms, this reduces the object code size, and should slightly reduce CPU usage.
* Add PERL_NO_GET_CONTEXT to XS::TypemapNicholas Clark2011-03-191-1/+2
| | | | For threaded platforms, this almost halves the object code size.
* Add PERL_NO_GET_CONTEXT to Sys::HostnameNicholas Clark2011-03-191-0/+2
| | | | | For threaded platforms, this reduces the object code size, and should slightly reduce CPU usage.
* Add PERL_NO_GET_CONTEXT to I18N::LanginfoNicholas Clark2011-03-191-0/+2
| | | | | For threaded platforms, this reduces the object code size, and should slightly reduce CPU usage.
* Add PERL_NO_GET_CONTEXT to Hash::UtilNicholas Clark2011-03-191-0/+2
| | | | | For threaded platforms, this reduces the object code size, and should slightly reduce CPU usage.
* Add PERL_NO_GET_CONTEXT to Hash::Util::FieldHashNicholas Clark2011-03-191-45/+63
| | | | | For threaded platforms, this reduces the object code size, and should slight reduce CPU usage.
* Add PERL_NO_GET_CONTEXT to File::GlobNicholas Clark2011-03-191-0/+2
| | | | | For threaded platforms, this reduces the object code size, and should slightly reduce CPU usage.
* Add PERL_NO_GET_CONTEXT to dl_dlopen.xsNicholas Clark2011-03-191-0/+2
| | | | | | For threaded builds on platforms using dlopen() for dynamic loading, this should reduce object size, and slightly reduce CPU usage when loading extensions.
* Redefine errno values for Visual Studio 2010Steve Hay2011-03-192-81/+115
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Perl traditionally stores WinSock error codes (values above 10000) in errno, with corresponding support for $! to stringify them properly. In Visual Studio 2010 (and presumably newer Windows SDKs) Microsoft has started to define additional errno constants in errno.h (values between 100 and 200) with conflicting names (e.g. EWOULDBLOCK). There are 2 ways to deal with this situation: 1) Redefine the errno.h constants back to the winsock values for the Errno and POSIX modules. 2) Translate the winsock error codes to the new errno constants in the socket implementation in win32/win32sck.c. Solution 1) has the advantage that any existing Perl code that has numeric error codes hard-coded in it will continue to work. Solution 2) has the advantage that XS code using external libaries can set errno to the new constants, and they will be handled consistently in the Perl core. It will however need additional support for other compilers and runtime libraries that don't support these new error codes. This commit implements solution 1). Blame attribution: the commit message is from Jan Dubois, the actual patch was created by Steve Hay. Signed-off-by: Jan Dubois <jand@activestate.com>
* Remove the couple of references to AutoLoader that remained inDavid Leadbeater2011-03-131-6/+2
| | | | DynaLoader after 0a0b6c96e6.
* fix C++ build error introducted in f8088870Tony Cook2011-03-091-1/+1
|
* Add PERL_NO_GET_CONTEXT to NamedCapture.xsNicholas Clark2011-03-081-0/+1
|
* Tweak Tie::Hash::NamedCapture's BOOT code - get the stash from the CV.Nicholas Clark2011-03-081-4/+9
| | | | | | This will result in less work than using newSVrv(), as the character string passed to that is used to walk the symbol table to find the stash. We already have a fast way to get to the stash - via the CV's GV. So use that directly.
* In Tie::Hash::NamedCapture move the tie of %+ and %- from perl to XS.Nicholas Clark2011-03-082-8/+19
|
* Convert Tie::Hash::NamedCapture::TIEHASH to XS.Nicholas Clark2011-03-082-10/+22
|
* Add tests for documented behaviour of Tie::Hash::NamedCapture::TIEHASH.Nicholas Clark2011-03-081-0/+34
|
* Ensure that the C<exists &Errno::EFOO> idiom continues to work as documented.Nicholas Clark2011-03-072-3/+29
| | | | | | | A change post-5.12 (probably 42607a60df6df19b) caused the documented idiom not to work if Errno was loaded after the C<exists> code had been compiled, as the compiler implicitly creates typeglobs in the Errno symbol table when it builds the optree for the C<exists code>.
* Move t/re/re.t to ext/re/t/re_funcs_u.t, so that it is not part of minitest.Nicholas Clark2011-03-061-0/+143
| | | | | | | The test file is for functions in the re:: namespace implemented in universal.c, but needs to load re, which isn't built for minitest. As none of these functions are used as part of the core's build process, seems best to move it with all the other tests related to the re extension.
* A clearer layout for the fall-through logic of Socket::inet_aton()Nicholas Clark2011-03-061-6/+10
|