summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Teach autodoc.pl about 'o' functions.Ben Morrow2010-07-121-0/+6
| | | | | | | That is, functions with no #define foo Perl_foo. I'm not certain this is the right way to do it, as I don't really understand which flags autodoc honours from which places; currently, it's necessary to put the 'o' flag on the =for apidoc line or it will be ignored.
* Systematic tests for the block hooks.Ben Morrow2010-07-127-74/+460
| | | | | | I've left the dummy implementation of @{^C_S_C} in, as it's actually useful for some of the other tests. (Something simpler would work just as well, of course.)
* Wrap PL_blockhooks in an API function.Ben Morrow2010-07-126-4/+20
| | | | | This should help prevent people from thinking they can get cute with the contents.
* Macroify the block_hooks structure.Ben Morrow2010-07-124-13/+35
| | | | | Add a flags member, so it can be extended later if necessary. Add a bhk_eval member, called from doeval to catch requires and string evals.
* Initial very basic tests for PL_blockhooks.Ben Morrow2010-07-122-0/+149
| | | | | This is taken directly from rafl's @{^COMPILE_SCOPE_CONTAINER} implementation posted on p5p.
* Generic hooks into Perl_block_{start,end}.Ben Morrow2010-07-126-2/+46
| | | | | | | | | | These take the form of a vtable pushed onto the new PL_blockhooks array. This could probably do with a API around it later. Separate pre_end and post_end hooks are needed to capture globals before the stack is unwound (like needblockscope in the existing code). The intention is that once a vtable is installed it never gets removed, so where necessary extensions using this will need to use a hinthv element to determine whether to do anything or not.
* Avoid UTF-8 cache panics with offsets beyond the string. Fixes RT #75898.Nicholas Clark2010-07-114-14/+32
| | | | | | Change S_sv_pos_u2b_forwards() to take a point to the (requested) UTF-8 offset, and return the actual UTF-8 offset for the byte position returned. This ensures that the cache is consistent with reality.
* In Perl_sv_pos_u2b_flags and S_sv_pos_u2b_cached, return early for offset 0.Nicholas Clark2010-07-111-1/+6
| | | | | 0 Unicode characters are always 0 octets long. Returning early ensures that any offsets we calculate later will always be non-zero.
* In S_sv_pos_u2b_midway, inline the call to S_sv_pos_u2b_forwards.Nicholas Clark2010-07-113-4/+11
|
* Sort and complete the op flags lists for op_dump()Vincent Pit2010-07-111-11/+20
|
* RT #73520: POSIX::strftime memory leakTony Cook2010-07-111-1/+1
| | | | Tested before/after with valgrind.
* Die with $@ instead of empty messageJosh ben Jore2010-07-101-1/+1
|
* Remove extra/useless $@ check after eval { require PadWalker } (which is ↵Josh ben Jore2010-07-101-1/+1
| | | | still checked)
* Promote eval( "require ..." ) to eval { require ... }Josh ben Jore2010-07-101-2/+2
|
* Promote eval { require( ... )} || die to mere require( ... )Josh ben Jore2010-07-101-2/+2
|
* Remove indirect object notation from debuggerJosh ben Jore2010-07-101-6/+6
|
* Document that @{$main::{'_<'.$filename}} lines are dualvar to (COP*).Josh ben Jore2010-07-101-3/+5
|
* In t/harness, clear PERL5LIB, PERLLIB, PERL5OPT as t/TEST does.Nicholas Clark2010-07-091-13/+13
| | | | | In fact, as t/harness requires t/TEST, simply get t/TEST to do it for t/harness too.
* Silence compiler warningJerry D. Hedden2010-07-081-1/+1
| | | | Signed-off-by: David Golden <dagolden@cpan.org>
* PATCH: t/lib/common.pl localized $/ setting; allow input 'no_plan'karl williamson (via RT)2010-07-081-2/+8
| | | | | | | | | | | | | | | | | | # New Ticket Created by karl williamson # Please include the string: [perl #76398] # in the subject line of all future correspondence about this issue. # <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=76398 > See attached patches >From 275169a8df5851331669da2dd791483379c3fc5e Mon Sep 17 00:00:00 2001 From: Karl Williamson <khw@khw-desktop.(none)> Date: Tue, 6 Jul 2010 09:20:42 -0600 Subject: [PATCH] t/lib/common.pl: localize changing $/ $/ changes should not affect callers. Signed-off-by: H.Merijn Brand <h.m.brand@xs4all.nl>
* Fix typoAbigail2010-07-081-1/+1
|
* Reorganize dist/threads-sharedJerry D. Hedden2010-07-083-114/+2
| | | | | Move dist/threads-shared/shared.pm to dist/threads-shared/lib/threads/shared.pm and remove its Makefile.PL.
* Get rid of PERL_DECL_PROTJan Dubois2010-07-073-221/+221
| | | | | It was added for PERL_OBJECT support in commit 0cb9638, which has been removed again with commit acfe0ab.
* Reorganize dist/threadsJerry D. Hedden2010-07-083-114/+2
| | | | Move threads.pm to lib/threads.pm and remove Makefile.PL
* cautionary note about "no VERSION"Ricardo Signes2010-07-061-0/+5
| | | | Signed-off-by: David Golden <dagolden@cpan.org>
* Change of address for Bo LindberghBo Lindbergh2010-07-062-2/+2
| | | | Signed-off-by: David Golden <dagolden@cpan.org>
* Add Bo Lindburgh alternate email to checkAUTHORS.plDavid Golden2010-07-061-0/+1
|
* Code for allowing uppercase X/B in hexadecimal/binary numbers (#76296).Bo Lindbergh2010-07-063-8/+8
| | | | Signed-off-by: David Golden <dagolden@cpan.org>
* Tests for allowing uppercase X/B in hexadecimal/binary numbers (#76296).Bo Lindbergh2010-07-062-4/+26
| | | | Signed-off-by: David Golden <dagolden@cpan.org>
* Clean up new Locale-Maketest test for use in coreDavid Golden2010-07-061-2/+0
|
* Locale::Maketext external cache supportTodd Rinaldo2010-07-064-20/+97
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch with tests provides RO support for lexicon hashes in Locale::Maketext. This allows you to have GDBM language files owned by root which can be accessed by non-root, but not altered. If your lexicon is a tied hash the simple act of caching the compiled value can be fatal. For example a GDBM_File GDBM_READER tied hash will die with something like: gdbm store returned -1, errno 2, key "..." at ... All you need to do is turn on caching outside of the lexicon hash itself like so: sub init { my ($lh) = @_; ... $lh->{'use_external_lex_cache'} = 1; ... } And then instead of storing the compiled value in the lexicon hash it will store it in $lh->{'_external_lex_cache'} I've verified that blead is the authoritative location for Locale::Maketext source. Signed-off-by: David Golden <dagolden@cpan.org>
* replace spaces with tabs in MANIFESTDavid Golden2010-07-061-1/+1
|
* Don't set strict for 'no 6;'David Golden2010-07-061-15/+14
| | | | | | | | Commit faee19b51573e81abe8811f1256a1d27777d6d04 was incomplete and only stopped features from being enabled under 'no'. This patch merges all 'use N.NN' type logic into a single if clause and then checks version numbers in separate if statements within it.
* Ignore generated files from Time-HiResDavid Golden2010-07-061-1/+3
|
* Ensure new arg to watchdog() in t/test.pl gets initializedJerry D. Hedden2010-07-051-1/+1
|
* added a "list" command to list open tickets that might have patchesJesse Vincent2010-07-051-0/+7
|
* we can't depend on patches having filenames. Thanks git!Jesse Vincent2010-07-051-1/+1
|
* First pass at a tool to help porters apply RT patches from theJesse Vincent2010-07-052-0/+27
| | | | commandline
* In Perl_lex_start(), use newSVpvn_flags() to reduce source and object size.Nicholas Clark2010-07-051-2/+2
|
* In pp_regcomp and pp_entereval, use newSVpvn_flags() to simplify code.Nicholas Clark2010-07-051-12/+5
|
* Speed up viacodeKarl Williamson2010-07-041-3/+7
| | | | | | Capturing parentheses greatly slow down regexes, at least here. On my machine, viacode took 27 seconds for the 22K Unicode names without capturing parens; 45s with.
* charnames.t update because of rebaseKarl Williamson2010-07-041-59/+6
| | | | | | Use of t/lib/common.pl caused some glitches; some behaviors of the underlying is() functions changed, so revised .t to work under this scheme.
* Correct perldelta for these changesKarl Williamson2010-07-041-1/+1
|
* Add vi hint for non-std format of charnames.pmKarl Williamson2010-07-041-0/+2
|
* More charnames pod updatesKarl Williamson2010-07-041-24/+39
|
* charnames: check for use bytes in vianame; efficiencyKarl Williamson2010-07-042-7/+21
| | | | | | | | | | When vianame returns a chr, it now verifies that it is legal under 'use bytes'. Update .t An instance of taking of a substr of a huge string is needed only in an error leg. Move it to that leg for performance. And make the message a subroutine so will be identical whenever raised.
* Clean up charnames pod, including new changesKarl Williamson2010-07-041-70/+86
| | | | | This patch brings the charnames pod up-to-date, and rewords it to hopefully be more clear.
* Clean up viacode, accept large aliasesKarl Williamson2010-07-042-12/+18
| | | | | This changes viacode to accept aliases that the user has defined beyond the Unicode range.
* Extend \N{} enhancements to vianame()Karl Williamson2010-07-043-63/+82
| | | | | This patch refactors charnames so that vianame and \N call the same common subroutine so that they have as identical behavior as possible.
* Bump version; some pod cleanupKarl Williamson2010-07-041-21/+36
|