summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* permit labels to be stackedZefram2010-12-135-1112/+1268
| | | | | Liberalise label syntax a little more, by allowing multiple adjacent labels with no intervening statements, as in "foo: bar: baz:".
* mark blockhooks API as experimentalZefram2010-12-132-7/+7
|
* Explicitly close filehandle in ExtUtils::CBuilder::have_compiler().Craig A. Berry2010-12-131-0/+1
| | | | | | | | | | | | | | A recent change removed the lexical scope that would have caused the lexical filehandle on the temporary source file to get closed automatically. If the filehandle is still open for write, you can't compile it or delete unless it's open for shared access, which is not the default on VMS (and deleting an open fle might be a problem on Windows as well). Without deleting the .c files, a subsequent make (even after a make realclean) will identify CBuilder as an XS extension and fail when it can't compile the non-existent CBuilder.c, which breaks the build for second and subsequent runs of a smoke test.
* perldelta tweaksFather Chrysostomos2010-12-121-3/+4
|
* perldelta for a4256772Father Chrysostomos2010-12-121-1/+8
|
* perldelta for ad021bf/[perl #76026]Father Chrysostomos2010-12-121-1/+7
|
* perldelta for 78cdf10Father Chrysostomos2010-12-121-1/+8
|
* perldelta for 88b5a87Father Chrysostomos2010-12-121-1/+6
|
* Reduce redundant macros and prototypes in vmsish.h.Craig A. Berry2010-12-121-176/+87
| | | | | | | | In imitation of e64ca59f2852bc5d0450eea5ed412609a046829d, we don't really need different prototypes or macros for MULTIPLICITY and non-MULTIPLICITY. For now, leave drop-in replacements of CRTL functions alone as there may be more going on there (arguably these really have no business passing around Perl thread context).
* Update ExtUtils-CBuilder to CPAN version 0.2802Chris 'BinGOs' Williams2010-12-1216-15/+22
| | | | | | | | | | | [DELTA] 0.2802 - Sun Dec 12 07:22:43 EST 2010 Fixed: - Incorporated another t/04-base.t fix from bleadperl [Chris Williams]
* Update Digest-SHA to CPAN version 5.49Chris 'BinGOs' Williams2010-12-1210-68/+131
| | | | | | | | | | | | | [DELTA] 5.49 Sun Dec 12 07:22:04 MST 2010 - modified Addfile to accept all POSIX filenames -- standard allows all characters except NUL and '/' - updated shasum to more closely mimic sha1sum/md5sum -- added "backslash processing" to handle newlines and backslashes in filenames -- now accepts all POSIX filenames via Addfile -- thanks to Sean Burke for identifying edge cases
* Make entertry a LOGOP, not BASEOP/UNOPReini Urban2010-12-122-2/+2
| | | | | | | The initial parse-time UNOP is upgraded at ck_eval to an LOGOP - op_other holding the ptr to leavetry - which causes problems at run-time B optype inspection. The opclass info was always wrong, the Bytecode compiler broke with 5.12.
* blead breaks Attribute::ConstantKarl Williamson2010-12-122-3/+11
| | | | | | The problem is that I confused FOLD with ANYOF_FOLD, and as a result, emitted a locale regnode, which is tainted. Any tests that required non-tainting started failing
* rename some grammar productions for clarityZefram2010-12-122-22/+22
| | | | | | | Some of the names for types of expression were misleading. Rename "listexpr"->"optlistexpr", "listexprcom"->"optexpr", and "argexpr"->"listexpr" to make them more accurately descriptive and more consistent.
* Fix test count in t/re/pat.tFather Chrysostomos2010-12-111-1/+1
|
* [perl #76026] match variables persist between calls to a sort subFather Chrysostomos2010-12-112-1/+37
| | | | | | | | | | | | Since, for speed’s sake, pp_sort does not call PUSH/POPBLOCK for every invocation of a sort subroutine, it fails to restore PL_curpm after each call (POPBLOCK usually handles that). So the new values of match vars like $1 when the sub returns are what it sees at the next invocation. This commit fixes this by resetting PL_curpm after each call to the subroutine. There are actually three different functions for this (S_sortcv*) so they all need modification.
* perldelta for [perl #68712]Father Chrysostomos2010-12-111-1/+8
|
* 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
|