summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Make struct regexp the body of SVt_REGEXP SVs, REGEXPs become SVs,Nicholas Clark2008-01-0218-183/+224
| | | | | | and regexp reference counting is via the regular SV reference counting. This was not as easy at it looks. p4raw-id: //depot/perl@32804
* Convert some "regexp" and "struct regexp" to REGEXP where they areNicholas Clark2008-01-024-14/+14
| | | | | currently equivalent but will be wrong once the equivalence vanishes. p4raw-id: //depot/perl@32803
* Wrap all deferences of struct regexp* in macros RX_*() [and forNicholas Clark2008-01-0213-222/+250
| | | | | | | regcomp.c and regexec.c RXp_* where necessary] so that in future we can maintain source compatibility when we add an extra level of dereferencing. p4raw-id: //depot/perl@32802
* shield t/test.pl functions from global print modifiersMichael G. Schwern2008-01-021-17/+28
| | | | | Message-ID: <477AF314.9050808@pobox.com> p4raw-id: //depot/perl@32801
* Upgrade to constant-1.15Steve Peters2008-01-012-2/+2
| | | p4raw-id: //depot/perl@32800
* Upgrade to Sys-Syslog-0.24Steve Peters2008-01-012-2/+5
| | | p4raw-id: //depot/perl@32799
* Upgrade to CGI.pm-3.32. Retain the version bump since bug fixes Steve Peters2008-01-011-2/+2
| | | | | have not yet been integrated. p4raw-id: //depot/perl@32798
* Missing test, adding $ to the other testsH.Merijn Brand2008-01-011-3/+3
| | | p4raw-id: //depot/perl@32797
* Bring back the platforms that do not support -fstack-protectorH.Merijn Brand2008-01-011-11/+16
| | | p4raw-id: //depot/perl@32795
* Add editor blocks to some header files.Marcus Holland-Moritz2008-01-0121-5/+201
| | | p4raw-id: //depot/perl@32793
* Needed one more cast after 32760. The VMS compiler complainedCraig A. Berry2007-12-311-1/+1
| | | | | | that a pointer to int and pointer to long are different things even though they both point to a 32-bit signed integer. p4raw-id: //depot/perl@32792
* Fix VMS::Stdio bug introduced in 32713.Craig A. Berry2007-12-311-1/+1
| | | p4raw-id: //depot/perl@32791
* As Perl_magic_setbm() and Perl_magic_setfm() aren't in the public API,Nicholas Clark2007-12-314-42/+0
| | | | | they can just go. p4raw-id: //depot/perl@32790
* Perl_magic_setbm() and Perl_magic_setfm() are mathoms that can beNicholas Clark2007-12-316-31/+47
| | | | | | | merged with Perl_magic_setregexp(). [Coverage on the testsuite suggests that more than that they're actually dead code, but in theory it should be possible to construct a test case that exercises them.] p4raw-id: //depot/perl@32789
* assert() that we're not trying to free scalars a second time.Nicholas Clark2007-12-311-0/+1
| | | p4raw-id: //depot/perl@32788
* Upgrade to AutoLoader-5.64Steve Peters2007-12-315-9/+147
| | | p4raw-id: //depot/perl@32787
* Upgrade to Math-Complex-1.38Steve Peters2007-12-314-8/+8
| | | p4raw-id: //depot/perl@32786
* Change 32783 was generating warnings from gcc about an extra semicolonNicholas Clark2007-12-301-1/+1
| | | | | | in structure or union. No doubt some non-sloppy compilers will consider this an error and barf. We don't like barfing. p4raw-id: //depot/perl@32785
* Add script to check source code for ANSI-C violations.Marcus Holland-Moritz2007-12-302-0/+112
| | | p4raw-id: //depot/perl@32784
* 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