perl.git
10 years agotest script for deprecate.pm
Robin Barker [Wed, 25 Feb 2009 08:41:52 +0000 (09:41 +0100)] 
test script for deprecate.pm

First pass at tests for deprecate.pm.

Had to modify the module to provide an interface for testing - need to
provide fake install directories, but deprecated reads from
%Config::Config, which is read only.

10 years agoadd-package.pl fixup
Jos I. Boumans [Wed, 25 Feb 2009 08:31:02 +0000 (09:31 +0100)] 
add-package.pl fixup

Sometimes, using find, add-package.pl will construct filenames with 2
consecutive slashes, ie:

 Package-Name/bin//script.pl

As this literal string isn't in the MANIFEST yet, it'll be added
erroneously. The below patch fixes this.

10 years agoremove explicit caller depth in deprecate.pm by searching caller stack for use/requir...
Robin Barker [Tue, 24 Feb 2009 09:57:23 +0000 (09:57 +0000)] 
remove explicit caller depth in deprecate.pm by searching caller stack for use/require Module.pm

10 years agoFix line number test for scalar attribute handlers
Rafael Garcia-Suarez [Tue, 24 Feb 2009 09:21:09 +0000 (10:21 +0100)] 
Fix line number test for scalar attribute handlers

Un-TODO the tests for bleadperl and above

10 years agoFix to installing non-xs ext's in priv lib
Jerry D. Hedden [Mon, 23 Feb 2009 17:37:16 +0000 (12:37 -0500)] 
Fix to installing non-xs ext's in priv lib

10 years agoUpgrade to threads::shared 1.28
Jerry D. Hedden [Mon, 23 Feb 2009 19:43:46 +0000 (14:43 -0500)] 
Upgrade to threads::shared 1.28

10 years agoUpgrade to threads 1.72
Jerry D. Hedden [Mon, 23 Feb 2009 20:11:01 +0000 (15:11 -0500)] 
Upgrade to threads 1.72

10 years agoIn S_parse_body(), sv hasn't been needed since -P bit the dust.
Nicholas Clark [Mon, 23 Feb 2009 23:37:35 +0000 (00:37 +0100)] 
In S_parse_body(), sv hasn't been needed since -P bit the dust.
(And probably should have been removed with change 32958,
2f3529075cdaceeaf619b8bd308885878ec9828a)

10 years agoMerge branch 'blead' of ssh://stevep@perl5.git.perl.org/gitroot/perl into blead
Steve Peters [Mon, 23 Feb 2009 19:57:38 +0000 (13:57 -0600)] 
Merge branch 'blead' of ssh://stevep@perl5.git.perl.org/gitroot/perl into blead

10 years agofileno() was failing when passed a NULL. I'm guessing that we don't really need...
Steve Peters [Mon, 23 Feb 2009 19:25:33 +0000 (13:25 -0600)] 
fileno() was failing when passed a NULL.  I'm guessing that we don't really need to increase the refcount on a NULL fd.

10 years agoFix unused variable warning
Jerry D. Hedden [Mon, 23 Feb 2009 16:04:07 +0000 (11:04 -0500)] 
Fix unused variable warning

Attached patch fixes the following build warnings:

perlmini.c: In function `S_incpush':
perlmini.c:4358: warning: unused variable `addoldvers'

perl.c: In function `S_incpush':
perl.c:4358: warning: unused variable `addoldvers'

From 87b6dbeb18691177a2b2e8dc971da242ac831c03 Mon Sep 17 00:00:00 2001
From: Jerry D. Hedden <jdhedden@cpan.org>
Date: Mon, 23 Feb 2009 10:58:14 -0500
Subject: [PATCH] Fix unused variable warning

10 years agoRe-apply cd5cc49dbc0e5ee748252c2da8b435855908e6d2 (Module::Build on VMS, #42724)
Nicholas Clark [Mon, 23 Feb 2009 14:43:09 +0000 (14:43 +0000)] 
Re-apply cd5cc49dbc0e5ee748252c2da8b435855908e6d2 (Module::Build on VMS, #42724)

10 years agoUpdate to Module::Build 0.31_04 (with a tweak to MBTest.pm)
Nicholas Clark [Mon, 23 Feb 2009 14:15:49 +0000 (14:15 +0000)] 
Update to Module::Build 0.31_04 (with a tweak to MBTest.pm)

10 years agoTemporarily reverse out change cd5cc49dbc0e5ee748252c2da8b435855908e6d2.
Nicholas Clark [Mon, 23 Feb 2009 13:23:30 +0000 (13:23 +0000)] 
Temporarily reverse out change cd5cc49dbc0e5ee748252c2da8b435855908e6d2.

10 years agoModule::Build Changes from 0.31012, which hadn't been updated.
Nicholas Clark [Mon, 23 Feb 2009 12:29:31 +0000 (12:29 +0000)] 
Module::Build Changes from 0.31012, which hadn't been updated.

10 years agoAdd deprecate.pm. Deprecate shipping Switch.pm in the core distribution.
Nicholas Clark [Mon, 23 Feb 2009 10:27:08 +0000 (11:27 +0100)] 
Add deprecate.pm. Deprecate shipping Switch.pm in the core distribution.

10 years agovms.c - Remove .DIR; in UNIX mode.
John Malmberg [Sun, 22 Feb 2009 18:23:29 +0000 (12:23 -0600)] 
vms.c - Remove .DIR; in UNIX mode.

When doing a readdir() or glob() with DECC$FILENAME_UNIX_REPORT active,
the ".DIR" suffix needs to be removed for directories.

10 years agoVMS-specific nit in S_init_perllib after 2cace6acdfad87b2d298bff18b91b339c18fd1e3.
Craig A. Berry [Mon, 23 Feb 2009 03:14:17 +0000 (21:14 -0600)] 
VMS-specific nit in S_init_perllib after 2cace6acdfad87b2d298bff18b91b339c18fd1e3.

10 years agotime_t is unsigned 32-bit on VMS; pick sGMTIME_max and sLOCALTIME_max accordingly.
Craig A. Berry [Mon, 23 Feb 2009 00:28:13 +0000 (18:28 -0600)] 
time_t is unsigned 32-bit on VMS; pick sGMTIME_max and sLOCALTIME_max accordingly.

10 years agoFor S_incpush(), dir is never NULL, and len is always > 0.
Nicholas Clark [Sun, 22 Feb 2009 22:17:47 +0000 (23:17 +0100)] 
For S_incpush(), dir is never NULL, and len is always > 0.

10 years agoOptimise S_incpush() by avoiding repeatedly copying libdir to subdir.
Nicholas Clark [Sun, 22 Feb 2009 21:27:18 +0000 (22:27 +0100)] 
Optimise S_incpush() by avoiding repeatedly copying libdir to subdir.
Specifically, copy it once with newSVsv(), then pass libdir to
S_incpush_if_exists(), and if that creates a new SV, use newSVsv() there to
re-do the copy. Otherwise reset the length of the passed-in SV (which is
subdir), back to the length of libdir, effectively truncating it back to be
equal to libdir. This avoids repeated copying of the same bytes over the same
memory that already holds those bytes.

10 years agoIn S_incpush, move the declaration of subdir inside the only block that uses it.
Nicholas Clark [Sun, 22 Feb 2009 21:11:19 +0000 (22:11 +0100)] 
In S_incpush, move the declaration of subdir inside the only block that uses it.

10 years agoTidy up incpush. Re-order the macros, and re-indent some code.
Nicholas Clark [Sun, 22 Feb 2009 21:00:03 +0000 (22:00 +0100)] 
Tidy up incpush. Re-order the macros, and re-indent some code.

10 years agoMove unversioned directories in PERL_OTHERLIBDIRS later in @INC.
Nicholas Clark [Sun, 22 Feb 2009 20:45:04 +0000 (21:45 +0100)] 
Move unversioned directories in PERL_OTHERLIBDIRS later in @INC.
Split INCPUSH_ADD_SUB_DIRS into INCPUSH_ADD_VERSIONED_SUB_DIRS and
INCPUSH_ADD_ARCHONLY_SUB_DIRS, and tweak the flags used for the two halves of
PERL_OTHERLIBDIRS so that .../$archname and .../ come after .../$old_version

10 years ago7fc731078209e8c26ed8bba477edfd90724c7146 missed one (addsubdirs || addoldvers).
Nicholas Clark [Sun, 22 Feb 2009 20:29:32 +0000 (21:29 +0100)] 
7fc731078209e8c26ed8bba477edfd90724c7146 missed one (addsubdirs || addoldvers).

10 years agoIn S_init_perllib(), push the bare VENDORLIB_STEM onto @INC after its subdirs.
Nicholas Clark [Sun, 22 Feb 2009 19:27:48 +0000 (20:27 +0100)] 
In S_init_perllib(), push the bare VENDORLIB_STEM onto @INC after its subdirs.

10 years agoIn S_init_perllib(), push the bare SITELIB_STEM onto @INC after its subdirs.
Nicholas Clark [Sun, 22 Feb 2009 19:27:08 +0000 (20:27 +0100)] 
In S_init_perllib(), push the bare SITELIB_STEM onto @INC after its subdirs.

10 years agoIn S_incpush(), move push @INC, ".../$archname" if -d ".../$archname"; later.
Nicholas Clark [Sun, 22 Feb 2009 19:24:49 +0000 (20:24 +0100)] 
In S_incpush(), move push @INC, ".../$archname" if -d ".../$archname"; later.

This effects this change:

--- Start       2009-02-21 14:04:40.000000000 +0100
+++ /dev/fd/63  2009-02-22 16:41:18.000000000 +0100
@@ -1,14 +1,14 @@
 /Users/nick/Sandpit/511v/hashbangI/5.11.0/darwin-thread-multi-64int-2level
 /Users/nick/Sandpit/511v/hashbangI/5.11.0
-/Users/nick/Sandpit/511v/hashbangI/darwin-thread-multi-64int-2level
 /Users/nick/Sandpit/511v/hashbangI/5.11.-2/darwin-thread-multi-64int-2level
 /Users/nick/Sandpit/511v/hashbangI/5.11.-2
+/Users/nick/Sandpit/511v/hashbangI/darwin-thread-multi-64int-2level
 /Users/nick/Sandpit/511v/hashbangI
 /Users/nick/Sandpit/511v/cliI/5.11.0/darwin-thread-multi-64int-2level
 /Users/nick/Sandpit/511v/cliI/5.11.0
-/Users/nick/Sandpit/511v/cliI/darwin-thread-multi-64int-2level
 /Users/nick/Sandpit/511v/cliI/5.11.-1/darwin-thread-multi-64int-2level
 /Users/nick/Sandpit/511v/cliI/5.11.-1
+/Users/nick/Sandpit/511v/cliI/darwin-thread-multi-64int-2level
 /Users/nick/Sandpit/511v/cliI
 /Users/nick/Sandpit/511v/perl5lib0/5.11.0/darwin-thread-multi-64int-2level
 /Users/nick/Sandpit/511v/perl5lib0/5.11.0

10 years agoIn S_init_perllib(), initialise perl5lib to NULL, to keep trace flow happy.
Nicholas Clark [Sun, 22 Feb 2009 17:37:26 +0000 (17:37 +0000)] 
In S_init_perllib(), initialise perl5lib to NULL, to keep trace flow happy.

10 years agoIn S_incpush(), replace (addsubdirs || addoldvers) with a constant variable.
Nicholas Clark [Sun, 22 Feb 2009 17:24:04 +0000 (17:24 +0000)] 
In S_incpush(), replace (addsubdirs || addoldvers) with a constant variable.

10 years agoIn S_init_perllib(), s can be const char*
Nicholas Clark [Sun, 22 Feb 2009 13:05:38 +0000 (14:05 +0100)] 
In S_init_perllib(), s can be const char*

10 years agoIn S_init_perllib(), only call PerlEnv_getenv("PERL5LIB") once.
Nicholas Clark [Sun, 22 Feb 2009 12:55:49 +0000 (13:55 +0100)] 
In S_init_perllib(), only call PerlEnv_getenv("PERL5LIB") once.

10 years agoUnwind the implicit loop in S_init_perllib(), by writing the code out longhand.
Nicholas Clark [Sun, 22 Feb 2009 12:34:29 +0000 (13:34 +0100)] 
Unwind the implicit loop in S_init_perllib(), by writing the code out longhand.
Call it only once, remove the old_vers parameter, and all the related
conditional code.

10 years agoChange the value passed into S_init_perllib() to a boolean flag.
Nicholas Clark [Sat, 21 Feb 2009 17:23:46 +0000 (18:23 +0100)] 
Change the value passed into S_init_perllib() to a boolean flag.

10 years agoNetWare has PRIVLIB_EXP as something other than a string constant. Cope with it.
Nicholas Clark [Sat, 21 Feb 2009 07:06:06 +0000 (08:06 +0100)] 
NetWare has PRIVLIB_EXP as something other than a string constant. Cope with it.

10 years agoUse "system" gmtime in time64 on VMS so C<vmsish 'time'> pragma works.
Craig A. Berry [Sat, 21 Feb 2009 20:46:27 +0000 (14:46 -0600)] 
Use "system" gmtime in time64 on VMS so C<vmsish 'time'> pragma works.

It's not really the system gmtime; it's the homegrown one in vms/vms.c
that checks hints and does shifting between UTC and local time when
requested.

10 years agoIn S_init_perllib(), correct errors in the MACOS_TRADITIONAL conditional code.
Nicholas Clark [Sat, 21 Feb 2009 18:04:08 +0000 (18:04 +0000)] 
In S_init_perllib(), correct errors in the MACOS_TRADITIONAL conditional code.
(Errors that originated in a26c0e281cb6068a8d148933281d8186f1eb4206 and
50d61629dc7fe34f077b9f66c50287d839e06378)

10 years agoRe-apply changes 4adc95e616bac7ee and 200cbd6aa595a074 (RT #61492)
Nicholas Clark [Sat, 21 Feb 2009 08:41:14 +0000 (08:41 +0000)] 
Re-apply changes 4adc95e616bac7ee and 200cbd6aa595a074 (RT #61492)
(ExtUtils::MM_Win32 should not generate "mt" command when CRT is statically
linked)(We'd failed to send this one upstream. Bad us.)

10 years agoUpgrade to ExtUtils::MakeMaker 6.49_01
Nicholas Clark [Sat, 21 Feb 2009 08:11:13 +0000 (08:11 +0000)] 
Upgrade to ExtUtils::MakeMaker 6.49_01

10 years agoSkip time64 when there is no 64-bit integer type available.
Craig A. Berry [Sat, 21 Feb 2009 04:58:55 +0000 (22:58 -0600)] 
Skip time64 when there is no 64-bit integer type available.

The y2038 code currently requires that a 64-bit integer type be available,
so the build falls down hard if we try to use it where there isn't one.  A
better fix might be to try NV for time_t and a 32-bit integer for year.

N.B.  We test for the definedness of Quad_t rather than HAS_QUAD since the
latter is explicitly undef'd in the case where 64-bit types are available
but are not being used for Perl's IV and UV.

10 years agoAvoid VMS long filename support on older systems that don't have it.
Craig A. Berry [Fri, 20 Feb 2009 23:43:08 +0000 (17:43 -0600)] 
Avoid VMS long filename support on older systems that don't have it.

10 years agoMove redefinition of lstat above its first use in vms/vms.c.
Craig A. Berry [Fri, 20 Feb 2009 23:37:47 +0000 (17:37 -0600)] 
Move redefinition of lstat above its first use in vms/vms.c.

10 years agoMore smartmatch tests
Rafael Garcia-Suarez [Fri, 20 Feb 2009 23:06:22 +0000 (00:06 +0100)] 
More smartmatch tests

This includes a TODO for overloaded objects.
Tests will need to be augmented and better organized.

10 years agoAdd a parameter to win32_get_{priv,site,vendor}lib(), to return the length,
Nicholas Clark [Fri, 20 Feb 2009 20:09:16 +0000 (20:09 +0000)] 
Add a parameter to win32_get_{priv,site,vendor}lib(), to return the length,
as we already know it, and use it in S_init_perllib() to save a strlen() in
S_incpush_use_sep().

10 years agoText::Wrap maintained via the CPAN release
Steffen Mueller [Fri, 20 Feb 2009 18:22:57 +0000 (19:22 +0100)] 
Text::Wrap maintained via the CPAN release

10 years agoCheck for thread failure in prime number example
Jerry D. Hedden [Fri, 20 Feb 2009 14:45:41 +0000 (09:45 -0500)] 
Check for thread failure in prime number example

10 years agoSilence a casting warning with memchr()
Rafael Garcia-Suarez [Fri, 20 Feb 2009 13:45:36 +0000 (14:45 +0100)] 
Silence a casting warning with memchr()

10 years agoWonky example in perlthrtut
Alex Davies [Fri, 20 Feb 2009 08:39:29 +0000 (09:39 +0100)] 
Wonky example in perlthrtut

Fix at least the syntax of the example.
See : Message-ID: <F00A81D78228413FBED223C3919BE75B@Amelie>

10 years agoMerge branch 'blead' of ssh://perl5.git.perl.org/gitroot/perl into blead
Leon Brocard [Fri, 20 Feb 2009 08:31:40 +0000 (16:31 +0800)] 
Merge branch 'blead' of ssh://perl5.git.perl.org/gitroot/perl into blead

10 years agoRemove the -x from the cherry pick and show how to merge the whole branch (suggested...
Leon Brocard [Fri, 20 Feb 2009 08:30:59 +0000 (16:30 +0800)] 
Remove the -x from the cherry pick and show how to merge the whole branch (suggested by rgs)

10 years agoReorder and complete tests for smart matching with objects
Rafael Garcia-Suarez [Tue, 17 Feb 2009 12:56:43 +0000 (13:56 +0100)] 
Reorder and complete tests for smart matching with objects

10 years agoFix {%hash} ~~ %hash test
Rafael Garcia-Suarez [Tue, 17 Feb 2009 07:22:44 +0000 (08:22 +0100)] 
Fix {%hash} ~~ %hash test

This was not parsed as a smart match, because {%hash} was taken
as a block, not a an anonymous hash.

Also, avoid to construct an anonymous hash with an odd number of
elements.

10 years agoBetter diagnostics for the ~~ test
Rafael Garcia-Suarez [Tue, 17 Feb 2009 06:50:16 +0000 (07:50 +0100)] 
Better diagnostics for the ~~ test

Read from DATA line per line, so warnings are reported from the correct
line. Make test names and error reports more readable.

10 years agoRemove an extra space
Leon Brocard [Fri, 20 Feb 2009 08:25:18 +0000 (16:25 +0800)] 
Remove an extra space

10 years agoAdd a section on merging from a branch via GitHub
Leon Brocard [Fri, 20 Feb 2009 08:22:23 +0000 (16:22 +0800)] 
Add a section on merging from a branch via GitHub

10 years agoFixed missing word in Text::Wrap POD
Dan Dascalescu [Fri, 20 Feb 2009 06:48:09 +0000 (06:48 +0000)] 
Fixed missing word in Text::Wrap POD
(cherry picked from commit 3adac458cb1c1d41af47fc66e67b49c8dec2323f)

10 years ago[PATCH] DB_File 1.819
Paul Marquess [Thu, 19 Feb 2009 09:15:01 +0000 (09:15 +0000)] 
[PATCH] DB_File 1.819

Small change to t/db-recno.t [RT# 43288]

Message-ID: <00ad01c99214$89f5fa50$9de1eef0$@Marquess@ntlworld.com>

10 years agoRemove the stub nw_get_sitelib(), and undefine SITELIB_EXP for NetWare.
Nicholas Clark [Wed, 18 Feb 2009 15:28:12 +0000 (15:28 +0000)] 
Remove the stub nw_get_sitelib(), and undefine SITELIB_EXP for NetWare.
(nw_get_sitelib() was hard coded to return NULL, which is a slower equivalent
to simply not defining SITELIB_EXP in the first place. I suspect a cargo cult
of win32/ without actually taking the time to understand it.)

10 years agoPass the length of the string to S_incpush_use_sep(), where known.
Nicholas Clark [Tue, 17 Feb 2009 23:24:32 +0000 (23:24 +0000)] 
Pass the length of the string to S_incpush_use_sep(), where known.

10 years agoTests for S_incpush_use_sep() splitting on : (or platform equivalent)
Nicholas Clark [Tue, 17 Feb 2009 22:57:56 +0000 (22:57 +0000)] 
Tests for S_incpush_use_sep() splitting on : (or platform equivalent)

10 years agoIn runenv.t, break apart running perl and testing the output into two functions.
Nicholas Clark [Tue, 17 Feb 2009 20:18:39 +0000 (20:18 +0000)] 
In runenv.t, break apart running perl and testing the output into two functions.

10 years agoGet $ENV{PERL5LIB} into a known consistent state under TEST - delete it!
Nicholas Clark [Tue, 17 Feb 2009 17:11:25 +0000 (17:11 +0000)] 
Get $ENV{PERL5LIB} into a known consistent state under TEST - delete it!
(It doesn't strike me as good that t/TEST and t/harness are inconsistent -
the former runs every test with -MTestInit; the latter sets $ENV{PERL5LIB} to
'../lib'; and on the gripping hand, we have boilerplate in every test to set
@INC. No choice seems ideal.

10 years agoIn S_incpush(), avoid "possible loss of data" warnings from the C compiler.
Nicholas Clark [Tue, 17 Feb 2009 08:48:45 +0000 (08:48 +0000)] 
In S_incpush(), avoid "possible loss of data" warnings from the C compiler.

10 years agoMove PERL_VERSION_STRING from patchlevel.h to perl.h
Nicholas Clark [Mon, 16 Feb 2009 23:55:58 +0000 (23:55 +0000)] 
Move PERL_VERSION_STRING from patchlevel.h to perl.h
(and revert a89d24b9fe54d44395806c16ac1c19f3c678cbbb)
It's getting too complex to work around some versions of awk which don't want
to implement the regular expressions that they are documented to implement.

10 years agoIgnore #defines in in patchlevel.h that end the line with backslash.
Nicholas Clark [Mon, 16 Feb 2009 22:47:54 +0000 (22:47 +0000)] 
Ignore #defines in in patchlevel.h that end the line with backslash.
(Otherwise config.sh ends up with part of PERL_VERSION_STRING, and the build
chokes to a stop.)

10 years agoAs WIN32 is already using different flags to incpush_use_sep for SITELIB_EXP,
Nicholas Clark [Mon, 16 Feb 2009 22:27:58 +0000 (22:27 +0000)] 
As WIN32 is already using different flags to incpush_use_sep for SITELIB_EXP,
VENDORLIB_EXP and PRIVLIB_EXP, requiring conditional compilation, it doesn't
feel like extra complexity to make explict calls in S_init_perllib() to the 3
win32_*() functions they expand to, which allows a NULL pointer check.

10 years agoBy spliting PERL_ARCH_FMT into PERL_ARCH_FMT_PREFIX and SUFFIX, we can replace
Nicholas Clark [Mon, 16 Feb 2009 22:21:15 +0000 (22:21 +0000)] 
By spliting PERL_ARCH_FMT into PERL_ARCH_FMT_PREFIX and SUFFIX, we can replace
two more Perl_sv_setpvf()s with sv_setsv()/sv_catpvs() pairs.

10 years agoAs PERL_ARCH_FMT_PATH is a compile time constant, can simplify one sv_setpvf()
Nicholas Clark [Mon, 16 Feb 2009 22:03:35 +0000 (22:03 +0000)] 
As PERL_ARCH_FMT_PATH is a compile time constant, can simplify one sv_setpvf()
to sv_setsv() and sv_catpvs().

10 years agoPERL_FS_VER_FMT is only used with the current perl version, which is known at
Nicholas Clark [Mon, 16 Feb 2009 22:00:14 +0000 (22:00 +0000)] 
PERL_FS_VER_FMT is only used with the current perl version, which is known at
compile time, so replace it with PERL_FS_VERSION, a compile time constant.

10 years agoAbolish PERL_AV_SUFFIX_FMT, which was rendered obsolescent 8 years ago with
Nicholas Clark [Mon, 16 Feb 2009 21:42:54 +0000 (21:42 +0000)] 
Abolish PERL_AV_SUFFIX_FMT, which was rendered obsolescent 8 years ago with
084592ab0b76f3cbd4d089afb08ccea7ba1c9dd8.

10 years agoReplace *printf "%d.%d.%d", PERL_REVISION, PERL_VERSION, PERL_SUBVERSION
Nicholas Clark [Mon, 16 Feb 2009 21:16:21 +0000 (21:16 +0000)] 
Replace *printf "%d.%d.%d", PERL_REVISION, PERL_VERSION, PERL_SUBVERSION
with PERL_VERSION_STRING, which can be determined at compile time, as a
constant string.

10 years agoUpdate copyright years. 2008 sneaks in because of 46807d8e809cc127621bf85d9e9
Nicholas Clark [Mon, 16 Feb 2009 21:15:17 +0000 (21:15 +0000)] 
Update copyright years. 2008 sneaks in because of 46807d8e809cc127621bf85d9e9

10 years agoadd missing perforce-era entry to Changes files
David Mitchell [Mon, 16 Feb 2009 16:37:00 +0000 (16:37 +0000)] 
add missing perforce-era entry to Changes files

10 years agoUse tempfile() in tests
Bram [Mon, 16 Feb 2009 15:07:19 +0000 (16:07 +0100)] 
Use tempfile() in tests

10 years agoDon't add PRIVLIB_EXP to @INC twice.
Nicholas Clark [Mon, 16 Feb 2009 11:14:28 +0000 (11:14 +0000)] 
Don't add PRIVLIB_EXP to @INC twice.

10 years ago[perl #63234] [DOC PATCH] fix some missing parts of IO::Handle pod
Zsban Ambrus [Mon, 16 Feb 2009 11:18:19 +0000 (12:18 +0100)] 
[perl #63234] [DOC PATCH] fix some missing parts of IO::Handle pod

This documents the previously undocumented fcntl and ioctl methods, and
adds a see also to the IO::File module where the documentation refers
to one of its methods.

10 years agoUpgrade to Encode 2.31
Dan Kogai [Mon, 16 Feb 2009 10:45:53 +0000 (11:45 +0100)] 
Upgrade to Encode 2.31

10 years agoExtra regex tests
Bram [Mon, 16 Feb 2009 10:22:40 +0000 (11:22 +0100)] 
Extra regex tests

Message-ID: <20090215185207.gsnhhqdegckws0co@horde.wizbit.be>
Message-ID: <20090215210634.u02f15b284ogc4s4@horde.wizbit.be>

10 years agoYves states that patches to ExtUtils::Install should go to blead first
Rafael Garcia-Suarez [Mon, 16 Feb 2009 10:09:12 +0000 (11:09 +0100)] 
Yves states that patches to ExtUtils::Install should go to blead first

10 years agoEnsure that the pointer to S_incpush_use_sep() is never NULL.
Nicholas Clark [Sun, 15 Feb 2009 21:53:50 +0000 (21:53 +0000)] 
Ensure that the pointer to S_incpush_use_sep() is never NULL.

10 years agoIn @INC, move ARCHLIB and PRIVLIB after the current version's site_perl and
Nicholas Clark [Sun, 15 Feb 2009 16:51:10 +0000 (16:51 +0000)] 
In @INC, move ARCHLIB and PRIVLIB after the current version's site_perl and
vendor_perl.

10 years agoLoop in S_init_perllib(), only calling S_incpush*() with INCPUSH_ADD_OLD_VERS
Nicholas Clark [Sun, 15 Feb 2009 16:18:34 +0000 (16:18 +0000)] 
Loop in S_init_perllib(), only calling S_incpush*() with INCPUSH_ADD_OLD_VERS
the second time (and only for those entries at had it). Implement the loop by
calling init_perllib() twice, to avoid a rats nest of re-indenting. Add a new
flag to S_incpush() INCPUSH_NOT_BASEDIR, to supress pushing the base directory
a second time on the secnod call.

With this change, re-ordering of @INC from version-orientated to prefix-
orientated is partly complete. ARCHLIB and PRIVLIB remain at their old place in
the @INC order.

10 years agoRefactor the separator splitting loop of S_incpush() into a S_incpush_use_sep().
Nicholas Clark [Sun, 15 Feb 2009 14:35:36 +0000 (14:35 +0000)] 
Refactor the separator splitting loop of S_incpush() into a S_incpush_use_sep().
Add a parameter to S_incpush() to optionally pass in the length. As S_incpush()
treats the directory parameter as const char, remove some malloc()s elsewhere
that were copying data on the assumption that it was not const safe.

10 years agoIn S_incpush(), rename the parameter from dir to p, rather than copying it.
Nicholas Clark [Sun, 15 Feb 2009 14:01:18 +0000 (14:01 +0000)] 
In S_incpush(), rename the parameter from dir to p, rather than copying it.

10 years agoExtUtils::Install VMS extended character set support
John Malmberg [Sun, 15 Feb 2009 15:25:10 +0000 (09:25 -0600)] 
ExtUtils::Install VMS extended character set support

Preview from https://rt.cpan.org/Ticket/Display.html?id=42149

10 years agoRefactor S_incpush() to take 1 flags parameter, instead of 5 positional booleans
Nicholas Clark [Sun, 15 Feb 2009 12:05:55 +0000 (12:05 +0000)] 
Refactor S_incpush() to take 1 flags parameter, instead of 5 positional booleans
(which are impossible to remember).

10 years agoFor -I, need to also unshift version and architecture libs onto @INC (RT#6665)
Nicholas Clark [Sun, 15 Feb 2009 11:27:51 +0000 (11:27 +0000)] 
For -I, need to also unshift version and architecture libs onto @INC (RT#6665)
(20189146be79a0596543441fa369c6bf7f85103f only added the given directory.)

10 years agoClear Module::Build smoke on VMS while waiting for upstream.
Craig A. Berry [Sat, 14 Feb 2009 19:08:33 +0000 (13:08 -0600)] 
Clear Module::Build smoke on VMS while waiting for upstream.

Except for the version bump, this is the same as:

https://rt.cpan.org/Public/Bug/Display.html?id=42724

10 years agoAdd git_version.h to private so that make distclean deletes it.
Nicholas Clark [Sat, 14 Feb 2009 18:53:32 +0000 (18:53 +0000)] 
Add git_version.h to private so that make distclean deletes it.
(It was already in a different target that caused make clean to delete it.)

10 years agoIgnore the OS X GNUmakefile*s, and t/test_state.
Nicholas Clark [Sat, 14 Feb 2009 18:30:02 +0000 (18:30 +0000)] 
Ignore the OS X GNUmakefile*s, and t/test_state.

10 years agoIgnore lib/NDBM_File.pm
Nicholas Clark [Sat, 14 Feb 2009 18:29:37 +0000 (18:29 +0000)] 
Ignore lib/NDBM_File.pm

10 years agoMake git-find-p4-change only find changes done under perforce.
David Mitchell [Sat, 14 Feb 2009 17:26:11 +0000 (17:26 +0000)] 
Make git-find-p4-change only find changes done under perforce.
That way, later cherry-picking that happens to copy the 'p4raw-id:'
text won't be located by mistake.

10 years agoForbid to use "foreach" as an attribute
Rafael Garcia-Suarez [Sat, 14 Feb 2009 09:04:07 +0000 (10:04 +0100)] 
Forbid to use "foreach" as an attribute

(like all other control flow statements)

10 years agoMore tests for coderefs and smart match
Rafael Garcia-Suarez [Fri, 13 Feb 2009 23:16:20 +0000 (00:16 +0100)] 
More tests for coderefs and smart match

10 years agoRemove code that has never been used in any test
Rafael Garcia-Suarez [Fri, 13 Feb 2009 22:20:11 +0000 (23:20 +0100)] 
Remove code that has never been used in any test

10 years agoHandle uninitialized interpreter when performing vmsish pragma checks.
Craig A. Berry [Fri, 13 Feb 2009 21:26:00 +0000 (15:26 -0600)] 
Handle uninitialized interpreter when performing vmsish pragma checks.

10 years ago$object ~~ undef should always test for definedness
Rafael Garcia-Suarez [Fri, 13 Feb 2009 21:08:06 +0000 (22:08 +0100)] 
$object ~~ undef should always test for definedness

(even if $object hasn't overloaded the ~~ operator)

10 years agoAdd tests for undef smart-matching
Rafael Garcia-Suarez [Fri, 13 Feb 2009 20:57:41 +0000 (21:57 +0100)] 
Add tests for undef smart-matching

10 years agoDocument error "Smart matching a non-overloaded object breaks encapsulation"
Rafael Garcia-Suarez [Fri, 13 Feb 2009 15:59:22 +0000 (16:59 +0100)] 
Document error "Smart matching a non-overloaded object breaks encapsulation"

That error was added in e67b97bd974194ad616acbb7813c5631aacd6be7

10 years agoRemove obsolete comment; document test format
Rafael Garcia-Suarez [Fri, 13 Feb 2009 14:59:28 +0000 (15:59 +0100)] 
Remove obsolete comment; document test format