Help for this page

Select Code to Download


  1. or download this
    /* hash structure: */
    /* This structure must match the beginning of struct xpvmg in sv.h. */
    ...
        STRLEN      xhv_keys;       /* total keys, including placeholders 
    +*/
        STRLEN      xhv_max;        /* subscript of last element of xhv_ar
    +ray */
    };
    
  2. or download this
    /* the number of keys (including any placeholders) */
    #define XHvTOTALKEYS(xhv)       ((xhv)->xhv_keys)
    ...
    #define HvTOTALKEYS(hv)         XHvTOTALKEYS((XPVHV*)  SvANY(hv))
    #define HvPLACEHOLDERS(hv)      (*Perl_hv_placeholders_p(aTHX_ MUTABLE
    +_HV(hv)))
    #define HvPLACEHOLDERS_get(hv)  (SvMAGIC(hv) ? Perl_hv_placeholders_ge
    +t(aTHX_ (const HV *)hv) : 0)