summaryrefslogtreecommitdiff
path: root/regcomp.c
Commit message (Collapse)AuthorAgeFilesLines
* 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
* RXf_WHITE never used due to small bug in regcomp.cÆvar Arnfjörð Bjarmason2007-04-081-1/+1
| | | | | | From: "Ævar Arnfjörð Bjarmason" <avarab@gmail.com> Message-ID: <51dd1af80704061717s44107fb9jf468ef28080d33a6@mail.gmail.com> p4raw-id: //depot/perl@30871
* Re: Proposed changes and to regular expression interfaces in coreÆvar Arnfjörð Bjarmason2007-04-061-0/+6
| | | | | | From: "Ævar Arnfjörð Bjarmason" <avarab@gmail.com> Message-ID: <51dd1af80703291552y1073bcb6r954b043eb68a4459@mail.gmail.com> p4raw-id: //depot/perl@30849
* Re: pmdynflags and thread safetyYves Orton2007-04-041-10/+11
| | | | | Message-ID: <9b18b3110704031646p7ac8dbearf9e41397a5f884d8@mail.gmail.com> p4raw-id: //depot/perl@30841
* In struct regexp replace the two arrays of I32s accessed via startpNicholas Clark2007-03-261-25/+17
| | | | | | | | | | and endp with a single array of struct regexp_paren_pair, which has 2 I32 members. PL_regstartp and PL_regendp are replaced with a pointer to regexp_paren_pair. The regexp swap structure now only has one member, so abolish it and store the pointer to the swap array directly. Hopefully keeping the corresponding start and end adjacent in memory will help with cache coherency. p4raw-id: //depot/perl@30769
* Simplify the logic in Perl_re_dup() - copy the structure as 1 block,Nicholas Clark2007-03-261-31/+15
| | | | | | then fix up what differs. Curiously -Os with gcc x86 produces the same sized object code. p4raw-id: //depot/perl@30757
* Change 30753 forgot to remove 2 now unused variables.Nicholas Clark2007-03-251-2/+0
| | | p4raw-id: //depot/perl@30756
* Looks like re_dup has been leaking references on 2 SVs for most regexpsNicholas Clark2007-03-251-15/+27
| | | | | since dot (only to be recovered for certain at thread exit). p4raw-id: //depot/perl@30755
* A more efficient copy in Perl_reg_temp_copy()Nicholas Clark2007-03-251-25/+9
| | | p4raw-id: //depot/perl@30754
* Re: The performance problem of 30678Marcus Holland-Moritz2007-03-251-3/+21
| | | | | | Message-ID: <20070324185511.02f84668@r2d2> Date: Sat, 24 Mar 2007 18:55:11 +0100 p4raw-id: //depot/perl@30753
* startp and endp can allocate their array of I32s from the same block ofNicholas Clark2007-03-241-14/+10
| | | | | | | memory, and Copy() and free it as one. Probably these two pointers to array should merge into single pointer to an array of structs. p4raw-id: //depot/perl@30745