In perl.git, the branch smoke-me/tonyc/post-5.22 has been created
<http://perl5.git.perl.org/perl.git/commitdiff/8d553334382f1a98d9af7529e7fc367aeee0b051?hp=0000000000000000000000000000000000000000>
at 8d553334382f1a98d9af7529e7fc367aeee0b051 (commit)
- Log -----------------------------------------------------------------
commit 8d553334382f1a98d9af7529e7fc367aeee0b051
Author: Daniel Dragan <[email protected]>
Date: Sun May 10 23:30:21 2015 -0400
remove redundant PERL_EXPORT_C and PERL_XS_EXPORT_C macros
These 2 macros were created for the Symbian port in commit
"Symbian port of Perl" to replace a direct "extern" token. I guess the
author was unaware of PERL_CALLCONV.
PERL_CALLCONV is the official macro to use. PERL_XS_EXPORT_C and
PERL_EXPORT_C have no usage on cpan grep except for modules with direct
copies of core headers. A defect of using PERL_EXPORT_C and
PERL_XS_EXPORT_C instead of PERL_CALLCONV is that win32/win32.h has no
knowledge of the 2 macros and doesn't set them, and os/os2ish.h doesn't
either. On Win32, since the unix defaults are used instead of Win32
specific "__declspec(dllimport)" token, XS modules use indirect function
stubs in each XS module placed by the CC to call into perl5**.dll instead
of directly calls the core C functions. I observed this in in XS-Typemap's
DLL. To simplify the API, and to decrease the amount of macros needing to
implemented to support each platform, just remove the 2 macros.
Since perl.h's fallback defaults for PERL_CALLCONV are very late in perl.h,
they need to be moved up before function declarations start in perlio.h
(perlio.h is included from iperlsys.h).
win32iop.h contains the "PerlIO" and SV" tokens, so perlio.h must be
included before win32iop.h is. Including perlio.h so early in win32.h,
causes PERL_CALLCONV not be defined since Win32 platform uses the
fallback in perl.h, since win32.h doesn't always define PERL_CALLCONV and
sometimes relies on the fallback. Since win32iop.h contains alot of
declarations, it belongs with other declarations such as those in proto.h
so move it from win32.h to perl.h.
the "free" token in struct regexp_engine conflicts with win32iop's
"#define free win32_free" so rename that member.
M handy.h
M perl.h
M perlio.h
M perliol.h
M regexp.h
M symbian/symbianish.h
M win32/win32.h
commit ebf6f9d3d2d1e45628766abd929c3d8e459aab06
Author: Peter John Acklam <[email protected]>
Date: Tue Apr 28 13:07:43 2015 +0200
Fix bug in Math::BigFloat's bceil() and bint() methods.
- When $x is a Math::BigFloat, $x -> bceil() and $x -> bint() for -1 < $x < 0
returns -0. Negative zero is never used by Math::Big(Int|Float), and care
has
been taken to avoid it, so this bug is surely an oversight.
- This patch fixes CPAN RT #104012.
M dist/Math-BigInt/lib/Math/BigFloat.pm
M dist/Math-BigInt/t/bare_mbf.t
M dist/Math-BigInt/t/bigfltpm.inc
M dist/Math-BigInt/t/bigfltpm.t
M dist/Math-BigInt/t/sub_mbf.t
M dist/Math-BigInt/t/with_sub.t
commit e0b8df1751f8620083680aa7155569ef11942f1a
Author: Peter John Acklam <[email protected]>
Date: Fri Apr 24 15:13:33 2015 +0200
Speed up Math::BigFloat -> blog().
- Intermediate computations in blog() increases the number of digits
significantly in some cases. Reduce the number of digits by rounding.
However, keep some extra digits for remaining intermediate computations
before the final rounding.
- This patch fixes CPAN RT #43924.
M dist/Math-BigInt/lib/Math/BigFloat.pm
commit fc8ade30efb60910741500b1f24ea1517f7f665d
Author: Reini Urban <[email protected]>
Date: Thu Apr 23 12:42:40 2015 +0200
lib/vars_carp.t: fix wrong test
actually load vars to test its new sideeffect
M lib/vars_carp.t
commit bac7a07343f73cfc155ca92eede9c941e45f84c5
Author: Niko Tyni <[email protected]>
Date: Sat Apr 18 18:59:07 2015 +0300
Fix quote() function to escape backslashes but not minus signs
The delimiter character isn't special in character square brackets,
and neither is the backslash. So '\-\' means just a range of backslash
to backslash, and the minus sign isn't included at all.
Substitution tested with GNU Solaris 9 sed programs.
Originally noticed by Kristoffer Grundstr?m.
Bug-Debian: https://bugs.debian.org/754057
M Makefile.SH
commit 6286af637be0136c85afe45e19164262bcc36d6b
Author: Peter John Acklam <[email protected]>
Date: Fri Apr 17 21:28:37 2015 +0200
Correct Math::BigInt -> new() for non-integer input.
The documentation in Math::BigInt says about input values that "Non-integer
values result in NaN." The actual behaviour doesn't comply with this.
- All input values in the range (-1,1) written as a decimal number, e.g.,
-0.75 and 0.5, now return NaN, not 0.
- Input values with a large (absolute value) negative exponent, e.g.,
1e-9999999, now return NaN. The former behaviour was to die with the
message "Quantifier in {,} bigger than 32766 in regex; marked by ..."
- This patch fixes CPAN RT #61887 and CPAN RT #63038.
M dist/Math-BigInt/lib/Math/BigInt.pm
M dist/Math-BigInt/t/bigintpm.inc
commit c6a0f373e24af0d67fe72cb526ff873d75273ebb
Author: Niko Tyni <[email protected]>
Date: Wed Apr 15 18:41:57 2015 +0300
Make t/run/locale.t survive missing locales masked by LC_ALL
If LC_ALL is set to a valid locale but another LC_* setting like LC_CTYPE
isn't, t/run/locale.t would fail because it explicitly unsets LC_ALL,
unmasking the problem underneath. All the other tests survive such
a scenario.
While this is clearly an error in the build environment, it's easy to make
the test more robust by first clearing all the locale relevant variables.
Bug-Debian: https://bugs.debian.org/782068
M t/run/locale.t
commit 25e9291a450db5e21a837180f015b6f4a5bd503e
Author: Peter John Acklam <[email protected]>
Date: Tue Apr 14 20:56:40 2015 +0200
Correct bdiv() and bmod() in Math::BigRat
- Added support for bdiv() in list context. Added corresponding tests.
- Changed bmod() so the result corresponds to Perl's % operator, as well as
the second output argument of bdiv() in list contest. Modified tests
correspondingly. Now the behaviour of bmod() is consistent between
Math::BigInt, Math::BigFloat, and Math::BigRat.
- Clearer POD for the bdiv() and bmod() methods.
M dist/Math-BigRat/lib/Math/BigRat.pm
M dist/Math-BigRat/t/bigratpm.inc
M dist/Math-BigRat/t/bigratpm.t
commit 55ff9ac960f5886c0dde0cfd624b0c90065bd587
Author: Peter John Acklam <[email protected]>
Date: Tue Apr 14 15:20:14 2015 +0200
Correct bdiv() and bmod() in Math::BigInt and Math::BigFloat
- The POD documentation, as well as the comments in the code, say that
$x->bdiv($y) in list context should return quotient $q and remainder $r
so that $x = $q * $y + $r, and that the remainder (modulo) $r should
correspond to Perl's % operator as well as the bmod() method. This has
not been the actual behaviour. This patch fixes this.
- Clearer POD documentation for the bdiv() and bmod() methods.
- Changed test files to match corrected behaviour.
- Removed some duplicated tests.
M dist/Math-BigInt/lib/Math/BigFloat.pm
M dist/Math-BigInt/lib/Math/BigInt.pm
M dist/Math-BigInt/lib/Math/BigInt/Calc.pm
M dist/Math-BigInt/lib/Math/BigInt/CalcEmu.pm
M dist/Math-BigInt/t/bare_mbf.t
M dist/Math-BigInt/t/bare_mbi.t
M dist/Math-BigInt/t/bigfltpm.inc
M dist/Math-BigInt/t/bigfltpm.t
M dist/Math-BigInt/t/bigintpm.inc
M dist/Math-BigInt/t/bigintpm.t
M dist/Math-BigInt/t/inf_nan.t
M dist/Math-BigInt/t/sub_mbf.t
M dist/Math-BigInt/t/sub_mbi.t
M dist/Math-BigInt/t/upgrade.inc
M dist/Math-BigInt/t/upgrade.t
M dist/Math-BigInt/t/with_sub.t
commit 8aa5bd876fc653d022aba790a78e967e57d58744
Author: Jim Cromie <[email protected]>
Date: Sat Apr 4 12:49:27 2015 -0600
fix XXX on DEBUG_TOP_FLAG comment
DEBUG_TOP_FLAG is ORd into PL_debug when -D option is used, so that
"if (PL_debug)" can be used, w/o also enabling (or requiring) any
specific DEBUG_(.)_FLAGs. It is used in Perl_runops_debug to
short-circuit several DEBUG_(.)_TESTs.
M perl.h
commit a07563f34ced3e8c48563df657daa891dce57c45
Author: Jim Cromie <[email protected]>
Date: Wed Dec 3 10:34:36 2014 -0700
perl_clone_using: Zero -DPERL_TRACE_OPS mem for sub-threads
perl_clone_using() is missing Zero init of PL_op_exec_cnt[]. This
causes sub-threads in threaded -DPERL_TRACE_OPS builds to spew
exceedingly large op-counts at destruct. These counts would print %x
as "ABABABAB", clearly a mem-poison value.
M sv.c
commit 49d8a67dcdd0833c06cffc533d884f1dd622bb5c
Author: Daniel Dragan <[email protected]>
Date: Fri Mar 27 03:02:58 2015 -0400
remove obsolete VOL in S_parse_body
commit 312caa8e97 removed dJMPENV from perl_parse_body (former perl_parse)
when it created perl_parse_body and perl_parse kept the dJMPENV, but this
commit forgot to remove the VOL tag on var dosearch. Since the VOL is
only required when the function has a setjmp in it, and this function
doesn't have a setjmp in it anymore, remove the VOL tag.
M perl.c
commit 6d6f5875e64bb0a4fc5e8e5f79c889780fb5b255
Author: Dagfinn Ilmari Mannsåker <[email protected]>
Date: Fri Mar 20 17:49:12 2015 +0000
Handle fcntl(F_GETPIPE_SZ) failure in t/io/eintr.t
Even if the F_GETPIPE_SZ constant is defined, the fcntl() call can
fail (e.g. with EINVAL), so fall back to the default in that case.
M t/io/eintr.t
-----------------------------------------------------------------------
--
Perl5 Master Repository