develooper Front page | perl.perl5.changes | Postings from October 2021

[Perl/perl5] b6cb77: Make PL_origfilename a pointer to const char

From:
=?UTF-8?B?RGFnZmlubiBJbG1hcmkgTWFubnPDpWtlcg==?= via perl5-changes
Date:
October 25, 2021 19:15
Subject:
[Perl/perl5] b6cb77: Make PL_origfilename a pointer to const char
Message ID:
Perl/perl5/push/refs/heads/ilmari/smoke-me/pl-origfilename-const-char/000000-b6cb77@github.com
  Branch: refs/heads/ilmari/smoke-me/pl-origfilename-const-char

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

  Commit: b6cb77481a6a2672e7a2176d4efe00f4e4d4309f

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

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

  Date:   2021-10-25 (Mon, 25 Oct 2021)



  Changed paths:

    M intrpvar.h

    M perl.c

    M pod/perldelta.pod



  Log Message:

  -----------

  Make PL_origfilename a pointer to const char



Commit dd374669df59cc2457708a01ea0f6d332912530b both made `scriptname`

a `const char *` and added the cast to the string literal.  The latter

is unnecessary given the former, and by making PL_origfilename a

`const char *`, we can avoid casting the const away from `scriptname`

as well.








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