summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* recursive-descent expression parsingZefram2010-12-1114-1382/+2272
| | | | | | New API functions parse_fullexpr(), parse_listexpr(), parse_termexpr(), and parse_arithexpr(), to parse an expression at various precedence levels.
* re/pat.t: Add todo test for #38133Karl Williamson2010-12-111-0/+12
|
* perldelta: mention need to update unicode podsKarl Williamson2010-12-111-0/+4
|
* unicode_strings.t: Revise tests for EBCDIC, clarityKarl Williamson2010-12-111-48/+58
| | | | This patch addresses some of Hugo's concerns.
* regcomp.c: Clean up optimization for 1-char []Karl Williamson2010-12-111-16/+47
| | | | | | | | | | A single character character class can be optimized into an EXACT node. The changes elsewhere allow this to no longer be constrained to ASCII-only when the pattern isn't UTF-8. Also, the optimization shouldn't have happened for FOLDED characters, as explained in the comments, when they participate in multi-char folds; so that is removed. Also, a locale node with folded characters can be optimized.
* regcomp: Allow freeing up bit in ANYOF flagsKarl Williamson2010-12-113-14/+42
| | | | | | The flags field is fully used, and until the ANYOF node is split later in development, the CLASS bit will need to be freed up to give the space for other uses. This patch allows for this to easily be toggled.
* regcomp.c: Move [] inversion optimizationKarl Williamson2010-12-111-13/+14
| | | | | | The optimization to do inversion a compile time is moved to earlier. This doesn't help today, but it may someday when we start keeping better track of Unicode characters, and is the more logical place for it.
* regcomp.c: When inverting a [], adjust bit countKarl Williamson2010-12-111-0/+3
| | | | | When one complements every bit, the count of those that are set should be complemented as well.
* Subject: [PATCH] regcomp.c: adjust flagKarl Williamson2010-12-111-1/+1
| | | | | When something matches above Latin1, it should have the ANYOF_UTF8 bit set.
* regcomp.c: Change constants for clarity.Karl Williamson2010-12-111-1/+1
| | | | | Oddly, it is clearer to use 0xFF as an exclusive-or target instead of an unrelated #define that happens to have that value.
* regcomp.c: fix indentKarl Williamson2010-12-111-1/+1
|
* regcomp.c: remove no longer needed testKarl Williamson2010-12-111-7/+6
| | | | | | | | optimize_invert is no longer needed given the changes already made, as now if there is something not in the bitmap, a flag will be set, and the optimization doesn't take place unless the only flag is inversion. And, the bitmap is setup completely now for anything that doesn't have to be deferred to runtime, and such deferrals are marked with other flags.
* regcomp.c: isASCII doesn't match outside ANYOF bitmapKarl Williamson2010-12-111-5/+3
| | | | | So there is no need to tell regexec that it does, and then can combine two other statements
* regcomp.c: Fix compiler warningKarl Williamson2010-12-111-1/+1
| | | | | | One smoke is warning about truncated results. This should fix that. It may be that other compilers will now complain, and we'll need to add casts, but I'm waiting to see.
* regcomp.c: Remove no longer necessary loopKarl Williamson2010-12-111-16/+6
| | | | | | | | Recent changes to this cause the bitmap to be populated where possible with the all folding taken into consideration. Therefore, the FOLD flag isn't necessary except when that wasn't possible, and the loop that went through looking for folds is also not necessary, as the bitmap is now completely populated before it gets to where the loop was.
* regcomp.c: remove unncessary countingKarl Williamson2010-12-111-4/+1
| | | | | | | stored now contains the number of 1 bits in the ANYOF node, and is no longer needed to be arbitrarily set. Part of this is because there is now a flag if there is any match outside the bitmap, which prohibits optimization if so.
* Proper sa_len configuration for VMS.Craig A. Berry2010-12-111-1/+39
| | | | | It's available on anything decent and recent, but it requires _SOCKADDR_LEN defined to make it visible.
* Windows compatibility fixes for running expand-macro.pl:Max Maischein2010-12-111-5/+14
| | | | | a) Close filehandle to try.i so we can erase it b) The build process wants to be run from bleadperl/Win32
* Make Porting/expand-macro.pl use $Config{make} instead of hardcoded `make`Max Maischein2010-12-111-2/+5
|
* regcomp.c: clarify commentKarl Williamson2010-12-111-2/+1
|
* fix various compiler warnings from XS codeZefram2010-12-1122-58/+129
| | | | | | | | | | | Trivial changes to fix warnings of types * unclear precedence * assignment as conditional * signed/unsigned mixing * unused parameter/variable * value computed not used * wrong argument type for a printf format * variable may be used uninitialised (due to unhandled switch case)
* Dual-life File::CheckTreeFlorian Ragwitz2010-12-115-47/+46
|
* Update ExtUtils-CBuilder to CPAN version 0.2801Chris 'BinGOs' Williams2010-12-1116-15/+22
| | | | | | | | | | | [DELTA] 0.2801 - Wed Dec 8 21:36:56 EST 2010 Fixed: - Fixed spurious t/04-base.t failure when run from Perl core [David Golden]
* Upgrade Devel-SelfStubber fro version 1.03 to 1.04Florian Ragwitz2010-12-113-2/+6
| | | | | This is necessary because the CPAN version required its SelfLoader dependency to be bumped to a version that didn't swallow text after __END__.
* Fix permissions for ext/XS-APItest/t/refs.t, added as +x in 88b5a879c6c933e0.Nicholas Clark2010-12-111-0/+0
|
* Encode has CPAN as its upstreamFlorian Ragwitz2010-12-111-1/+1
| | | | As confirmed by Dan.
* Fix some casts in typemapFather Chrysostomos2010-12-101-2/+2
|
* Fix test count in ext/XS-APItest/t/refs.tFather Chrysostomos2010-12-101-1/+1
|
* Add ext/XS-APItest/t/refs.t to MANIFESTFather Chrysostomos2010-12-101-0/+1
|
* Fix XS types in typemap in order to deal with references with get magics ↵gfx2010-12-103-24/+112
| | | | correctly
* [perl #68712] caller() filenames broken by "use"Father Chrysostomos2010-12-102-8/+12
| | | | | | | | | | | | | | | | | | | | | | | | | require() sets the file name for PL_compiling but localises it to the calling scope, not the scope that it creates. As a result, caller() during or after require (in the same scope that require was called from) will return the wrong file name for whichever code is being com- piled at the time and any scope sharing the same CopFILE (or something like that): $ ./miniperl -Ilib -e 'BEGIN{require strict; warn join ", ", caller(0)}' main, lib/strict.pm, 1, main::BEGIN, 1, , , , 0, , at -e line 1. ^^^^^^^^^^^^^ should be -e This commit moves the SAVECOPFILE_FREE and CopFILE_set down below the ENTER_with_name to put it in the right scope. It was in its existing location presumably because namesv needed to be freed before any code that could die (and the CopFILE_set call reads a PV allocated for namesv). So now namesv is mortalised instead. The if(tryrsfp) is no longer necessary, as that code is never reached when tryrsfp is false. The block in between that sets %INC was reading CopFILE. It can simply use the same tryname variable that is passed to CopFILE_set.
* Update Win32 from CPAN (from 0.40 to 0.41)Jan Dubois2010-12-105-24/+65
|
* perldelta for [perl #72090]Father Chrysostomos2010-12-101-0/+8
|
* perldelta for [perl #68658]Father Chrysostomos2010-12-101-1/+7
|
* perldelta for 0e5d25bFather Chrysostomos2010-12-101-1/+5
|
* [perl #80548] Add the stash name to DTrace probesDavid Leadbeater2010-12-103-12/+14
| | | | | | | | | | | This adds an additional parameter to perl's dtrace probes with the stash name of the subroutine. This generally looks nicer than the filename but gives a similar level of context. As this is an additional parameter this will not have an impact on existing DTrace scripts. (Also due to the way DTrace works I believe it does not break binary compatibility and would be safe to backport to maint-5.12 if desired, but I'm not a DTrace expert.)
* [perl #72090] unitialized variable name wrong with no strict refsFather Chrysostomos2010-12-102-0/+13
| | | | | | | | | | | | | | | | $ ./perl -we '$a = @$a > 0' Use of uninitialized value $a in array dereference at -e line 1. Use of uninitialized value $a in numeric gt (>) at -e line 1. S_find_uninit_var was not taking into account that rv2*v could return undef. So it merrily looked at the child ops to find one that named a variable. This commit makes it skip any rv2av/rv2hv that does not have an OP_GV as its child op. In other words, it skips @{...} and %{...} (including the shorthand forms @$foo and %$foo), but not @foo or %foo.
* Dual-life autouseFlorian Ragwitz2010-12-105-5/+11
|
* Dual-life EnvFlorian Ragwitz2010-12-106-15/+12
|
* Localise temporary FHs in the EU::Constant testsFlorian Ragwitz2010-12-101-0/+3
| | | | | | This avoids makes them work on 5.6.2 again, where the fact that the "XS" glob is also used elsewhere in the tests triggered what seems to be a bug that causes *XS to lose it's "q" magic.
* As of 2.25, 5.6.x is writing minor version 8, so update malice.tNicholas Clark2010-12-101-1/+1
|
* 5.8.8's Test::More doesn't provide note(), so revert to a print statement.Nicholas Clark2010-12-101-1/+1
|
* The CPAN release will include Test::More to be used on old PerlsAbhijit Menon-Sen2010-12-1030-0/+33
|
* Make sure META.yml mentions perlbug as the right place to file bugsAbhijit Menon-Sen2010-12-101-0/+3
|
* Convert all Storable's tests to use Test::More.Nicholas Clark2010-12-1018-404/+278
| | | | | | | | | | | Originally Storable didn't use any test modules, and had an ok subroutine in t/st-dump.pl. Subsequently some tests were made conditional on Test::More loading, and more recently the distribution started bundling Test::More, at which point newer tests were written to use it. However, the older tests have never been refactored to use it. Hence refactor tests to use Test::More, and delete the now-unused test functions from t/st-dump.pl Tested on blead and 5.004.
* Dual-life I18N::CollateFlorian Ragwitz2010-12-105-14/+24
|
* Add probe for sa_len availability in sockaddr structH.Merijn Brand2010-12-1019-1297/+1347
| | | | Sorry for the huge config_h.SH re-order. Don't know (yet) what caused that
* perldelta for [perl #19135]Father Chrysostomos2010-12-101-1/+8
|
* legacy.pm is no moreFlorian Ragwitz2010-12-101-1/+0
| | | | | It has been removed in 1863b87966ed39b042c45e12d1b4e0b90b9cc071. feature.pm replaces it.
* perlfaq is not the only exception; just say "few"Ricardo Signes2010-12-091-1/+1
|