platform/upstream/perl.git
12 years agoRevert to the correct value of lddlflags for AddressSanitizer
Vincent Pit [Fri, 22 Jun 2012 12:02:20 +0000 (14:02 +0200)]
Revert to the correct value of lddlflags for AddressSanitizer

-Afoo=val appends 'val' to the value of variable foo after the platform
hints are processed, but before the default value is computed by Configure.
At this time, 'foo' appears as non-empty and Configure skips the default
logic. This is the reason -shared must always be added to lddlflags.

I don't know why I didn't caught this while testing AddressSanitizer builds.

12 years agoRun podtidy on perlhacktips
Vincent Pit [Fri, 22 Jun 2012 09:59:26 +0000 (11:59 +0200)]
Run podtidy on perlhacktips

12 years agoClarify how AddressSanitizer should be invoked when useshrplib is set
Vincent Pit [Fri, 22 Jun 2012 09:57:31 +0000 (11:57 +0200)]
Clarify how AddressSanitizer should be invoked when useshrplib is set

12 years agoPOD typo in perlfunc
Shirakata Kentaro [Fri, 22 Jun 2012 09:12:39 +0000 (11:12 +0200)]
POD typo in perlfunc

This fixes [RT #113788]

12 years agoFixed repeated words
Walt Mankowski [Fri, 22 Jun 2012 02:36:00 +0000 (22:36 -0400)]
Fixed repeated words

12 years agopp_sassign: explain the mix of left<=>right in the optree
Reini Urban [Thu, 21 Jun 2012 22:47:20 +0000 (17:47 -0500)]
pp_sassign: explain the mix of left<=>right in the optree

Fix the names in the function to make it readable. lhs and rhs reflect now
the parsed source not the position on the optree stack.

12 years agotoke.c: Add, clarify comments
Karl Williamson [Thu, 21 Jun 2012 15:40:20 +0000 (09:40 -0600)]
toke.c: Add, clarify comments

12 years agotoke.c: Make new error UTF-8 safe
Brian Fraser [Tue, 19 Jun 2012 20:05:18 +0000 (17:05 -0300)]
toke.c: Make new error UTF-8 safe

Commit 0da72d5e623b55d88fb3772b9c91e8f2d1ea7c40 introduced a new error
message, but did not account for UTF-8 source.

12 years agoperldelta for a3ff80c
Jesse Luehrs [Thu, 21 Jun 2012 14:16:09 +0000 (09:16 -0500)]
perldelta for a3ff80c

12 years agodocument some more Gv* macros
Jesse Luehrs [Thu, 21 Jun 2012 14:06:06 +0000 (09:06 -0500)]
document some more Gv* macros

12 years agoSync Module-CoreList in Maintainers.pl with CPAN
Chris 'BinGOs' Williams [Thu, 21 Jun 2012 07:52:43 +0000 (08:52 +0100)]
Sync Module-CoreList in Maintainers.pl with CPAN

12 years agoMerge fix for File::stat's -x and -X for root, and test improvements.
Nicholas Clark [Thu, 21 Jun 2012 07:01:19 +0000 (09:01 +0200)]
Merge fix for File::stat's -x and -X for root, and test improvements.

12 years agolib/File/stat.t shouldn't test -A $^X
Nicholas Clark [Tue, 19 Jun 2012 10:33:50 +0000 (12:33 +0200)]
lib/File/stat.t shouldn't test -A $^X

Testing this fails intermittently on darwin, which has POSIXly-correct atime
semantics. When tests run in parallel, the atime of $^X will update whenever
another perl process starts, which is a race condition with this test.

12 years agoFix File::stat's -x and -X for root for directories and executable files.
Nicholas Clark [Mon, 18 Jun 2012 11:09:02 +0000 (13:09 +0200)]
Fix File::stat's -x and -X for root for directories and executable files.

Previously File::stat's overloaded -x and -X operators did not give
the correct results for directories or executable files when running as
root. They had been treating executable permissions for root just like for
any other user, performing group membership tests etc. for files not owned
by root. They now follow the correct Unix behaviour - for a directory they
are always true, and for a file if any of the three execute permission bits
are set then they report that root can execute the file. Perl's builtin
-x and -X operators, added in Perl 2, have always been correct.

12 years agoTest that File::stat exports stat by default, overriding the builtin.
Nicholas Clark [Wed, 13 Jun 2012 16:01:48 +0000 (18:01 +0200)]
Test that File::stat exports stat by default, overriding the builtin.

Also, add a test that the array produced by File::stat::stat is identical to
the list produced by the builtin.

12 years agolib/File/stat.t should also test the -X operators on directories.
Nicholas Clark [Mon, 18 Jun 2012 10:53:29 +0000 (12:53 +0200)]
lib/File/stat.t should also test the -X operators on directories.

12 years agoIn lib/File/stat.t, permute the test file's mode for more thorough testing.
Nicholas Clark [Wed, 13 Jun 2012 15:50:14 +0000 (17:50 +0200)]
In lib/File/stat.t, permute the test file's mode for more thorough testing.

For each mode bit set, and all bits clear, test each filetest operator with
and without a File::stat object. Previously the only test was for the mode
the file was created with.

12 years agoRefactor lib/File/stat.t for robustness.
Nicholas Clark [Wed, 13 Jun 2012 15:34:11 +0000 (17:34 +0200)]
Refactor lib/File/stat.t for robustness.

Use CORE::stat instead of stat, to be clear which is the builtin, and which
is the routine that File::stat is prepared to export. As it is now
unambiguous which is which, remove comments that annotated each use.

Use isa_ok() in place of ok() to test the return value of File::stat::stat.
Use is_deeply() in place of is() and arrays interpolated into strings.

Move the data driven loop that tests most of the -X operators into a
function test_X_ops(), and use this to test both the tempfile
(non-executable) and $^X (executable).

Put the first sanity test of File::stat::stat inside a block so that its
lexicals don't leak.

12 years ago*Actually* test that bug 20011110.104 is fixed.
Nicholas Clark [Wed, 13 Jun 2012 14:45:40 +0000 (16:45 +0200)]
*Actually* test that bug 20011110.104 is fixed.

Bug ID 20011110.104 (RT #7896) was fixed by commit 2f173a711df6278f in Nov
2001, but the test that commit added never actually tested this.

The initial problem was that the new code, as written, used C<stat>,
intending that to call File::stat::stat(). However the refactoring of the
test script (all part of the same commit) from C<use File::stat;> to
C<use_ok( 'File::stat' );> (not in a BEGIN block) intentionally eliminated
the export of &File::stat::stat. This means that plain C<stat> is the
core builtin.

Fixing this as-is to File::stat::stat() won't help, as tests have
subsequently been added earlier in the script that trigger the autoloading
of Symbol by File::stat (commit 83716b1ec25b41f2 in Feb 2002). Moving the
tests earlier won't help now that the test uses File::Temp, as that uses
IO::Seekable which uses IO::Handle, which unconditionally loads Symbol.

The simplest solution seems to be to move the test to its own file.

12 years agoSimplify lib/File/stat.t by using a tempfile as the test victim.
Nicholas Clark [Sun, 3 Jun 2012 11:26:31 +0000 (13:26 +0200)]
Simplify lib/File/stat.t by using a tempfile as the test victim.

The previous code had got very gnarly trying to use a file from the
distribution for the test file, attempting to cope with
1) Other programs reading the file and hence the atime updating
2) The perl interpreter reading the file and hence the atime updating :-)
3) Building with -Dmksymlinks meaning that the file is a symlink

All these problems and work arounds simply *vanish* if we use a tempfile.
This will also enable us to change its mode in the future for better testing.

12 years agoRemove needless skip tests from lib/File/stat.t
Nicholas Clark [Wed, 13 Jun 2012 13:53:27 +0000 (15:53 +0200)]
Remove needless skip tests from lib/File/stat.t

The stat builtin is always implemented, so no need for an eval {} test to
check for this. The presence or absence of <sys/stat.h> at the C level isn't
going to affect the outcome of this test.

Both have been in the test script since it was added (as t/lib/filestat.t)
by commit f7a45afb043dafc5 in May 2001. I suspect that both were copied
from one of the Net::* test scripts which was being used as the template.

12 years agoIn lib/File/stat.t, test everything with and without use filetest "access".
Nicholas Clark [Sun, 3 Jun 2012 10:45:24 +0000 (12:45 +0200)]
In lib/File/stat.t, test everything with and without use filetest "access".

Previously the use filetest "access" tests were separate, and didn't test
all the "should not warn" cases. By moving them into the main data-driven
loop it's trivial to test everything.

Also test that all the correct errors are seen on VMS, and not seen anywhere
else.

12 years agoBring the joy of strict (and warnings) to lib/File/stat.t
Nicholas Clark [Sun, 3 Jun 2012 09:42:20 +0000 (11:42 +0200)]
Bring the joy of strict (and warnings) to lib/File/stat.t

12 years agoReplace repetitive code in lib/File/stat.t with a data driven loop.
Nicholas Clark [Sat, 2 Jun 2012 20:51:14 +0000 (22:51 +0200)]
Replace repetitive code in lib/File/stat.t with a data driven loop.

12 years agoConvert lib/File/stat.t from a complex plan calculation to done_testing().
Nicholas Clark [Sat, 2 Jun 2012 20:42:47 +0000 (22:42 +0200)]
Convert lib/File/stat.t from a complex plan calculation to done_testing().

Also replace use_ok (not in BEGIN) with a simple require. If the require
fails it's not worth trying to test anything else, Test::More's END
handing will automatically report a test failure, so the failure will be
recorded.

Add an editor block.

12 years agoIncrease $PerlIO::scalar::VERSION to 0.15
Father Chrysostomos [Thu, 21 Jun 2012 06:34:19 +0000 (23:34 -0700)]
Increase $PerlIO::scalar::VERSION to 0.15

12 years ago[perl #113764] Make &= duping work with PerlIO::scalar
Father Chrysostomos [Thu, 21 Jun 2012 06:33:28 +0000 (23:33 -0700)]
[perl #113764] Make &= duping work with PerlIO::scalar

In trying to fix bug #112780, I made in-memory handle duplication tem-
porarily hide the underlying scalar so it wouldn’t be set to the empty
string (commit 49b69fb3a).

I used PerlIO_sv_dup in j rather than PerlIOScalar_arg.  The for-
mer is usually what is called anyway.  There is only one branch of
PerlIOScalar_arg that doesn’t call PerlIO_sv_dup.  I don’t remember
what I was thinking back then, but I think I thought that branch
was there for paranoia.  But actually, it is used for "&=", so this
started failing:

open FILE, '>', \my $content or die "Couldn't open scalar filehandle";
open my $fh, ">&=FILE" or die "Couldn't open: $!";
print $fh "Foo-Bar\n";
close $fh;
close FILE;
print $content;

This commit fixes the bug in the smallest way possible, which means
switching from PerlIO_sv_dup to PerlIOScalar_arg in PerlIOScalar_arg,
which, in turn, entails fiddling with RVs.

12 years agoTeach dump.c about CVf_HASEVAL
Father Chrysostomos [Thu, 21 Jun 2012 00:59:01 +0000 (17:59 -0700)]
Teach dump.c about CVf_HASEVAL

12 years agoperl5171delta: caller looks beyond cur stack
Father Chrysostomos [Wed, 20 Jun 2012 23:05:40 +0000 (16:05 -0700)]
perl5171delta: caller looks beyond cur stack

12 years agoperl5171delta: typo
Father Chrysostomos [Wed, 20 Jun 2012 22:58:04 +0000 (15:58 -0700)]
perl5171delta: typo

12 years ago[perl #89544] Non-eval closures don’t need CvOUTSIDE
Father Chrysostomos [Wed, 20 Jun 2012 21:23:02 +0000 (14:23 -0700)]
[perl #89544] Non-eval closures don’t need CvOUTSIDE

A closure doesn’t need an outside pointer at run time, unless it has a
string eval in it.  CvOUTSIDE is only used at compilation time to look
up variables by name.

Since CvOUTSIDE is reference-counted, a closure can unnecessarily hang
on to variables it is not using (see the test in the diff).  So stop
setting it when cloning a closure, unless it is needed for eval.

12 years agoclosure.t: load test.pl at BEGIN time
Father Chrysostomos [Wed, 20 Jun 2012 21:25:19 +0000 (14:25 -0700)]
closure.t: load test.pl at BEGIN time

This allows parentheses to be omitted.

12 years agoRT#113730 - $@ should be cleared on "do" IO error.
Eric Brine [Mon, 18 Jun 2012 18:56:32 +0000 (14:56 -0400)]
RT#113730 - $@ should be cleared on "do" IO error.

12 years ago[perl #113712] Don’t create stubs after errors
Father Chrysostomos [Wed, 20 Jun 2012 20:45:43 +0000 (13:45 -0700)]
[perl #113712] Don’t create stubs after errors

perl5.002beta3 (c07a80fdfe) stopped bodies of subrou-
tines from being defined after compilation errors, as in
eval "@a =~ s///; sub { die }".

But, instead of making the sub declaration not happen at all, it ended
up leaving a stub.

For a full sub declaration (body and all) to create a stub just
seems wrong.

Likewise, it would be weird if a stub declaration
after a compilation error created a stub, because then
eval "@a =~ s///; sub foo; sub bar { }" would create foo but not bar.

Similarly, a compilation error will cause ‘sub foo {}’ no suppress
‘used once’ warnings; but a lexing error won’t.

This commit fixes all this, making things consistent:  If there is a
compilation, parsing or lexing error, any kind of sub declaration that
follows is ignored.

12 years ago[perl #113756] fix type of StructCopy in API documentation
Lukas Mai [Wed, 20 Jun 2012 04:59:58 +0000 (21:59 -0700)]
[perl #113756] fix type of StructCopy in API documentation

perlapi currently claims StructCopy takes two structs when it really
takes two pointers.

12 years agoLet while.t run from the top level
Father Chrysostomos [Wed, 20 Jun 2012 03:39:54 +0000 (20:39 -0700)]
Let while.t run from the top level

12 years agobump version to 5.17.2
Jesse Luehrs [Wed, 20 Jun 2012 20:03:54 +0000 (15:03 -0500)]
bump version to 5.17.2

12 years agodon't change version numbers in this file either
Jesse Luehrs [Wed, 20 Jun 2012 19:44:43 +0000 (14:44 -0500)]
don't change version numbers in this file either

12 years agocomp/parser.t: Add some tests
Karl Williamson [Sun, 17 Jun 2012 20:04:55 +0000 (14:04 -0600)]
comp/parser.t: Add some tests

12 years agodquote_static.c: Clarify comment
Karl Williamson [Sun, 17 Jun 2012 19:45:19 +0000 (13:45 -0600)]
dquote_static.c: Clarify comment

12 years agoreg_mesg.t: Add tests
Karl Williamson [Sun, 17 Jun 2012 19:44:01 +0000 (13:44 -0600)]
reg_mesg.t: Add tests

12 years agoRefactor \x processing to single function
Karl Williamson [Sun, 17 Jun 2012 19:03:36 +0000 (13:03 -0600)]
Refactor \x processing to single function

There are three places that process \x.  These can and did get out of
sync.  This moves all three to use a common static inline function so
that they all do the same thing on the same inputs, and their behaviors
will not drift apart again.

This commit should not change current behavior.  A previous commit
was designed to bring all three to identical behavior.

12 years agotoke.c: Don't convert \x{} from native
Karl Williamson [Sun, 17 Jun 2012 18:33:10 +0000 (12:33 -0600)]
toke.c: Don't convert \x{} from native

This was and is a no-op on ASCII platforms, but on EBCDIC, when you did
e.g., a "\x{7}", it would convert that to a 127.  But it did not do this
on qr/\x{7}/, giving inconsistent results.  Now, \x{7} yields 7, and
thus is consistent, and matches the documentation.

12 years agogrok_bslash_o: Don't convert from native
Karl Williamson [Sun, 17 Jun 2012 17:57:02 +0000 (11:57 -0600)]
grok_bslash_o: Don't convert from native

This was and is a no-op on ASCII platforms, but on EBCDIC, when you did
e.g., a \o{7}, it would convert that to a 127.  But it did not do this
on a \007, giving inconsistent results.  Now, \o{7} yields 7, and thus
is consistent, and matches the documentation.

12 years agoPATCH: [perl #113750] re.pm clobbers $_
Karl Williamson [Wed, 20 Jun 2012 19:13:02 +0000 (13:13 -0600)]
PATCH: [perl #113750] re.pm clobbers $_

Thanks to Jesse Luehrs and Father Chrysostomos for testing advice.

12 years agonew perldelta
Jesse Luehrs [Wed, 20 Jun 2012 18:29:28 +0000 (13:29 -0500)]
new perldelta

12 years agothe rmg should tell BLEAD-POINT to bump version at the end
Jesse Luehrs [Wed, 20 Jun 2012 18:23:25 +0000 (13:23 -0500)]
the rmg should tell BLEAD-POINT to bump version at the end

12 years agoadd release branch steps to rmg
Jesse Luehrs [Wed, 20 Jun 2012 18:18:14 +0000 (13:18 -0500)]
add release branch steps to rmg

12 years agofew rmg nits
Jesse Luehrs [Wed, 20 Jun 2012 18:05:39 +0000 (13:05 -0500)]
few rmg nits

12 years agoupdate epigraphs.pod
Jesse Luehrs [Wed, 20 Jun 2012 18:05:03 +0000 (13:05 -0500)]
update epigraphs.pod

12 years agoMerge branch 'release-5.17.1' into blead
Jesse Luehrs [Wed, 20 Jun 2012 17:54:09 +0000 (12:54 -0500)]
Merge branch 'release-5.17.1' into blead

12 years agoMore tests in t/op/arith.t for constant folding of expressions containing %
Nicholas Clark [Mon, 18 Jun 2012 21:19:58 +0000 (23:19 +0200)]
More tests in t/op/arith.t for constant folding of expressions containing %

Most tests for the bug resolved by commit e7311069df54baa6, including 64 bit
integer analogs of the 32 bit integer tests added by that commit.

12 years agoone more place to get rid of win32/config*.gc64nox
Jesse Luehrs [Wed, 20 Jun 2012 03:49:43 +0000 (22:49 -0500)]
one more place to get rid of win32/config*.gc64nox

12 years agoupdate perlhist for 5.17.1
Jesse Luehrs [Wed, 20 Jun 2012 03:14:48 +0000 (22:14 -0500)]
update perlhist for 5.17.1

12 years agoupdate Module::CoreList for 5.17.1
Jesse Luehrs [Wed, 20 Jun 2012 03:05:19 +0000 (22:05 -0500)]
update Module::CoreList for 5.17.1

12 years agoregen pod issues
Father Chrysostomos [Wed, 20 Jun 2012 02:58:56 +0000 (19:58 -0700)]
regen pod issues

12 years agoPOSIX: Sometimes `printf` beats interpolation
Aristotle Pagaltzis [Wed, 20 Jun 2012 01:22:16 +0000 (18:22 -0700)]
POSIX: Sometimes `printf` beats interpolation

12 years agoTidier example code for POSIX::localeconv()
Daniel Perrett [Thu, 14 Jun 2012 22:14:26 +0000 (23:14 +0100)]
Tidier example code for POSIX::localeconv()

12 years agoAdd Daniel Perrett to AUTHORS
Father Chrysostomos [Wed, 20 Jun 2012 01:18:41 +0000 (18:18 -0700)]
Add Daniel Perrett to AUTHORS

12 years agoformatting
Jesse Luehrs [Wed, 20 Jun 2012 02:46:22 +0000 (21:46 -0500)]
formatting

12 years agoadd acknowledgements
Jesse Luehrs [Wed, 20 Jun 2012 02:46:13 +0000 (21:46 -0500)]
add acknowledgements

12 years agobump version to 5.17.1
Jesse Luehrs [Wed, 20 Jun 2012 02:01:44 +0000 (21:01 -0500)]
bump version to 5.17.1

12 years agocomments in bump-perl-version
Jesse Luehrs [Tue, 19 Jun 2012 23:42:11 +0000 (18:42 -0500)]
comments in bump-perl-version

12 years agoperldelta for 5c0877fa4ac0 (VMS include files).
Craig A. Berry [Tue, 19 Jun 2012 23:56:44 +0000 (18:56 -0500)]
perldelta for 5c0877fa4ac0 (VMS include files).

12 years agoperlhacktips: long lines
Father Chrysostomos [Tue, 19 Jun 2012 19:48:56 +0000 (12:48 -0700)]
perlhacktips: long lines

12 years agomore proofreading
Jesse Luehrs [Tue, 19 Jun 2012 19:45:51 +0000 (14:45 -0500)]
more proofreading

12 years agoperlhacktips: add AddressSanitizer
Reini Urban [Mon, 11 Jun 2012 15:42:10 +0000 (10:42 -0500)]
perlhacktips: add AddressSanitizer

[amended to fix a typo, and add an exception to the podcheck database]

12 years agowe seem to have been using L<> rather than C<> here recently
Jesse Luehrs [Tue, 19 Jun 2012 17:54:11 +0000 (12:54 -0500)]
we seem to have been using L<> rather than C<> here recently

12 years agonone of this is important
Jesse Luehrs [Tue, 19 Jun 2012 17:31:45 +0000 (12:31 -0500)]
none of this is important

12 years agoadd module updates to perldelta
Jesse Luehrs [Tue, 19 Jun 2012 17:31:12 +0000 (12:31 -0500)]
add module updates to perldelta

12 years agochange this synopsis to something that actually works
Jesse Luehrs [Tue, 19 Jun 2012 15:36:39 +0000 (10:36 -0500)]
change this synopsis to something that actually works

12 years agonote existing smoke failures
Jesse Luehrs [Tue, 19 Jun 2012 15:03:58 +0000 (10:03 -0500)]
note existing smoke failures

12 years agothe known problems section is also for platform specific things
Jesse Luehrs [Tue, 19 Jun 2012 14:49:42 +0000 (09:49 -0500)]
the known problems section is also for platform specific things

12 years agoUse ll rather than I64 for win32/config*.gc64 format strings
Steve Hay [Tue, 19 Jun 2012 16:59:29 +0000 (17:59 +0100)]
Use ll rather than I64 for win32/config*.gc64 format strings

The corresponding types are long long rather than __int64 so this makes
more sense and matches proposed diffs from the land of Strawberry Perl
for supporting 32-bit builds with 64-bit ints on Windows (hopefully
coming up soon...).

12 years agoAdd missing dlltool default to win32/config.gc
Steve Hay [Tue, 19 Jun 2012 16:54:18 +0000 (17:54 +0100)]
Add missing dlltool default to win32/config.gc

ExtUtils::MakeMaker and ExtUtils::CBuilder both default to this anyway,
but it's good to be explicit, and reduces diffs with the .gc64 file.

12 years agoperldelta updates
Jesse Luehrs [Tue, 19 Jun 2012 14:25:46 +0000 (09:25 -0500)]
perldelta updates

12 years agoperldelta for 186a5ba82d58
Father Chrysostomos [Tue, 19 Jun 2012 13:29:50 +0000 (06:29 -0700)]
perldelta for 186a5ba82d58

This entry is only for the user-visible changes.

12 years agoremove bogus $remainder variable from perlfunc/split
Lukas Mai [Tue, 19 Jun 2012 13:03:19 +0000 (15:03 +0200)]
remove bogus $remainder variable from perlfunc/split

As reported by Anša Vernerová:

| Calling the third argument $remainer is simply wrong - the remainder is
| the fourth argument, which is not assigned to anything.

12 years agooverloading: make qr fallback to "" better
David Mitchell [Mon, 18 Jun 2012 21:40:25 +0000 (22:40 +0100)]
overloading: make qr fallback to "" better

With the re_eval jumbo fix, the behaviour of overloaded objects in
runtime patterns, such /^$overloaded/ has changed, such that the stringify
overload ("") no longer avoids the need for 'use re "eval"': for example,

    use overload "" => sub { qr/(??{1})/ }
    my $o = bless [];
    "1" =~ /^$o/;

works in 5.16.0, but dies with "Eval-group not allowed" in blead.

Change this back to the former behaviour, such that if qr and concat
ops aren't overloaded, then use "" overloading, and if the return from
that is a qr object, extract any code blocks from it.

This is achieved by:
* moving the concat/stringify code ahead of the regex block extraction
  code,
* making the overloaded stringify call be explicit (rather than
  being invoked implicitly by sv_catsv()),
* looping to re-apply overloading to any object returned by "".
* applying those last two steps in the case of a single arg too

This is a partial fix for
[perl #113682] Bleadperl v5.17.0-424-gd24ca0c breaks
    ABIGAIL/Regexp-Common-2011121001.tar.gz

12 years agoIn cflags.SH trim the case statement of file basenames.
Nicholas Clark [Wed, 28 Mar 2012 15:15:15 +0000 (17:15 +0200)]
In cflags.SH trim the case statement of file basenames.

Add examples showing how to use cflags.SH to tweak the compiler flags used
for individual object files.

Previously cflags.SH contained a somewhat stale pre-canned list of file
basenames including removed files such as usersub (deleted before 5.000
shipped), and a partial list of 5.000 XS extensions. Whilst it's possible
to generate the correct list in cflags by parsing MANIFEST (and adding a few
fixups), it's still not actually *useful*, as cflags gets overwritten as
soon as config.sh changes. Hence the most end-user useful solution with
minimal maintenance is to eliminate the list entirely, and document how the
user should add to it as necessary.

12 years agoIn pp_iter, handle end of range at IV_MAX without undefined behaviour.
Nicholas Clark [Mon, 16 Apr 2012 05:51:49 +0000 (07:51 +0200)]
In pp_iter, handle end of range at IV_MAX without undefined behaviour.

The previous code assumed that incrementing a signed integer value wraps.
We're lucky that it has (so far), as it's undefined behaviour in C.
So refactor to code which doesn't assume anything.

12 years agoIn t/op/arith.t, tryeq_sloppy() wasn't correctly handling negative values.
Nicholas Clark [Mon, 18 Jun 2012 19:49:39 +0000 (21:49 +0200)]
In t/op/arith.t, tryeq_sloppy() wasn't correctly handling negative values.

The code was treating any negative value as "ok", rather than only those
within 1e-9 of the expected value. This bug has been present since
tryeq_sloppy() was added by commit 800e6488b45c59f1 in Oct 2001.

12 years agothis is already mentioned at the end (and that is more correct)
Jesse Luehrs [Tue, 19 Jun 2012 07:15:38 +0000 (02:15 -0500)]
this is already mentioned at the end (and that is more correct)

12 years agoremove some boilerplate
Jesse Luehrs [Tue, 19 Jun 2012 07:10:34 +0000 (02:10 -0500)]
remove some boilerplate

12 years agotodo
Jesse Luehrs [Tue, 19 Jun 2012 07:05:20 +0000 (02:05 -0500)]
todo

12 years agoconsistency
Jesse Luehrs [Tue, 19 Jun 2012 06:27:21 +0000 (01:27 -0500)]
consistency

12 years agocombine sections
Jesse Luehrs [Tue, 19 Jun 2012 06:06:00 +0000 (01:06 -0500)]
combine sections

12 years agobump Filter::Util::Call to CPAN version 1.45
Jesse Luehrs [Tue, 19 Jun 2012 05:32:26 +0000 (00:32 -0500)]
bump Filter::Util::Call to CPAN version 1.45

12 years agofix inadvertent removal during editing
Jesse Luehrs [Tue, 19 Jun 2012 05:20:28 +0000 (00:20 -0500)]
fix inadvertent removal during editing

12 years agoperldelta copyediting
Jesse Luehrs [Tue, 19 Jun 2012 05:07:03 +0000 (00:07 -0500)]
perldelta copyediting

12 years agoRevert perlfilter part of 318b791f053
Father Chrysostomos [Tue, 19 Jun 2012 03:43:03 +0000 (20:43 -0700)]
Revert perlfilter part of 318b791f053

The CPAN release has an old version.

12 years agowhoops, should be using $new_version here
Jesse Luehrs [Mon, 18 Jun 2012 22:44:04 +0000 (17:44 -0500)]
whoops, should be using $new_version here

12 years agouse the right default for MAP
Jesse Luehrs [Mon, 18 Jun 2012 22:30:07 +0000 (17:30 -0500)]
use the right default for MAP

12 years agomake sure podlators is skipped, it won't be handled correctly
Jesse Luehrs [Mon, 18 Jun 2012 22:25:18 +0000 (17:25 -0500)]
make sure podlators is skipped, it won't be handled correctly

12 years agobump Filter::Util::Call to CPAN version 1.44
Jesse Luehrs [Mon, 18 Jun 2012 22:03:26 +0000 (17:03 -0500)]
bump Filter::Util::Call to CPAN version 1.44

12 years agoteach sync-with-cpan how to update Maintainers.pl
Jesse Luehrs [Mon, 18 Jun 2012 21:39:25 +0000 (16:39 -0500)]
teach sync-with-cpan how to update Maintainers.pl

12 years agoupdate sync-with-cpan to handle dists with MAPped files
Jesse Luehrs [Mon, 18 Jun 2012 21:20:43 +0000 (16:20 -0500)]
update sync-with-cpan to handle dists with MAPped files

12 years agoensure 'make' updates all necessary files
Jesse Luehrs [Mon, 18 Jun 2012 21:17:33 +0000 (16:17 -0500)]
ensure 'make' updates all necessary files

moving files around doesn't change the mtime, and tarballs store the
mtime to use when untarring, so it's possible to end up with an updated
file with an mtime before the corresponding file in lib/

12 years agoget the dir name from the tarball filename
Jesse Luehrs [Mon, 18 Jun 2012 20:57:41 +0000 (15:57 -0500)]
get the dir name from the tarball filename

Filter::Util::Call comes from Filter-x.yz.tar.gz for instance, which
untars to Filter-x.yz, not Filter-Util-Call-x.yz as it was previously
assuming

12 years agoallow overriding version in this branch too
Jesse Luehrs [Mon, 18 Jun 2012 20:57:18 +0000 (15:57 -0500)]
allow overriding version in this branch too