This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
time64.c: Refactor Perl_localtime64_r()
authorKarl Williamson <khw@cpan.org>
Sat, 14 Mar 2020 20:33:05 +0000 (14:33 -0600)
committerKarl Williamson <khw@cpan.org>
Thu, 19 Mar 2020 00:08:57 +0000 (18:08 -0600)
commit0bd9a4dd60d8f4d8a8858b9017c1f861838b56b5
tree6193408efde17f69332f53f02c1e0e1ea9e9e028
parent6358af1715b0184076504f68f4610f4d97c57114
time64.c: Refactor Perl_localtime64_r()

There are two main cases in Perl_localtime64_r(), call them A and B.

Prior to this commit, it was structured

if (A) {
 codeA
 return;
}

codeB
return;

The problem this commit solves is that there is common stuff in codeA
and codeB that will now only be specified once.  Currently that common
stuff is minimal, and so acceptable, but the next few commits will make
the common stuff more complex, so making it be only once is helpful.
time64.c