Change 33553 by [EMAIL PROTECTED] on 2008/03/24 20:54:41
Subject: [PATCH] apidoc mismatch for Perl_magic_clearhint
From: Vincent Pit <[EMAIL PROTECTED]>
Date: Mon, 24 Mar 2008 21:30:10 +0100
Message-ID: <[EMAIL PROTECTED]>
Affected files ...
... //depot/perl/mg.c#523 edit
... //depot/perl/pod/perlintern.pod#74 edit
Differences ...
==== //depot/perl/mg.c#523 (text) ====
Index: perl/mg.c
--- perl/mg.c#522~33458~ 2008-03-10 05:56:41.000000000 -0700
+++ perl/mg.c 2008-03-24 13:54:41.000000000 -0700
@@ -3140,7 +3140,7 @@
}
/*
-=for apidoc magic_sethint
+=for apidoc magic_clearhint
Triggered by a delete from %^H, records the key to
C<PL_compiling.cop_hints_hash>.
==== //depot/perl/pod/perlintern.pod#74 (text+w) ====
Index: perl/pod/perlintern.pod
--- perl/pod/perlintern.pod#73~33289~ 2008-02-12 04:16:23.000000000 -0800
+++ perl/pod/perlintern.pod 2008-03-24 13:54:41.000000000 -0700
@@ -433,12 +433,25 @@
=over 8
-=item magic_sethint
-X<magic_sethint>
+=item magic_clearhint
+X<magic_clearhint>
Triggered by a delete from %^H, records the key to
C<PL_compiling.cop_hints_hash>.
+ int magic_clearhint(SV* sv, MAGIC* mg)
+
+=for hackers
+Found in file mg.c
+
+=item magic_sethint
+X<magic_sethint>
+
+Triggered by a store to %^H, records the key/value pair to
+C<PL_compiling.cop_hints_hash>. It is assumed that hints aren't storing
+anything that would need a deep copy. Maybe we should warn if we find a
+reference.
+
int magic_sethint(SV* sv, MAGIC* mg)
=for hackers
End of Patch.