This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
regcomp.c: Change re_croak2 to re_croak
authorKarl Williamson <khw@cpan.org>
Thu, 27 Feb 2020 14:48:07 +0000 (07:48 -0700)
committerKarl Williamson <khw@cpan.org>
Sun, 1 Mar 2020 16:02:08 +0000 (09:02 -0700)
commitc6572a6d12f9d71a946ea286e633e948a1c6db61
tree178023531ea819e5ee1c8ad2cebc097b4a366291
parentae01c992e1a43c5a5a9f4d6ec02f28d57974d9ac
regcomp.c: Change re_croak2 to re_croak

This changes this function from taking two format parameters to instead
taking a single one.  The reason is that the generality isn't actually
currently needed, and it prevents the function from being declared as
taking a format, which adds extra checking.  If this checking had been
in effect, GH #17574 would have generated a warning message.

The reason the second format isn't required is that in all cases, both
formats are literal strings.  In the macros that call this, simply
removing the comma separators between them causes the two literals to
automagically become one by the C preprocessor.
embed.fnc
proto.h
regcomp.c