develooper Front page | perl.perl5.changes | Postings from June 2020

[Perl/perl5] aae3ba: time64: declare `tm_zone` as `const char*`uncondi...

From:
=?UTF-8?B?RGFnZmlubiBJbG1hcmkgTWFubnPDpWtlcg==?=
Date:
June 16, 2020 12:51
Subject:
[Perl/perl5] aae3ba: time64: declare `tm_zone` as `const char*`uncondi...
Message ID:
Perl/perl5/push/refs/heads/smoke-me/ilmari/struct-tm-const-tm_zone/000000-aae3ba@github.com
  Branch: refs/heads/smoke-me/ilmari/struct-tm-const-tm_zone

  Home:   https://github.com/Perl/perl5

  Commit: aae3baae36dec43fd31220fb86abde5a429ffe30

      https://github.com/Perl/perl5/commit/aae3baae36dec43fd31220fb86abde5a429ffe30

  Author: Dagfinn Ilmari Mannsåker <ilmari@ilmari.org>

  Date:   2020-06-16 (Tue, 16 Jun 2020)



  Changed paths:

    M time64.c

    M time64.h



  Log Message:

  -----------

  time64: declare `tm_zone` as `const char*` unconditionally



We only ever assign from `struct tm` to `struct TM`, not the other way

around, so making this const regardless of what `struct tm` has should

be safe.








nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About