[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
m4 ./ChangeLog m4/debug.c m4/input.c m4/m4.c m4...
From: |
Gary V. Vaughan |
Subject: |
m4 ./ChangeLog m4/debug.c m4/input.c m4/m4.c m4... |
Date: |
Wed, 23 Jul 2003 07:51:27 -0400 |
CVSROOT: /cvsroot/m4
Module name: m4
Branch:
Changes by: Gary V. Vaughan <address@hidden> 03/07/23 07:51:27
Modified files:
. : ChangeLog
m4 : debug.c input.c m4.c m4module.h m4private.h
macro.c
modules : gnu.c m4.c
src : main.c
Log message:
More refactoring of the m4module.h API. Replace #defines with an
enum, and move non-public functions out of the public API.
* m4/debug.c (stdarg.h, varargs.h): Remove variadic header
inclusion.
* m4/macro.c (stdarg.h): Add ANSI C variadic header.
* m4/debug.c (m4_debug, trace): Moved...
* m4/m4private.h (struct m4): ...to fields of this struct.
(m4_get_debug_file, m4_get_trace_messages): New fast access macros
for the new fields.
* m4/debug.c (m4_debug_init, m4_debug_exit): Removed functions...
* src/main.c (m4_debug_init, m4_debug_exit): ...invocations...
* m4/m4.c (m4_create, m4_delete): ...and handled here instead.
* m4/m4module.h (m4_context_field_table): Add entries for new
debug_file and trace_messages fields.
(M4_DEBUG_TRACE_ARGS, M4_DEBUG_TRACE_EXPANSION)
(M4_DEBUG_TRACE_QUOTE, M4_DEBUG_TRACE_ALL, M4_DEBUG_TRACE_LINE)
(M4_DEBUG_TRACE_FILE, M4_DEBUG_TRACE_PATH, M4_DEBUG_TRACE_CALL)
(M4_DEBUG_TRACE_INPUT, M4_DEBUG_TRACE_CALLID)
(M4_DEBUG_TRACE_VERBOSE): Replaced #defines with an enum.
(m4_is_debug_bit): New macro to simplfy checks against the debug
bits above.
(m4_trace_format, m4_trace_header, m4_trace_flush)
(m4_trace_prepre, m4_trace_pre, m4_trace_post): Removed
prototypes.
* m4/debug.c (m4_trace_format, m4_trace_header, m4_trace_flush)
(m4_trace_prepre, m4_trace_pre, m4_trace_post): Moved...
* m4/macro.c (trace_format, trace_header, trace_flush)
(trace_prepre, trace_pre, trace_post): ...to these newly static
functions, since they are only ever used from this file. Changed
all callers.
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/m4/m4/ChangeLog.diff?tr1=1.191&tr2=1.192&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/m4/m4/m4/debug.c.diff?tr1=1.15&tr2=1.16&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/m4/m4/m4/input.c.diff?tr1=1.32&tr2=1.33&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/m4/m4/m4/m4.c.diff?tr1=1.5&tr2=1.6&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/m4/m4/m4/m4module.h.diff?tr1=1.55&tr2=1.56&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/m4/m4/m4/m4private.h.diff?tr1=1.28&tr2=1.29&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/m4/m4/m4/macro.c.diff?tr1=1.34&tr2=1.35&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/m4/m4/modules/gnu.c.diff?tr1=1.24&tr2=1.25&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/m4/m4/modules/m4.c.diff?tr1=1.46&tr2=1.47&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/m4/m4/src/main.c.diff?tr1=1.44&tr2=1.45&r1=text&r2=text
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- m4 ./ChangeLog m4/debug.c m4/input.c m4/m4.c m4...,
Gary V. Vaughan <=