| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
| |
Oh, um, lovely. Did I really want to look at that code? I can only assume
that in *BSD the API for _strptime() is fixed. But it's static for us, so
it doesn't need to be fixed.
Does the appended patch fix it?
Nicholas Clark
Signed-off-by: H.Merijn Brand <h.m.brand@xs4all.nl>
|
|
|
|
|
|
|
|
|
|
| |
g++ said:
Piece.xs:906: error: invalid conversion from void* to char*
Reported by George Greer in:
Message-ID: <alpine.LFD.2.00.1006292137180.10316@ein.m-l.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
In 1.17, T::P started using its own strptime (almost) everywhere,
and this _strptime contains a single reference to alloca(). The
Linux and BSD man pages recommend against using alloca(), the
function doesn't exist on HP-UX or VMS, and it's impossible to
error check it. So replace it here with malloc().
If getting three or four bytes from the heap instead of the stack
is considered a problem, an alternative would be researching the
maximum length of a timezone name and using an automatic variable
to hold it.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
[DELTA]
1.20
- Fix for alloca broke Solaris
- Fixed documentation buggette about strptime
- Added ->pretty() method for Time::Seconds objects
- Add %s support to strptime
1.19
- Fix for alloca broke FreeBSD
1.18
- Fix for alloca on IRIX
1.17
- Force all to use internal strptime then everyone gets %z even OSX
users.
- Finally figured out the timezone test failures on Win32 and fixed
them.
1.16
- Implement %z for the internal implementation of strptime().
Unfortunately this doesn't get picked up everywhere, so there are no
tests for it (yet - patches welcome).
- Fix for major bug in add_months() using negative months which were
multiples of 12. Also affected add_years() with negative years.
- Fix for object creation bug in get_epochs which called new from object
but that wasn't supported in the new() code.
- Added docs about the weakness of using epoch seconds internally and
suggested alternatives.
- Removed useless "use UNIVERSAL qw(isa)" line.
- Fix for installing over core perl version.
|
|
|
|
|
|
|
| |
was in Blead but is old than the current updated CPAN release. Comment
out a now deprecated 'use UNIVERSAL' line to prevent warnings from
production code. It's bad form to ship software that deprecates things
and then keeps using them and warning. Thanks to xdg++ for the spotting.
|
|
|