Branch: refs/heads/blead
  Home:   https://github.com/Perl/perl5
  Commit: 71d1d453e7b85f281b5063d31f92e417bda72779
      
https://github.com/Perl/perl5/commit/71d1d453e7b85f281b5063d31f92e417bda72779
  Author: Lukas Mai <lukasmai....@gmail.com>
  Date:   2025-03-17 (Mon, 17 Mar 2025)

  Changed paths:
    M malloc.c
    M perl.c
    M pod/perldiag.pod
    M pp.c
    M pp_pack.c

  Log Message:
  -----------
  turn croak("%s", "foo") into croak("foo")

There is no point in using a separate format string if the whole error
message is written right next to it. Not only does this change lead to
simpler code (passing one argument instead of two), it also exposes more
error messages to t/porting/diag.t, which relies on croak's first
argument to supply the message template.

Also make an equivalent change to S_open_script, which passes a constant
string in the form of an err variable that is not used anywhere else.
(It used to be, but that code was deleted in commit 5bc7d00e3e.)



To unsubscribe from these emails, change your notification settings at 
https://github.com/Perl/perl5/settings/notifications

Reply via email to