summaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2009-01-21 15:03:03 +0000
committerDavid Mitchell <davem@iabyn.com>2009-04-12 17:33:15 +0100
commit638beb1a35fde4a7f41f3aa39f1c146490006a87 (patch)
treea8bd79ee482aa9120c7dc21b5cafb73d88625a2b /util.c
parent4d0cd1718cb7e039f7ebd749d1ffaa12765fb758 (diff)
downloadperl-638beb1a35fde4a7f41f3aa39f1c146490006a87.tar.gz
Update the documentation of get_sv() to note that it calls Perl_gv_fetchpv(),
and hence the 'create' argument is actually 'flags'. Fix core code and documentation that used TRUE or FALSE to use 0 or GV_ADD. (cherry-picked from commit 64ace3f88f559d007c0150d9b048b1db32380208)
Diffstat (limited to 'util.c')
-rw-r--r--util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util.c b/util.c
index b09c9109ca..e43476f955 100644
--- a/util.c
+++ b/util.c
@@ -1464,7 +1464,7 @@ sidestepping the normal C order of execution. See C<warn>.
If you want to throw an exception object, assign the object to
C<$@> and then pass C<NULL> to croak():
- errsv = get_sv("@", TRUE);
+ errsv = get_sv("@", GV_ADD);
sv_setsv(errsv, exception_object);
croak(NULL);