summaryrefslogtreecommitdiff
path: root/regcomp.c
Commit message (Collapse)AuthorAgeFilesLines
* The position of the modifier flag bits is actually encoded by a rightNicholas Clark2007-12-291-1/+2
| | | | | | | 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
* Wrap wrapped and wraplen from struct regexp in macros RW_WRAPPED() andNicholas Clark2007-12-291-9/+9
| | | | | | 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-281-1/+0
| | | | | | 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-281-5/+2
| | | | | | | 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-281-12/+12
| | | | | | 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
* First class regexps.Nicholas Clark2007-12-281-1/+1
| | | p4raw-id: //depot/perl@32751
* Fix various bugs in regex engine with mixed utf8/latin pattern and strings. ↵Yves Orton2007-12-171-4/+23
| | | | | | | Related to [perl #36207] among others Message-ID: <9b18b3110712170621h41de2c76k331971e3660abcb0@mail.gmail.com> p4raw-id: //depot/perl@32628
* Re: RC1 build failureJarkko Hietaniemi2007-11-231-18/+29
| | | | | Message-ID: <4746F41F.6090508@iki.fi> p4raw-id: //depot/perl@32467
* Fix (or hide?) a case of memory corruption with \K in substitutionsRafael Garcia-Suarez2007-10-311-0/+5
| | | p4raw-id: //depot/perl@32206
* Fix a few segfaults and a when() bugjosh2007-10-171-2/+6
| | | | | | From: "josh" <twists@gmail.com> Message-ID: <20071015043708.GA10981@grenekatz.org> p4raw-id: //depot/perl@32120
* Silence compiler warnings on Win32 (VC6)Steve Hay2007-10-081-2/+2
| | | p4raw-id: //depot/perl@32064
* Re: several compilation problems on VMS in perl@32039Craig A. Berry2007-10-061-6/+6
| | | | | | | From: "Craig A. Berry" <craig.a.berry@gmail.com> Message-ID: <c9ab31fc0710061147x3ee7f9bdg2b1bac3acd018bb2@mail.gmail.com> Date: Sat, 6 Oct 2007 13:47:03 -0500 p4raw-id: //depot/perl@32058
* Use the PERL_PV_PRETTY_NOCLEAR flag to simplify the code inNicholas Clark2007-10-061-9/+7
| | | | | Perl_regprop() for the EXACT node case. p4raw-id: //depot/perl@32049
* Avoid using *pvf functions when the format string is a fixed string.Nicholas Clark2007-10-061-2/+2
| | | p4raw-id: //depot/perl@32043
* Revert one hunk of change 32034 that had the possibility of being buggyNicholas Clark2007-10-061-1/+11
| | | | | | | | (the sprintf "%c" code will work correctly when the SV is UTF-8). Audit all the rest for UTF-8 correctness, and force SvUTF-8_off() in utf8.c to ensure correctness. (The string is reset to "", so this will not be a behaviour change.) p4raw-id: //depot/perl@32040
* Eliminate the Perl_sv_catpvf() in TRIE_STORE_REVCHARNicholas Clark2007-10-051-5/+13
| | | p4raw-id: //depot/perl@32036
* Eliminate most *printf-like calls that use a simple "%c" format,Nicholas Clark2007-10-051-5/+9
| | | | | | replacing them with constructions that are more efficient because they avoid the overhead of the *printf format parser and interpreter code. p4raw-id: //depot/perl@32034
* API spelling patch, by Jerry D. HeddenRafael Garcia-Suarez2007-09-261-2/+2
| | | p4raw-id: //depot/perl@31983
* Re: [perl #45605] Regexp failure with utf8-flagged string and byte-flagged ↵Tels2007-09-251-1/+14
| | | | | | | pattern Message-Id: <200709221427.30425@bloodgate.com> p4raw-id: //depot/perl@31961
* silence a spurious compiler warning in regcomp.cDave Mitchell2007-09-241-0/+1
| | | p4raw-id: //depot/perl@31948
* [perl #45337] utf8 + "[a]a{2}" + /$.../ = panic: sv_len_utf8 cacheDave Mitchell2007-09-141-1/+1
| | | | | when shrinking an SV, shrink the sv_len_utf8 cache too! p4raw-id: //depot/perl@31867
* regcomp.c fix 64int warningReini Urban2007-08-121-1/+1
| | | | | Message-Id: <46BF0D66.5020605@x-ray.at> p4raw-id: //depot/perl@31703
* Optimize split //Ævar Arnfjörð Bjarmason2007-08-091-1/+5
| | | | | | From: "Ævar Arnfjörð Bjarmason" <avarab@gmail.com> Message-ID: <51dd1af80708090049p2cf4810ep5a437ad53f64fa78@mail.gmail.com> p4raw-id: //depot/perl@31693
* Forbid \g0. (tests coming later)Rafael Garcia-Suarez2007-07-031-0/+2
| | | p4raw-id: //depot/perl@31524
* char is not a good type to use for array indexes;Jerry D. Hedden2007-07-011-2/+2
| | | | | | | | | | should have been U8 in the first place. Originally noticed by Jerry Hedden in Subject: [PATCH] Compiler warning in regcomp.c From: "Jerry D. Hedden" <jdhedden@cpan.org> Message-ID: <1ff86f510706301334t337903a0k46abc6d2d25c68a5@mail.gmail.com> p4raw-id: //depot/perl@31510
* regclass on EBCDIC platformsBenjamin Carter2007-06-301-2/+6
| | | | | Message-ID: <20070630044259.GB22566@egg> p4raw-id: //depot/perl@31507
* /p vs (?p)Abigail2007-06-301-11/+38
| | | | | | | | | | | | | Date: Fri, 29 Jun 2007 23:38:07 +0200 Message-ID: <20070629213807.GA14454@abigail.nl> Subject: [PATCH pod/perlre.pod] Keeping up with the changes. From: Abigail <abigail@abigail.be> Date: Sat, 30 Jun 2007 01:24:36 +0200 Message-ID: <20070629232436.GA15326@abigail.nl> Plus tweaks, and debug enahancements. p4raw-id: //depot/perl@31506
* Rename various regex defined so that they have distinct prefixes based on ↵Yves Orton2007-06-281-21/+21
| | | | | | | | | | | | | | their usage. RXf_ => flags used in pm_flags argument to regcomp and stored in the regex via rx->extflags PREGf_ => flags stored in rx->intflags RXapif_ => argument flags for regex named capture api RX_BUFF_IDX_ => special indexes to represent $` $' $& used in the numeric capture buffer api PREGf is untouched by this change, but RXf_ is split into RXapif and RX_BUFF_IDX_. p4raw-id: //depot/perl@31497
* Replace pattern parsing logic with optree "parsing" logic.Yves Orton2007-06-281-0/+15
| | | p4raw-id: //depot/perl@31496
* Move the RXf_WHITE logic for split " " into the regex engineÆvar Arnfjörð Bjarmason2007-06-281-2/+6
| | | | | | | | | From: "Ævar Arnfjörð Bjarmason" <avarab@gmail.com> Message-ID: <51dd1af80706281306i4dbba39em3eeb8da1d67ea27c@mail.gmail.com> (with tweaks) p4raw-id: //depot/perl@31495
* Free memory in case of error/failure to compile.Yves Orton2007-06-281-2/+3
| | | | | Hopefully valgrind will notice and like. :-) p4raw-id: //depot/perl@31483
* s/\bunicode\b/Unicode/; # For everything not dual lifeNicholas Clark2007-06-241-4/+4
| | | p4raw-id: //depot/perl@31455
* Plug a memory leak (noticed by Yves)Rafael Garcia-Suarez2007-06-071-1/+3
| | | p4raw-id: //depot/perl@31352
* Re: [PATCH] Callbacks for named captures (%+ and %-)Ævar Arnfjörð Bjarmason2007-06-061-10/+168
| | | | | | From: "Ævar Arnfjörð Bjarmason" <avarab@gmail.com> Message-ID: <51dd1af80706031324y5618d519p460da27a2e7fe712@mail.gmail.com> p4raw-id: //depot/perl@31341
* Re: BBC(Bleadperl Breaks CPAN) Today: String::MultibyteYves Orton2007-06-031-5/+4
| | | | | Message-ID: <9b18b3110706030821u39460f96ic342dda8ba9fcdf7@mail.gmail.com> p4raw-id: //depot/perl@31328
* Re: [perl #43015] regex /.*\z/ doesn't matches strings ending with \nYves Orton2007-05-291-5/+7
| | | | | Message-ID: <9b18b3110705281046ib37acb4i7960fe415325270f@mail.gmail.com> p4raw-id: //depot/perl@31303
* Silence some VC6 compiler warnings in the regex codeSteve Hay2007-05-031-1/+1
| | | p4raw-id: //depot/perl@31131
* FETCH/STORE/LENGTH callbacks for numbered capture variablesÆvar Arnfjörð Bjarmason2007-05-031-3/+70
| | | | | | From: "Ævar Arnfjörð Bjarmason" <avarab@gmail.com> Message-ID: <51dd1af80705011658g1156e14cw4d2b21a8d772ed41@mail.gmail.com> p4raw-id: //depot/perl@31130
* The revenge of the constsAndy Lester2007-05-031-4/+2
| | | | | Message-ID: <20070503054554.GA30975@petdance.com> p4raw-id: //depot/perl@31123
* Get PERL_OLD_COPY_ON_WRITE passing all tests, apart fromNicholas Clark2007-05-021-4/+1
| | | | | | ext/Compress/Raw/Zlib/t/07bufsize.t which still puzzles me. p4raw-id: //depot/perl@31120
* Re: [PATCH] Change meaning of \v, \V, and add \h, \H to match Perl6, add \R ↵Yves Orton2007-05-011-3/+3
| | | | | | | to match PCRE and unicode tr18 Message-ID: <9b18b3110705010335w1924941ep3eb925a3ed597604@mail.gmail.com> p4raw-id: //depot/perl@31111
* Re: [PATCH] Cleanup of the regexp APIÆvar Arnfjörð Bjarmason2007-04-301-11/+11
| | | | | | From: "Ævar Arnfjörð Bjarmason" <avarab@gmail.com> Message-ID: <51dd1af80704261922j3db0615wa86ccc4cb65b2713@mail.gmail.com> p4raw-id: //depot/perl@31106
* Re: Analysis of problems with mixed encoding case insensitive matches in ↵Yves Orton2007-04-271-13/+15
| | | | | | | regex engine. Message-ID: <9b18b3110704270709y50ef652ci436b3bb29abca275@mail.gmail.com> p4raw-id: //depot/perl@31102
* Avoid a SIGBUS caused by passing a U32 pointer to utf8_to_uvchr(),Nicholas Clark2007-04-261-1/+1
| | | | | | which expects a STRLEN pointer. Avoid some signed/unsigned casting warnings by adding casts. p4raw-id: //depot/perl@31093
* Forgot to submit regcomp.c in change #31081Rafael Garcia-Suarez2007-04-261-5/+38
| | | | | p4raw-link: @31081 on //depot/perl: 32e6a07c84b153f78f946de50870bc0ee030624f p4raw-id: //depot/perl@31085
* Re: [PATCH (incomplete)] Make regcomp use SV* sv, instead of char* exp, ↵Ævar Arnfjörð Bjarmason2007-04-231-13/+13
| | | | | | | char* xend Message-ID: <51dd1af80704211430m6ad1b4afy49b069faa61e33a9@mail.gmail.com> p4raw-id: //depot/perl@31027
* Change meaning of \v, \V, and add \h, \H to match Perl6, add \R to match ↵Yves Orton2007-04-231-8/+101
| | | | | | | PCRE and unicode tr18 Message-ID: <9b18b3110704221434g43457742p28cab00289f83639@mail.gmail.com> p4raw-id: //depot/perl@31026
* Silence the g++ warnings "right-hand operand of comma has no effect"Nicholas Clark2007-04-101-4/+4
| | | p4raw-id: //depot/perl@30900