Fix for
authordLux <dlux@spam.sch.bme.hu>
Mon, 23 Apr 2001 01:25:26 +0000 (03:25 +0200)
committerJarkko Hietaniemi <jhi@iki.fi>
Mon, 23 Apr 2001 12:53:25 +0000 (12:53 +0000)
Subject: [ID 20010423.001] perlapi documentation inconsistency (SvGROW)
Message-Id: <E14rTEM-0000CB-00@dl.sch.bme.hu>

(SvGROW really does return a char *.)

p4raw-id: //depot/perl@9786

pod/perlapi.pod
sv.h

index 3f7c2f9..5fbc201 100644 (file)
@@ -1934,7 +1934,7 @@ indicated number of bytes (remember to reserve space for an extra trailing
 NUL character).  Calls C<sv_grow> to perform the expansion if necessary. 
 Returns a pointer to the character buffer.
 
-       void    SvGROW(SV* sv, STRLEN len)
+       char *  SvGROW(SV* sv, STRLEN len)
 
 =for hackers
 Found in file sv.h
diff --git a/sv.h b/sv.h
index ab04b05..a896b62 100644 (file)
--- a/sv.h
+++ b/sv.h
@@ -1053,7 +1053,7 @@ more than once.
 Calls a non-destructive version of C<sv_setsv> if dsv is not the same as
 ssv. May evaluate arguments more than once.
 
-=for apidoc Am|void|SvGROW|SV* sv|STRLEN len
+=for apidoc Am|char *|SvGROW|SV* sv|STRLEN len
 Expands the character buffer in the SV so that it has room for the
 indicated number of bytes (remember to reserve space for an extra trailing
 NUL character).  Calls C<sv_grow> to perform the expansion if necessary.