summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* factor out duplicate code in struct xpv*Marcus Holland-Moritz2007-12-305-464/+127
| | | | | Message-ID: <20071229181742.1933db40@r2d2> p4raw-id: //depot/perl@32783
* Add file to MANIFEST that hitched a ride with change #32750. ItSteve Peters2007-12-301-0/+1
| | | | | | hopefully will fix RT #44357. p4raw-link: @32750 on //depot/perl: 662f1f9e0a1bbee45e1e02386151364c8517604e p4raw-id: //depot/perl@32782
* Include SVf_UTF8 in the bitmask when checking the SvFLAGS inMarcus Holland-Moritz2007-12-301-1/+1
| | | | | | SvPVutf8_force(), as otherwise the conditional expression will always be false and the optimisation will never kick in. p4raw-id: //depot/perl@32781
* Upgrade to IPC::SysV 2.00Marcus Holland-Moritz2007-12-307-11/+16
| | | p4raw-id: //depot/perl@32780
* Typo in op.cVincent Pit2007-12-292-8/+47
| | | | | | | | | Message-ID: <47712BF1.9060200@profvince.com> (And then an update to make the tests in gv.t expect the right thing, and test the behaviour that my change 26482 was originally supposed to produce, but didn't until this typo was fixed) p4raw-id: //depot/perl@32779
* In sv_chop(), write sentinals over the part of the buffer that isNicholas Clark2007-12-291-0/+23
| | | | | | thrown away, and verify that they are present in sv_backoff(). assert that we are being asked to chop off positive amounts of buffer. p4raw-id: //depot/perl@32778
* Move all code that relies on reading the to-be-thrown-away buffer aheadNicholas Clark2007-12-292-6/+2
| | | | | of the call to sv_chop() that throws it away. p4raw-id: //depot/perl@32777
* Change 32760 needed to add a cast to avoid a warning.Nicholas Clark2007-12-291-1/+3
| | | p4raw-id: //depot/perl@32776
* Reorder the external regexp flags to get RXf_PMf_STD_PMMOD into theNicholas Clark2007-12-293-86/+86
| | | | | | | lowest 4 bits (which saves a shift), and the "flags indicating special patterns" into contiguous bits. This makes everything a little tidier, and saves 88 bytes (woohoo!) of object file with -Os on x86 FreeBSD. p4raw-id: //depot/perl@32775
* The position of the modifier flag bits is actually encoded by a rightNicholas Clark2007-12-293-2/+5
| | | | | | | shift 12 in two places, so replace that magic number with a macro RXf_PMf_STD_PMMOD_SHIFT defined adjacent to the flags it interacts with. p4raw-id: //depot/perl@32774
* Sync after metaconfig backports. Some reorders were doneH.Merijn Brand2007-12-293-37/+38
| | | p4raw-id: //depot/perl@32773
* Perl_sv_chop() can return early if it's being asked to do nothing.Nicholas Clark2007-12-291-0/+4
| | | p4raw-id: //depot/perl@32763
* die if multiple macros in regexp.h attempt to use the same flag bit.Nicholas Clark2007-12-291-3/+9
| | | p4raw-id: //depot/perl@32762
* Fix Perl #49190, tests from Abigail, codefix from me.Yves Orton2007-12-292-8/+15
| | | p4raw-id: //depot/perl@32761
* Change Perl_av_iter_p() to return IV* rather than I32* (which meansNicholas Clark2007-12-294-5/+12
| | | | | having to allocate memory where sizeof(IV) > sizeof(I32)). p4raw-id: //depot/perl@32760
* Note to future self about moving the regexp flag bits around.Nicholas Clark2007-12-292-2/+5
| | | p4raw-id: //depot/perl@32759
* Wrap wrapped and wraplen from struct regexp in macros RW_WRAPPED() andNicholas Clark2007-12-294-11/+15
| | | | | | RX_WRAPLEN() to preserve source compatibility when they get moved around. p4raw-id: //depot/perl@32758
* Eliminate prelen from struct regexp. Possibly we are hardcoding a bitNicholas Clark2007-12-282-3/+4
| | | | | | to much, as the replacement assumes that the wrapping string has exactly 1 character after the wrapped string [specifically ')']. p4raw-id: //depot/perl@32757
* Replace 3 uses of RX_PRELEN(r) with plen, which has the same value.Nicholas Clark2007-12-281-3/+3
| | | | | (But isn't a pointer dereference. Or about to become a calculation.) p4raw-id: //depot/perl@32756
* Eliminate precomp from struct regexp. Store the offset of precomp fromNicholas Clark2007-12-282-8/+5
| | | | | | | wrapped in pre_prefix, a 4 bit value. (Maybe only for now) reduce seen_evals from I32 to 28 bits. Will anyone have more than 268435456 eval groups in a regexp? p4raw-id: //depot/perl@32755
* Silly Nick. There was a bug in change 30757 whereby the precomp of aNicholas Clark2007-12-281-1/+4
| | | | | | | | dup'd regexp would be pointing somewhere la-la. Probably at the precomp of the same regexp in the parent thread. (So it is only likely to go nasal daemon if the parent thread terminates first, or explicitly goes around freeing up run time generated regexps.) p4raw-id: //depot/perl@32754
* Wrap all accesses to the members precomp and prelen of struct regexp inNicholas Clark2007-12-289-27/+31
| | | | | | the macros RX_PRECOMP() and RX_PRELEN(). This will allow us to reduce the regexp storage overhead by computing them at retrieve time. p4raw-id: //depot/perl@32753
* Dump the REGEXP member of SVt_REGEXP.Nicholas Clark2007-12-282-1/+6
| | | p4raw-id: //depot/perl@32752
* First class regexps.Nicholas Clark2007-12-2816-80/+132
| | | p4raw-id: //depot/perl@32751
* SvPVX_const() triggers an assertion that when the sv isn't a PV.Steve Peters2007-12-282-1/+275
| | | | | | Back this down to just checking to see if the sv is a PV or not. p4raw-id: //depot/perl@32750
* Better diagnostics for the tests for #20683.Nicholas Clark2007-12-271-2/+2
| | | p4raw-id: //depot/perl@32749
* scalars used in postponed subexpressions aren't first class regexps,Nicholas Clark2007-12-272-2/+10
| | | | | | so don't upgrade them to ORANGE before attaching qr magic. (And don't stop using qr magic once regexps become first class) p4raw-id: //depot/perl@32748
* Proper $TODO support in &ok() and &iseq() in pat.tNicholas Clark2007-12-271-6/+11
| | | p4raw-id: //depot/perl@32747
* Localize $\ before changing it, so as not to affect print statements inNicholas Clark2007-12-271-6/+9
| | | | | the rest of the test. p4raw-id: //depot/perl@32746
* Test that we can clone regexps into new threads, and fix the bug inNicholas Clark2007-12-272-1/+14
| | | | | | change 32740 that this reveals. (Bug spotted by, and initial patch from, Jerry D. Hedden.) p4raw-id: //depot/perl@32745
* "Automate" change 32648 (ensure that -E always loads the latestNicholas Clark2007-12-271-1/+2
| | | | | features) p4raw-id: //depot/perl@32744
* You can't coerce a typeglob to a string. (Restore the error message -Nicholas Clark2007-12-272-2/+27
| | | | | | an assertion failure is not helpful). Test the 3 basic coercion error messages. p4raw-id: //depot/perl@32743
* assert() that the sv_unmagic() in S_regmatch() is unneeded.Nicholas Clark2007-12-271-2/+12
| | | | | Add a comment about the mg_find() that follows. p4raw-id: //depot/perl@32742
* You don't need $(DYNALOADER) to make $(nonxs_ext)Nicholas Clark2007-12-271-1/+1
| | | | | (which makes it easier to run minitest) p4raw-id: //depot/perl@32741
* Regexps are now orange.Nicholas Clark2007-12-277-7/+36
| | | | | (Correct a comparison of $] with 5.011 in B.pm) p4raw-id: //depot/perl@32740
* Remove the last Null(...) from x2p/*Nicholas Clark2007-12-271-1/+1
| | | | | | Something tells me that Win32 is compiling x2p with -DPERL_CORE *nix dosn't do this. p4raw-id: //depot/perl@32739
* Tweak Perl_sv_upgrade() so that references can upgrade to SVt_PVNicholas Clark2007-12-261-6/+7
| | | | | | rather than something bigger. Fix a possible bug - "reference" to SVt_NV needs to go direct to SVt_PVNV. p4raw-id: //depot/perl@32738
* Take code that occurs in three places to take a scalar and ready it toNicholas Clark2007-12-264-20/+18
| | | | | hold a reference, and convert it to a macro define prepare_SV_for_RV(). p4raw-id: //depot/perl@32737
* Remove two warnings (sub diag() was redefined, and implict split isNicholas Clark2007-12-261-2/+2
| | | | | deprecated) p4raw-id: //depot/perl@32736
* Upgrade to File-Temp-0.20Steve Peters2007-12-262-12/+18
| | | p4raw-id: //depot/perl@32735
* Eliminate SVt_RV, and use SVt_IV to store plain references.Nicholas Clark2007-12-2613-110/+163
| | | | | This frees up a scalar type for first class regular expressions. p4raw-id: //depot/perl@32734
* Better diagnostics by removing an && from an ok() and converting it toNicholas Clark2007-12-261-3/+4
| | | | | two is()s. p4raw-id: //depot/perl@32733
* change/correction to 32246Robin Barker2007-12-261-3/+3
| | | | | | From: "Robin Barker" <Robin.Barker@npl.co.uk> Message-ID: <2C2E01334A940D4792B3E115F95B722601604912@exchsvr1.npl.ad.local> p4raw-id: //depot/perl@32732
* Linking a RT ticket to an open TODO.Steve Peters2007-12-261-1/+2
| | | p4raw-id: //depot/perl@32731
* docs: list of places where $_ is usedGabor Szabo2007-12-261-4/+13
| | | | | | From: "Gabor Szabo" <szabgab@gmail.com> Message-ID: <d8a74af10712252049t1b63b475mfca9225324f5fce6@mail.gmail.com> p4raw-id: //depot/perl@32730
* docs: replace FH by my $fh in openGabor Szabo2007-12-261-4/+12
| | | | | | From: "Gabor Szabo" <szabgab@gmail.com> Message-ID: <d8a74af10712252003m2d3244fbv2955fe17e683063d@mail.gmail.com> p4raw-id: //depot/perl@32729
* 64-bit fix for Time::LocalJan Dubois2007-12-261-6/+3
| | | | | | From: "Jan Dubois" <jand@activestate.com> Message-ID: <044301c84334$c6aa2960$53fe7c20$@com> p4raw-id: //depot/perl@32728
* Pod::Html: fix markup errors with (nested) definition listsBrendan O'Dea2007-12-264-72/+79
| | | | | Message-ID: <20071201005912.GA14441@londo.c47.org> p4raw-id: //depot/perl@32727
* Use print rather than diag(), as these routine messages shouldn't beNicholas Clark2007-12-261-1/+3
| | | | | going to STDERR. p4raw-id: //depot/perl@32726
* Swap SVt_RV and SVt_NV in the SV ordering.Nicholas Clark2007-12-267-18/+22
| | | p4raw-id: //depot/perl@32725