X-Git-Url: https://perl5.git.perl.org/perl5.git/blobdiff_plain/f31006c96d4119fe2bd6e9ae42d2dbec49aa2b2c..8f0cd35a38dde9ab975f5ee1a663b81939e17745:/sv.h diff --git a/sv.h b/sv.h index 68e5db1..753b5bb 100644 --- a/sv.h +++ b/sv.h @@ -545,9 +545,14 @@ struct xpvlv { struct xpvinvlist { _XPV_HEAD; - IV prev_index; - STRLEN iterator; - bool is_offset; /* */ + IV prev_index; /* caches result of previous invlist_search() */ + STRLEN iterator; /* Stores where we are in iterating */ + bool is_offset; /* The data structure for all inversion lists + begins with an element for code point U+0000. + If this bool is set, the actual list contains + that 0; otherwise, the list actually begins + with the following element. Thus to invert + the list, merely toggle this flag */ }; /* This structure works in 3 ways - regular scalar, GV with GP, or fast