Skip to content

Commit

Permalink
Change formal parameter name for newSVpvn()
Browse files Browse the repository at this point in the history
This makes all related functions have the same-named arguments, which
makes documenting them more compact
  • Loading branch information
khwilliamson committed Jun 21, 2024
1 parent 21017bd commit 758215c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion embed.fnc
Original file line number Diff line number Diff line change
Expand Up @@ -2289,7 +2289,7 @@ ARdp |SV * |newSVpv |NULLOK const char * const s \
|const STRLEN len
ARdfpv |SV * |newSVpvf |NN const char * const pat \
|...
ARdp |SV * |newSVpvn |NULLOK const char * const buffer \
ARdp |SV * |newSVpvn |NULLOK const char * const s \
|const STRLEN len
ARdp |SV * |newSVpvn_flags |NULLOK const char * const s \
|const STRLEN len \
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.

4 changes: 2 additions & 2 deletions sv.c
Original file line number Diff line number Diff line change
Expand Up @@ -9710,10 +9710,10 @@ undefined.
*/

SV *
Perl_newSVpvn(pTHX_ const char *const buffer, const STRLEN len)
Perl_newSVpvn(pTHX_ const char *const s, const STRLEN len)
{
SV *sv = newSV_type(SVt_PV);
sv_setpvn_fresh(sv,buffer,len);
sv_setpvn_fresh(sv, s, len);
return sv;
}

Expand Down

0 comments on commit 758215c

Please sign in to comment.