This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Document new magic types in perlguts. Fix a comment about sort hints.
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>
Fri, 31 Mar 2006 14:08:12 +0000 (14:08 +0000)
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>
Fri, 31 Mar 2006 14:08:12 +0000 (14:08 +0000)
p4raw-id: //depot/perl@27644

perl.h
pod/perlguts.pod

diff --git a/perl.h b/perl.h
index 1e83f50..35c17b1 100644 (file)
--- a/perl.h
+++ b/perl.h
@@ -4200,7 +4200,7 @@ enum {            /* pass one of these to get_vtbl */
 #define HINT_ASSERTING          0x01000000
 #define HINT_ASSERTIONSSEEN     0x02000000
 
-/* The following are stored in $sort::hints, not in PL_hints */
+/* The following are stored in $^H{sort}, not in PL_hints */
 #define HINT_SORT_SORT_BITS    0x000000FF /* allow 256 different ones */
 #define HINT_SORT_QUICKSORT    0x00000001
 #define HINT_SORT_MERGESORT    0x00000002
index 0d17aa4..7b92d36 100644 (file)
@@ -1038,6 +1038,8 @@ The current kinds of Magic Virtual Tables are:
     e  PERL_MAGIC_envelem        vtbl_envelem   %ENV hash element
     f  PERL_MAGIC_fm             vtbl_fm        Formline ('compiled' format)
     g  PERL_MAGIC_regex_global   vtbl_mglob     m//g target / study()ed string
+    H  PERL_MAGIC_hints          vtbl_sig       %^H hash
+    h  PERL_MAGIC_hintselem      vtbl_hintselem %^H hash element
     I  PERL_MAGIC_isa            vtbl_isa       @ISA array
     i  PERL_MAGIC_isaelem        vtbl_isaelem   @ISA array element
     k  PERL_MAGIC_nkeys          vtbl_nkeys     scalar(keys()) lvalue