m4-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

m4 ./ChangeLog m4/builtin.c m4/debug.c m4/input...


From: Gary V. Vaughan
Subject: m4 ./ChangeLog m4/builtin.c m4/debug.c m4/input...
Date: Thu, 11 Oct 2001 17:09:16 -0400

CVSROOT:        /cvsroot/m4
Module name:    m4
Changes by:     Gary V. Vaughan <address@hidden>        01/10/11 17:09:16

Modified files:
        .              : ChangeLog 
        m4             : builtin.c debug.c input.c m4module.h 
                         m4private.h macro.c module.c symtab.c utility.c 
        modules        : evalparse.c format.c gnu.c m4.c 
        src            : freeze.c main.c 
        tests          : builtins.at modules.at 

Log message:
        The trace semantics now attach the trace bit to a symbol name.
        For as long as a traceon(`foo') is active, calls to foo will be
        traced regardless of intervening undefines or module unloads.
        Fixed the flag propogation issues differently to the fixes
        reverted with the last attempt at nailing down trace:
        
        * m4/m4private.h:  This file is not visible outside of the m4
        source tree, so I removed all the `M4_' and `m4_' prefixes to save
        on typing.  Updated all clients.
        (m4_token): New typedef contains the fields that need to be passed
        around with the low level tokeniser.
        (m4_token_data):  Removed.
        (m4_symbol): Now contains the traced flag again.
        * m4/symtab.c:  Rewritten again.  Now we don't remove symbols with
        the trace bit set.  This change is contained entirely within this
        module and doesn't leak out into the callers.  Updated all
        clients.
        (m4_symbol_builtin, m4_symbol_macro):  Adjusted to make use of the
        new fields in m4_token.  Updated all clients.
        * m4/builtin.c (m4_builtin_pushdef):  Needs a flags argument so
        that `groks_macro_args' and `blind_if_no_args' flags are retained
        when defn() results are passed around in m4 code.  Updated all
        callers.
        (m4_builtin_define): Ditto.
        (m4_macro_pushdef, m4_macro_define): Ditto.
        * m4/input.c (struct input_block): Add a flags field to facilitate
        the above.
        (m4_push_macro):  ...use it.
        (init_macro_token):  Retrieve it.
        (m4_next_token): Initialise it.
        * m4/macro.c (expand_argument):  Copy it.
        * m4/m4module.h: Adjust.
        * tests/builtins.at:  Adjust the expected output of the trace
        tests to reflect the change in semantics.
        * tests/modules.at (modules: trace):  Check that unloading a
        module which supplies a traced symbol definition doesn't lose te
        trace bit.

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/m4/m4/ChangeLog.diff?tr1=1.136&tr2=1.137&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/m4/m4/m4/builtin.c.diff?tr1=1.12&tr2=1.13&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/m4/m4/m4/debug.c.diff?tr1=1.9&tr2=1.10&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/m4/m4/m4/input.c.diff?tr1=1.13&tr2=1.14&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/m4/m4/m4/m4module.h.diff?tr1=1.32&tr2=1.33&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/m4/m4/m4/m4private.h.diff?tr1=1.12&tr2=1.13&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/m4/m4/m4/macro.c.diff?tr1=1.15&tr2=1.16&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/m4/m4/m4/module.c.diff?tr1=1.14&tr2=1.15&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/m4/m4/m4/symtab.c.diff?tr1=1.24&tr2=1.25&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/m4/m4/m4/utility.c.diff?tr1=1.17&tr2=1.18&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/m4/m4/modules/evalparse.c.diff?tr1=1.2&tr2=1.3&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/m4/m4/modules/format.c.diff?tr1=1.12&tr2=1.13&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/m4/m4/modules/gnu.c.diff?tr1=1.15&tr2=1.16&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/m4/m4/modules/m4.c.diff?tr1=1.25&tr2=1.26&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/m4/m4/src/freeze.c.diff?tr1=1.19&tr2=1.20&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/m4/m4/src/main.c.diff?tr1=1.28&tr2=1.29&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/m4/m4/tests/builtins.at.diff?tr1=1.5&tr2=1.6&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/m4/m4/tests/modules.at.diff?tr1=1.5&tr2=1.6&r1=text&r2=text




reply via email to

[Prev in Thread] Current Thread [Next in Thread]