Skip to content

Commit

Permalink
Time-Piece: notes to myself
Browse files Browse the repository at this point in the history
  • Loading branch information
khwilliamson committed May 22, 2023
1 parent d803a63 commit dc09435
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cpan/Time-Piece/Piece.xs
Expand Up @@ -54,6 +54,8 @@ extern "C" {
# define PERL_VERSION_GE(j,n,p) 0
#endif

/* XXX bunch of other locks need, tzset putenv, getenv; haven't looked */

#ifdef WIN32

/*
Expand Down Expand Up @@ -126,6 +128,7 @@ extern "C" {
#undef malloc
#undef free

/* Should call the one in Posix:: */
static void
fix_win32_tzenv(void)
{
Expand Down Expand Up @@ -831,6 +834,7 @@ label:
return 0;

len = (c == 'Y') ? 4 : 2;
/* XXX note this is a bug is isdigit, subtracting '0' because could be another set of 10. */
for (i = 0; len && *buf != 0 && isDIGIT_LC((unsigned char)*buf); buf++) {
i *= 10;
i += *buf - '0';
Expand Down

0 comments on commit dc09435

Please sign in to comment.