Skip to content

Commit 425bcc1

Browse files
committed
perlapi: Restore pod/warn-unused-result for sv_pv()
Mistakenly removed in 5df7a2e
1 parent 8ae7aed commit 425bcc1

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

embed.fnc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3306,7 +3306,7 @@ Adp |STRLEN |sv_pos_u2b_flags \
33063306
|U32 flags
33073307
Admp |char * |sv_2pv |NN SV *sv \
33083308
|NULLOK STRLEN *lp
3309-
Cdmp |char * |sv_pv |NN SV *sv
3309+
CRdmp |char * |sv_pv |NN SV *sv
33103310
Admp |char * |sv_2pvbyte |NN SV *sv \
33113311
|NULLOK STRLEN * const lp
33123312
CRdmp |char * |sv_pvbyte |NN SV *sv

proto.h

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sv.h

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2212,8 +2212,14 @@ immediately written again.
22122212
sv_force_normal_flags(sv, 0)
22132213

22142214

2215-
/* all these 'functions' are now just macros */
2215+
/* all these 'functions' are now just macros
2216+
*
2217+
=for apidoc sv_pv
2218+
2219+
Use the C<SvPV_nolen> macro instead
22162220
2221+
=cut
2222+
*/
22172223
#define sv_pv(sv) SvPV_nolen(sv)
22182224

22192225
/*

0 commit comments

Comments
 (0)