Skip to content

Commit

Permalink
Add const to parameter to sv_catpv_flags
Browse files Browse the repository at this point in the history
The function it merely wraps is const, so this causes the actual
declaration in the code to match the prototype forward declaration
  • Loading branch information
khwilliamson committed Sep 2, 2024
1 parent a091427 commit 0aa33fc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion embed.fnc
Original file line number Diff line number Diff line change
Expand Up @@ -3060,7 +3060,7 @@ Adp |void |sv_catpv |NN SV * const dsv \
Adfpv |void |sv_catpvf |NN SV * const sv \
|NN const char * const pat \
|...
Adp |void |sv_catpv_flags |NN SV *dsv \
Adp |void |sv_catpv_flags |NN SV * const dsv \
|NN const char *sstr \
|const I32 flags
Adfpv |void |sv_catpvf_mg |NN SV * const sv \
Expand Down
2 changes: 1 addition & 1 deletion proto.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion sv.c
Original file line number Diff line number Diff line change
Expand Up @@ -5771,7 +5771,7 @@ Perl_sv_catpv(pTHX_ SV *const dsv, const char *sstr)
}

void
Perl_sv_catpv_flags(pTHX_ SV *dsv, const char *sstr, const I32 flags)
Perl_sv_catpv_flags(pTHX_ SV * const dsv, const char *sstr, const I32 flags)
{
PERL_ARGS_ASSERT_SV_CATPV_FLAGS;
sv_catpvn_flags(dsv, sstr, strlen(sstr), flags);
Expand Down

0 comments on commit 0aa33fc

Please sign in to comment.