39 hours agohandy.h: EXTERN_C-ize PL_charclass smoke-me/khw-5.21
Karl Williamson [Fri, 23 Jan 2015 19:00:49 +0000]
handy.h: EXTERN_C-ize  PL_charclass

See thread http://nntp.perl.org/group/perl.perl5.porters/224999

39 hours agoregcomp.c: Another minor optimization
Karl Williamson [Fri, 23 Jan 2015 18:57:14 +0000]
regcomp.c: Another minor optimization

The [:cased:] internal class now handles [:upper:] and/or [:lower:]
under /i matching.  This code skipped possible optimizations because it
didn't think to use this.

39 hours agoregcomp.c: Minor optimizations
Karl Williamson [Fri, 23 Jan 2015 18:20:30 +0000]
regcomp.c: Minor optimizations

/d, [:digit:], and [:xdigit:] don't match anything in the upper Latin1
range.  Therefore the /d modifier has no effect, and they can be treated
as if /u was instead specified.  At run-time /u executes fewer branches
because it doesn't have to test if the target string is in UTF-8 or not.

39 hours agoregexec.c, regcomp.c: White-space only
Karl Williamson [Fri, 23 Jan 2015 18:19:23 +0000]
regexec.c, regcomp.c: White-space only

This changes some labels to be outdented 2 spaces from surrounding code

41 hours agoXXXcharbits
Karl Williamson [Thu, 28 Aug 2014 19:59:01 +0000]
XXXcharbits

41 hours agoXXX partial perlapi text
Karl Williamson [Wed, 18 Jun 2014 00:49:53 +0000]
XXX partial perlapi text

41 hours agoXXX Don't push. attempt to tell tries everything at compile time
Karl Williamson [Sun, 18 May 2014 01:37:06 +0000]
XXX Don't push. attempt to tell tries everything at compile time

But, it appears this is thrown away, have to consult with Yves to see if
is worth pursuing

2 days agoUpgrade Encode from version 2.67 to 2.68
Steve Hay [Thu, 22 Jan 2015 13:33:18 +0000]
Upgrade Encode from version 2.67 to 2.68

2 days agoAdd test for glob constants accepting method calls
Kent Fredric [Thu, 22 Jan 2015 10:15:51 +0000]
Add test for glob constants accepting method calls

This specific case tripped up autobox.pm.

2 days ago[perl #123619] Only make stringy classnames shared
Leon Timmermans [Wed, 21 Jan 2015 22:43:36 +0000]
[perl #123619] Only make stringy classnames shared

This caused failures in autobox that expect their invocant to be something
other than a string (e.g. a number). See also [cpan #100819].

2 days agoConvert tabs in indentation to spaces.
Shlomi Fish [Tue, 20 Jan 2015 14:15:49 +0000]
Convert tabs in indentation to spaces.

This is so it will display correctly with every tab-step/tab-size.

2 days agoFix target for MANISORT_SRT and use perl just built
Mathieu Arnold [Thu, 22 Jan 2015 17:04:21 +0000]
Fix target for MANISORT_SRT and use perl just built

Signed-off-by: Chris 'BinGOs' Williams <chris@bingosnet.co.uk>

2 days agobump attributes.pm version
David Mitchell [Thu, 22 Jan 2015 16:41:49 +0000]
bump attributes.pm version

2 days agoFix SDBM_File clean target after ac0e53cd2e.
Craig A. Berry [Thu, 22 Jan 2015 04:04:01 +0000]
Fix SDBM_File clean target after ac0e53cd2e.

The .dir extension is the extension of actual directory files in
the file system on VMS, so putting *.dir in the clean target has
us removing all the directories under ext/SDBM_file, including the
t/ directory.  Since the tests are in MANIFEST, a subsequent
reconfigure in the same build tree would then fail its manifest
check, such as when smoking multiple configurations.

So let's only clean up the files created by SDBM, which end with
.sdbm_dir on VMS.

3 days agoregen/charset_translations.pl: Clarify comment
Karl Williamson [Sun, 27 Jul 2014 05:07:33 +0000]
regen/charset_translations.pl: Clarify comment

3 days agoregen/mk_invlists.pl: Rename function
Karl Williamson [Sun, 27 Jul 2014 04:06:36 +0000]
regen/mk_invlists.pl: Rename function

The new name more clearly reflects its input restrictions

3 days agoregen/mk_invlists.pl: Do less work
Karl Williamson [Sun, 20 Jul 2014 01:06:21 +0000]
regen/mk_invlists.pl: Do less work

We only need to reorder the native code points (0..255) for EBCDIC, so
can quit when we get there, by appropriately refactoring the code

3 days agoregen/mk_invlists.pl: White-space only
Karl Williamson [Sat, 19 Jul 2014 21:34:49 +0000]
regen/mk_invlists.pl: White-space only

Indent as a result of new block in the previous commit; reformat a
comment

3 days agoregen/mk_invlists.pl: Skip unnecessary work
Karl Williamson [Sat, 19 Jul 2014 21:27:37 +0000]
regen/mk_invlists.pl: Skip unnecessary work

This reorders the code points below 256 depending on the platform.
However all platforms have the same values for those above 255, so can
skip this code if the first code point (and hence all code points) being
output isn't one of those affected.

3 days agoregen/mk_invlists.pl: output sorted
Karl Williamson [Thu, 17 Jul 2014 16:59:19 +0000]
regen/mk_invlists.pl: output sorted

This will make it easier to see differences in future commits

3 days agoregen/mk_invlists.pl: Output code points as hex
Karl Williamson [Thu, 17 Jul 2014 16:45:32 +0000]
regen/mk_invlists.pl: Output code points as hex

Unicode represents all code points as hex, so follow suit.
I, for one, am used to seeing hex code points, and so eyeballing these
makes more sense when they are in hex.

3 days agomktables: White-space only
Karl Williamson [Sun, 27 Jul 2014 04:50:17 +0000]
mktables: White-space only

The previous commit added a block around this code

3 days agomktables: Verify Unihan files versions
Karl Williamson [Sun, 27 Jul 2014 04:42:30 +0000]
mktables: Verify Unihan files versions

Most Unicode files contain versioning information.  Prior to this patch,
mktables did not verify that the Unihan inputs were the correct version.
This is in part because we don't usually compile the Unihan properties,
and because the beta files for Unicode 7.0 had the version information
in the same syntax as the rest of the files, so I thought we only had to
wait till 7.0 came out, and we would get the protection automatically
with the code that was already there.  But the format changed between
beta and release, so this patch adds code to check for the released
format.

3 days agomktables: Note that a property is deprecated by Unicode
Karl Williamson [Sun, 27 Jul 2014 04:18:59 +0000]
mktables: Note that a property is deprecated by Unicode

3 days agoregcomp.c: Collapse \b, \B cases
Karl Williamson [Thu, 31 Jul 2014 22:54:50 +0000]
regcomp.c: Collapse \b, \B cases

The code for these two case: statements was almost identical.

3 days agoMove inline fcn to #included file
Karl Williamson [Fri, 18 Jul 2014 04:41:21 +0000]
Move inline fcn to #included file

Future commits will want this function to be able to be used in more
than one core file.

3 days agoregcomp.c: Reorder two switch cases
Karl Williamson [Thu, 31 Jul 2014 22:46:14 +0000]
regcomp.c: Reorder two switch cases

This is in preparation for combining them into common code.  No other
changes are made, except for an additional blank line.

3 days agoregcomp.c: Don't store unnecessary data in \b ops
Karl Williamson [Thu, 31 Jul 2014 22:30:24 +0000]
regcomp.c: Don't store unnecessary data in \b ops

The previous commit has caused this information to no longer be looked
at; no need to store it therefore.

3 days agoregexec.c: Refactor \b code to not use the FLAGS field
Karl Williamson [Thu, 31 Jul 2014 22:24:52 +0000]
regexec.c: Refactor \b code to not use the FLAGS field

In one spot, \b and \B used the regnode FLAGS field to find out what
the character set type of bound they are.  This information is already
conveyed in the regnode type: BOUNDL, BOUNDU, etc.  By removing the use
of this redundant information, we can in a later commit stop storing it,
and free up the field for other uses.

3 days agoregexec.c: Use appropriate macro
Karl Williamson [Thu, 31 Jul 2014 21:45:13 +0000]
regexec.c: Use appropriate macro

This code knows that a \n isn't a word character, but in preparation for
future commits in which word isn't the only possibility,  change to use
the appropriate macro.

3 days agoregexec.c: Stack ternary operator for readability
Karl Williamson [Thu, 31 Jul 2014 03:49:03 +0000]
regexec.c: Stack ternary operator for readability

3 days agoregcomp.h: Clarify comment
Karl Williamson [Mon, 28 Jul 2014 03:19:48 +0000]
regcomp.h: Clarify comment

3 days agoUnicode::UCD: Allow internal properties in invmap()
Karl Williamson [Sat, 19 Jul 2014 17:35:34 +0000]
Unicode::UCD: Allow internal properties in invmap()

This adds an undocumented way to get invmap() to return internal
properties, like invlist().  This is intended only for Perl-core
use.

3 days agoUnicode::UCD: pod nits
Karl Williamson [Sat, 19 Jul 2014 17:32:49 +0000]
Unicode::UCD: pod nits

3 days agoregcomp.c: Silence Win32 compiler warnings
Karl Williamson [Thu, 22 Jan 2015 04:46:19 +0000]
regcomp.c: Silence Win32 compiler warnings

This variable is a boolean with values of 0 and 1, even though it's
stored as 32-bits in the struct, to get the simplest store/retrieval
code generated, so it's safe to cast it to a bool.

3 days agoattributes.xs: Don’t emit const warning for anons
Father Chrysostomos [Thu, 22 Jan 2015 05:37:01 +0000]
attributes.xs: Don’t emit const warning for anons

The intent was to emit the warning for any cases other than custom
attributes on anonymous subs.  I did that by checking to see whether
we had a closure prototype, warning otherwise.  But anonymous subs
that are not closures are not closure prototypes.  So we need to
check CvANON instead.

3 days agofix SDBM_File builds using gcc on Win32
Tony Cook [Thu, 22 Jan 2015 04:59:23 +0000]
fix SDBM_File builds using gcc on Win32

b488d167b0 removed the -DPERL_STATIC_SYMS definition to allow imported
perl variables to be seen correctly, but this meant gcc builds on Win32
considered:

  EXTCONST datum nullitem

as an import.

Change the EXTCONST to extern const so the declaration behaves as it did
with -DPERL_STATIC_SYMS.

3 days agoperldelta for 56f81afc0f, which is actually in 5.21.8
Steve Hay [Wed, 21 Jan 2015 14:11:16 +0000]
perldelta for 56f81afc0f, which is actually in 5.21.8

3 days agoFinal updates to M::CL for version bump
Matthew Horsfall [Wed, 21 Jan 2015 14:51:34 +0000]
Final updates to M::CL for version bump

3 days agoMore bumpbing of version number to 5.21.9. Missed this yesterday.
Matthew Horsfall [Wed, 21 Jan 2015 14:48:14 +0000]
More bumpbing of version number to 5.21.9. Missed this yesterday.

3 days agoSync Module::CoreList with CPAN and update for next release
Matthew Horsfall [Wed, 21 Jan 2015 14:15:53 +0000]
Sync Module::CoreList with CPAN and update for next release

3 days agoreg: avoid pointing past end of string on short DEFINE
Hugo van der Sanden [Sat, 10 Jan 2015 13:22:37 +0000]
reg: avoid pointing past end of string on short DEFINE

3 days agoavoid C labels in column 0
David Mitchell [Wed, 21 Jan 2015 12:16:21 +0000]
avoid C labels in column 0

Generally the guideline is to outdent C labels (e.g. 'foo:') 2 columns
from the surrounding code.

If the label starts at column zero, then it means that diffs, such as
those generated by git, display the label rather than the function
name at the head of a diff block: which makes diffs harder to peruse.

4 days agoAnother patch to perlsub documenting moves sigs
Peter Martini [Wed, 21 Jan 2015 06:24:44 +0000]
Another patch to perlsub documenting moves sigs

4 days agoperlrecharclass: Fix typo
Karl Williamson [Wed, 21 Jan 2015 01:24:26 +0000]
perlrecharclass: Fix typo

4 days agoUpdate RMG to mention uploading .xz to pause, and fix grammar
Matthew Horsfall [Tue, 20 Jan 2015 20:52:36 +0000]
Update RMG to mention uploading .xz to pause, and fix grammar

4 days agoVersion bump + new perldelta
Matthew Horsfall [Tue, 20 Jan 2015 20:44:24 +0000]
Version bump + new perldelta

4 days agoUpdate epigraph with mailing list link
Matthew Horsfall [Tue, 20 Jan 2015 20:42:09 +0000]
Update epigraph with mailing list link

4 days agoAdd epigraph and update release schedule
Matthew Horsfall [Tue, 20 Jan 2015 20:37:48 +0000]
Add epigraph and update release schedule

4 days agoReally fix broken linkage in perldelta v5.21.8
Matthew Horsfall [Tue, 20 Jan 2015 18:49:30 +0000]
Really fix broken linkage in perldelta

4 days agoFix IO::Compress linkage
Matthew Horsfall [Tue, 20 Jan 2015 18:31:16 +0000]
Fix IO::Compress linkage

4 days agoAdd new release to perlhist
Matthew Horsfall [Tue, 20 Jan 2015 18:21:33 +0000]
Add new release to perlhist

4 days agoFix pod spelling/linking mistakes as caught by podchecker/spell
Matthew Horsfall [Tue, 20 Jan 2015 18:14:52 +0000]
Fix pod spelling/linking mistakes as caught by podchecker/spell

4 days agoFinalize perldelta
Matthew Horsfall [Tue, 20 Jan 2015 18:07:27 +0000]
Finalize perldelta

4 days agoUpdate Module::CoreList for 5.21.8
Matthew Horsfall [Tue, 20 Jan 2015 18:01:05 +0000]
Update Module::CoreList for 5.21.8

4 days agoRelease prep - Copy descriptions of new errors in perldiag to delta
Matthew Horsfall [Tue, 20 Jan 2015 17:45:02 +0000]
Release prep - Copy descriptions of new errors in perldiag to delta

4 days agoregcomp.c: Add warnings under re 'strict'
Karl Williamson [Tue, 20 Jan 2015 16:48:44 +0000]
regcomp.c: Add warnings under re 'strict'

4 days agoregcomp.c: Move #define, make a function always compiled
Karl Williamson [Mon, 6 Oct 2014 22:17:58 +0000]
regcomp.c: Move #define, make a function always compiled

This is in preparation for the next commit.  The function previously was
used only in DEBUGGING builds

4 days agoregcomp.c: Add warnings under re 'strict'
Karl Williamson [Tue, 20 Jan 2015 06:51:55 +0000]
regcomp.c: Add warnings under re 'strict'

4 days agot/re/reg_mesg.t: Turn on $|
Karl Williamson [Tue, 20 Jan 2015 00:49:38 +0000]
t/re/reg_mesg.t: Turn on $|

Otherwise the output gets mixed up

4 days agoAdd portablity warning for re 'strict'
Karl Williamson [Mon, 19 Jan 2015 19:47:41 +0000]
Add portablity warning for re 'strict'

When a range in a bracketed character class has one end be specified as
Unicode, the whole range is viewed as Unicode.  Currently this is not
warned about, though it is somewhat like mixing apples and oranges.
This commit adds a warning, but only under "use re 'strict'", and
it now documents the only one-end behavior.

4 days agoregcomp.c: Fix typo in comment
Karl Williamson [Mon, 19 Jan 2015 19:43:43 +0000]
regcomp.c: Fix typo in comment

4 days agot/re/reg_mesg.t: Add support for only re 'strict' warnings
Karl Williamson [Mon, 19 Jan 2015 19:19:14 +0000]
t/re/reg_mesg.t: Add support for only re 'strict' warnings

This will allow future commits to specify warnings that are raised only
when under "use re 'strict'"

4 days agoregcomp.c: Refactor a calculation
Karl Williamson [Sat, 17 Jan 2015 22:57:24 +0000]
regcomp.c: Refactor a calculation

Currently the way we calculate if the endpoints in a range in a
[bracketed character class] are "literal" (like 'A', 'b') vs non (like
\x{41}) is to have a count of the literal endpoints.

Future commits will expand the definition of literal to include things
that are portably-specified, including things like \t, \N{U+xx}, etc.
It will be easier to specify that we have encountered a non-portable
name instead of the other way around.  So that is what this commit does.
The only non-portables are \digit, \o{}, \x{}, and \cX for all X.

4 days agoRelease prep - Update perldelta some more
Matthew Horsfall [Tue, 20 Jan 2015 17:11:24 +0000]
Release prep - Update perldelta some more

4 days agoRevert "refactor gv_add_by_type"
Matthew Horsfall [Sat, 17 Jan 2015 16:50:31 +0000]
Revert "refactor gv_add_by_type"

This reverts commit 819b139db33e2022424694e381422766903d4f65.

This could be repapplied for 5.23.1, with modifications or
additional patches to solve the breakage discussed in RT 123580.

4 days agoClean up MANIFEST.srt under distclean
Matthew Horsfall [Tue, 20 Jan 2015 16:39:55 +0000]
Clean up MANIFEST.srt under distclean

4 days agoRelease prep - Fix bad links in perldelta
Matthew Horsfall [Tue, 20 Jan 2015 16:27:25 +0000]
Release prep - Fix bad links in perldelta

4 days agoRelease prep - Update perldelta
Matthew Horsfall [Tue, 20 Jan 2015 16:19:27 +0000]
Release prep - Update perldelta

4 days agoRelease prep - Update version/copyright information.
Matthew Horsfall [Tue, 20 Jan 2015 16:18:59 +0000]
Release prep - Update version/copyright information.

4 days agoUpdate Filter::Util::Call to CPAN version 1.54.
Matthew Horsfall [Tue, 20 Jan 2015 15:23:26 +0000]
Update Filter::Util::Call to CPAN version 1.54.

4 days agoBump Module::Metadata version in Porting/Maintainers.pl.
Matthew Horsfall [Tue, 20 Jan 2015 15:12:55 +0000]
Bump Module::Metadata version in Porting/Maintainers.pl.

Missed with 5944609.

4 days agoMention some curious cases of **
Jarkko Hietaniemi [Mon, 19 Jan 2015 20:52:13 +0000]
Mention some curious cases of **

4 days agoNotes on NaN structure, for future generation/extraction.
Jarkko Hietaniemi [Mon, 19 Jan 2015 22:10:48 +0000]
Notes on NaN structure, for future generation/extraction.

4 days agoMake numifying "nanblah" warn, just like "345blah" does.
Jarkko Hietaniemi [Mon, 19 Jan 2015 20:39:05 +0000]
Make numifying "nanblah" warn, just like "345blah" does.

4 days agoinfnan: sprintf width and left-align.
Jarkko Hietaniemi [Mon, 19 Jan 2015 20:15:58 +0000]
infnan: sprintf width and left-align.

4 days agoClarify test messages.
Jarkko Hietaniemi [Mon, 19 Jan 2015 19:01:42 +0000]
Clarify test messages.

4 days agoPorting/checkAUTHORS.pl: New alternate addr for jhi
Karl Williamson [Tue, 20 Jan 2015 15:33:56 +0000]
Porting/checkAUTHORS.pl: New alternate addr for jhi

4 days agoperldiag: Fix typo
Karl Williamson [Tue, 20 Jan 2015 15:28:52 +0000]
perldiag: Fix typo

4 days agointuit_more: no need to copy before keyword check
Hugo van der Sanden [Fri, 16 Jan 2015 12:11:32 +0000]
intuit_more: no need to copy before keyword check

That also avoids crashing on overrun.

4 days agoUpdate signatures placement in perlsub pod
Peter Martini [Tue, 20 Jan 2015 11:26:54 +0000]
Update signatures placement in perlsub pod

5 days agoEnable cmpVERSION.pl checking of upstream cpan as well as upstream blead
Steve Hay [Tue, 20 Jan 2015 08:45:22 +0000]
Enable cmpVERSION.pl checking of upstream cpan as well as upstream blead

There is no reason why upstream cpan modules should not also have their
$VERSIONs bumped if they differ from the previous release. Even if they
are temporarily locally patched for blead, that temporary patch should
include a $VERSION bump.

5 days ago[perl #123554] stop checking the message
Tony Cook [Tue, 20 Jan 2015 05:24:50 +0000]
[perl #123554] stop checking the message

Sith IV/UV larger than Size_t, the overflow can be detected earlier,
so the message varies.

The error is still reported with a croak(), so it can be captured.

5 days agoperldelta for :const
Father Chrysostomos [Tue, 20 Jan 2015 04:39:44 +0000]
perldelta for :const

5 days agoperlexperiment: Missing bug number
Father Chrysostomos [Tue, 20 Jan 2015 04:37:24 +0000]
perlexperiment: Missing bug number

5 days ago[Merge] :const
Father Chrysostomos [Tue, 20 Jan 2015 04:34:34 +0000]
[Merge] :const

5 days agoDocument :const
Father Chrysostomos [Tue, 20 Jan 2015 04:33:01 +0000]
Document :const

5 days agoMake :const experimental
Father Chrysostomos [Tue, 20 Jan 2015 03:30:46 +0000]
Make :const experimental

5 days agoAdd experimental::const_attr warning category
Father Chrysostomos [Tue, 20 Jan 2015 03:21:16 +0000]
Add experimental::const_attr warning category

5 days agoattributes.xs: Remove dVAR
Father Chrysostomos [Mon, 19 Jan 2015 07:01:33 +0000]
attributes.xs: Remove dVAR

I think it has been redundant ever since it was added in 97aff369.

5 days agoLet attributes.pm know about the const attribute
Father Chrysostomos [Mon, 19 Jan 2015 06:40:09 +0000]
Let attributes.pm know about the const attribute

Setting it has no affect except on closure prototypes, so warn if an
attempt is made to set it on any other sub.

5 days agoanonconst.t for testing :const
Father Chrysostomos [Mon, 19 Jan 2015 01:40:34 +0000]
anonconst.t for testing :const

5 days agoAdd :const anon sub attribute
Father Chrysostomos [Mon, 19 Jan 2015 00:37:03 +0000]
Add :const anon sub attribute

5 days agocv.h: Add CVf_ANONCONST flag
Father Chrysostomos [Mon, 19 Jan 2015 00:28:27 +0000]
cv.h: Add CVf_ANONCONST flag

5 days agoavoid a build issue with non-threaded Win32 builds
Tony Cook [Tue, 20 Jan 2015 04:07:14 +0000]
avoid a build issue with non-threaded Win32 builds

ac0e53cd rearranged the build of the SDBM_File extension, and applied
the options, -DPERL_STATIC_SYMS, defined for the sdbm library code to
SDBM_File.$(O), which removed the __declspec(dllimport) specification
from perl's globals on non-threaded builds, breaking the code generated
for those variables.

The -DPERL_STATIC_SYMS was added in 9c293c15 as a replacement for a
kludge in 8803afc2 to fix SDBM built with BCC on Win32.

The failure in BCC was introduced in 17f28c40 which added the EXTCONST
to better support some VMS specific constructs (which appear to have
been removed since.)

A later patch may clean that up, but since the next dev release is
coming soon, I'll start with a minimal fix.

5 days agolib/locale.t: Suppress some warnings
Karl Williamson [Thu, 15 Jan 2015 05:48:44 +0000]
lib/locale.t: Suppress some warnings

Move a 'no warnings' statement to earlier in the file, to before the first
possibility of it being needed occurs.

5 days agolib/locale.t: Generalize to work on non-ASCII
Karl Williamson [Tue, 21 May 2013 04:20:29 +0000]
lib/locale.t: Generalize to work on non-ASCII

5 days agoperldelta: Fix typo
Karl Williamson [Mon, 19 Jan 2015 15:24:56 +0000]
perldelta: Fix typo

6 days agoperldelta for 62db6ea5fed1
Tony Cook [Mon, 19 Jan 2015 05:25:33 +0000]
perldelta for 62db6ea5fed1

6 days ago[perl #123538] always set chophere and itembytes at the same time
Tony Cook [Mon, 19 Jan 2015 05:03:18 +0000]
[perl #123538] always set chophere and itembytes at the same time

Previously this would crash in FF_MORE because chophere was still
NULL.