CVSROOT:        /sources/m4
Module name:    m4
Changes by:     Gary V. Vaughan <gary>  06/07/05 16:56:51

Modified files:
        .              : ChangeLog 
        modules        : gnu.c 

Log message:
        The regs_allocated field in a struct re_pattern_buffer refers
        to the state of a particular re_registers struct when used in
        successive matches using the same compiled pattern.  Avoid a
        SEGV in `renamesyms' resulting from using a new re_registers
        with an existing re_pattern_buffer:
        
        * modules/gnu.c (m4_pattern_buffer): Wrapper struct for associated
        pattern buffer and registers.
        (m4_regexp_search): New function to call re_regexp_search with
        correctly matched pattern buffer and register instantiations.
        (m4_regexp_compile): Return an m4_pattern_buffer.  Adust all
        callers.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/m4/ChangeLog?cvsroot=m4&r1=1.316&r2=1.317
http://cvs.savannah.gnu.org/viewcvs/m4/modules/gnu.c?cvsroot=m4&r1=1.39&r2=1.40


Reply via email to