In perl.git, the branch smoke-me/khw-readonly_invlists has been created

<http://perl5.git.perl.org/perl.git/commitdiff/d961c65c789a151691b16261a4e86d396341523d?hp=0000000000000000000000000000000000000000>

        at  d961c65c789a151691b16261a4e86d396341523d (commit)

- Log -----------------------------------------------------------------
commit d961c65c789a151691b16261a4e86d396341523d
Author: Karl Williamson <[email protected]>
Date:   Mon Jun 10 21:10:51 2013 -0600

    smoke

M       dist/Storable/Storable.pm
M       dist/Storable/Storable.xs
M       dump.c
M       ext/B/B.pm
M       ext/B/B.xs
M       perl.h
M       sv.c
M       sv.h

commit 9392405ade2a95781c0309bd557c3c66651220b1
Author: Karl Williamson <[email protected]>
Date:   Wed Feb 13 17:21:18 2013 -0700

    regcomp.c: Move some #defines to only file that uses them
    
    These were used in a header file to provide synchronization between
    files.  However, the only other file that would need them is a .pl file 
which
    doesn't have access to them.  So simplify things so that the variables
    are either removed entirely if only used in a single place, or
    are #defined in the area where they are used

M       inline_invlist.c
M       regcomp.c

commit 50835cb105b7ddab8a84365f5785f0f7e244f6fc
Author: Karl Williamson <[email protected]>
Date:   Wed Feb 13 16:41:44 2013 -0700

    regcomp.c: Make C-array inversion lists const
    
    The inversion lists that are compiled into a C header are now const.

M       charclass_invlists.h
M       embed.fnc
M       inline_invlist.c
M       proto.h
M       regcomp.c
M       regen/mk_invlists.pl

commit 3a2b76df7e837f8f8e4e4fedd945f11feb7d2f8e
Author: Karl Williamson <[email protected]>
Date:   Wed Feb 13 16:33:09 2013 -0700

    regcomp.c: Move inversion list hdr field to SV hdr
    
    This moves the final field that can vary from the inversion list data
    structure into the header of the SV that contains it.  With this commit,
    the body of an inversion list is now const.
    
    The field is converted to a U8, to correspond with the header field in
    the SV type that we currently use to hold inversion lists.

M       embed.fnc
M       inline_invlist.c
M       proto.h
M       regcomp.c

commit 97f5a2d3bb11d38260da299326672e110d416665
Author: Karl Williamson <[email protected]>
Date:   Tue Feb 12 09:20:44 2013 -0700

    regcomp.c: Change, variable, fcn name
    
    These have always been slightly misnamed, but a recent commit made them
    more so.  The old name contained "zero", but now there is a new element
    which always has zero.  This element indicates whether the inversion
    list is offset, that is if the beginning is the zero element, or if the
    beginning is the next element beyond the zero element.

M       embed.fnc
M       embed.h
M       inline_invlist.c
M       proto.h
M       regcomp.c

commit b62eeb299361b2e619b2b51e9eb74a39bbb962c0
Author: Karl Williamson <[email protected]>
Date:   Mon Feb 11 23:08:00 2013 -0700

    regcomp.c: Move 2 hdr inversion fields to SV hdr
    
    This commit continues the process of separating the header area of
    inversion lists from the body.  2 more fields are moved out of the
    header portion of the inversion list, and into the header portion of the
    SV that contains it.

M       charclass_invlists.h
M       embed.fnc
M       inline_invlist.c
M       proto.h
M       regcomp.c
M       regen/mk_invlists.pl

commit e92d9642d197742878dfdaebba2c26c0ec147436
Author: Karl Williamson <[email protected]>
Date:   Wed Feb 13 15:13:04 2013 -0700

    regcomp.c: Remove unused data structure field
    
    This removes a field that is set in the inversion list data structure
    and examined just once.  And that sole examiner is the function that
    calls the function that does the set.  In other words X calls Y passing
    it data D.  Y puts D into a structure.  Upon return from Y, X looks for
    D in the structure.  No one else looks at D.  X might just as well have
    looked at D directly, without involving Y, and without the structure
    needing a space for D.

M       embed.fnc
M       embed.h
M       proto.h
M       regcomp.c

commit 9eb9ea2f095ff46d885840048b5885839491d3b5
Author: Karl Williamson <[email protected]>
Date:   Mon Feb 11 15:23:40 2013 -0700

    regcomp.c: Make inversion lists SVt_PVLV
    
    This is the 2nd step in separating the inversion list body from header.
    This commit gives inversion lists the header from a SVt_PVLV, and
    repurposes one of its fields into being the length of the inversion
    list.
    
    This SV type was chosen because it has a sufficient number of fields to
    accommodate all the header fields from inversion lists.

M       embed.fnc
M       inline_invlist.c
M       proto.h
M       regcomp.c

commit 673d0f1fd2be0ad68b7efa9b8bee59a5b4b0f2bb
Author: Karl Williamson <[email protected]>
Date:   Mon Feb 11 12:07:00 2013 -0700

    regcomp.c: Add a constant 0 element before inversion lists
    
    This commit is the first step to separating the header from the body of
    inversion lists.  Doing so will allow the compiled-in inversion lists to
    be fully read-only.
    
    To invert an inversion list, one simply unshifts a 0 to the front of it
    if one is not there, and shifts off the 0 if it does have one.
    
    The current data structure reserves an element at the beginning of each
    inversion list that is either 0 or 1.  If 0, it means the inversion list
    begins there; if 1, it means the inversion list starts at the next
    element.  Inverting involves flipping this bit.
    
    This commit changes the structure so that there is an additional element
    just after the element that flips.  This new element is always 0, and
    the flipping element now says whether the inversion list begins at the
    constant 0 element, or the one after that.
    
    Doing this allows the flipping element to be separated in later commits
    from the body of the inversion list, which will always begin with the
    constant 0 element.  That means that the body of the inversion list can
    be const.

M       charclass_invlists.h
M       embed.fnc
M       inline_invlist.c
M       proto.h
M       regcomp.c
M       regen/mk_invlists.pl
-----------------------------------------------------------------------

--
Perl5 Master Repository

Reply via email to