From fed01289146a72275f8204f701222c0273a3f01b Mon Sep 17 00:00:00 2001 From: Steve Peters Date: Sun, 16 Apr 2006 13:44:47 +0000 Subject: [PATCH] Stray pod/perlapi.pod change found after a regen. p4raw-id: //depot/perl@27846 --- pod/perlapi.pod | 48 ++++++++++++++++++++++++++++++++---------------- 1 file changed, 32 insertions(+), 16 deletions(-) diff --git a/pod/perlapi.pod b/pod/perlapi.pod index 8b214d4..ebc1c27 100644 --- a/pod/perlapi.pod +++ b/pod/perlapi.pod @@ -973,6 +973,28 @@ being zero. See C. =for hackers Found in file mathoms.c +=item sv_usepvn +X + +Tells an SV to use C to find its string value. Implemented by +calling C with C of 0, hence does not handle 'set' +magic. See C. + + void sv_usepvn(SV* sv, char* ptr, STRLEN len) + +=for hackers +Found in file mathoms.c + +=item sv_usepvn_mg +X + +Like C, but also handles 'set' magic. + + void sv_usepvn_mg(SV *sv, char *ptr, STRLEN len) + +=for hackers +Found in file mathoms.c + =item sv_uv X @@ -5722,30 +5744,24 @@ You generally want to use the C macro wrapper. See also C. =for hackers Found in file sv.c -=item sv_usepvn -X +=item sv_usepvn_flags +X Tells an SV to use C to find its string value. Normally the string is stored inside the SV but sv_usepvn allows the SV to use an outside string. The C should point to memory that was allocated -by C. The string length, C, must be supplied. This -function will realloc (i.e. move) the memory pointed to by C, +by C. The string length, C, must be supplied. By default +this function will realloc (i.e. move) the memory pointed to by C, so that pointer should not be freed or used by the programmer after giving it to sv_usepvn, and neither should any pointers from "behind" -that pointer (e.g. ptr + 1) be used. Does not handle 'set' magic. -See C. +that pointer (e.g. ptr + 1) be used. - void sv_usepvn(SV* sv, char* ptr, STRLEN len) +If C & SV_SMAGIC is true, will call SvSETMAGIC. If C & +SV_HAS_TRAILING_NUL is true, then C must be NUL, and the realloc +I be skipped. (i.e. the buffer is actually at least 1 byte longer than +C, and already meets the requirements for storing in C) -=for hackers -Found in file sv.c - -=item sv_usepvn_mg -X - -Like C, but also handles 'set' magic. - - void sv_usepvn_mg(SV *sv, char *ptr, STRLEN len) + void sv_usepvn_flags(SV* sv, char* ptr, STRLEN len, U32 flags) =for hackers Found in file sv.c -- 2.7.4