projects
/
platform
/
upstream
/
perl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3bc3688
)
[perl #114248] Newxz? doc wrong in perlclib.pod
author
David Mitchell
<davem@iabyn.com>
Tue, 24 Jul 2012 10:21:25 +0000
(11:21 +0100)
committer
David Mitchell
<davem@iabyn.com>
Tue, 24 Jul 2012 10:21:25 +0000
(11:21 +0100)
Commit
9f653bb54868b8547466924d4ce483acb8987efb
changed the docs from
New/Newz to the newer Newx/Newxz, but forgot to remove the
no-longer-present 'id' arg.
pod/perlclib.pod
patch
|
blob
|
history
diff --git
a/pod/perlclib.pod
b/pod/perlclib.pod
index
0785577
..
ef0b6b0
100644
(file)
--- a/
pod/perlclib.pod
+++ b/
pod/perlclib.pod
@@
-99,8
+99,8
@@
There is no equivalent to C<fgets>; one should use C<sv_gets> instead:
Instead Of: Use:
- t* p = malloc(n) Newx(
id,
p, n, t)
- t* p = calloc(n, s) Newxz(
id,
p, n, t)
+ t* p = malloc(n) Newx(p, n, t)
+ t* p = calloc(n, s) Newxz(p, n, t)
p = realloc(p, n) Renew(p, n, t)
memcpy(dst, src, n) Copy(src, dst, n, t)
memmove(dst, src, n) Move(src, dst, n, t)