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

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

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

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

  Commit: d48233b91558af4cf7c1648aec91065a8439faa4

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

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

  Date:   2020-06-18 (Thu, 18 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