1 |
|
2003-07-23 Gary V. Vaughan <gary@gnu.org> |
2 |
|
|
3 |
|
More refactoring of the m4module.h API. Replace #defines with an |
4 |
|
enum, and move non-public functions out of the public API. |
5 |
|
|
6 |
|
* m4/debug.c (stdarg.h, varargs.h): Remove variadic header |
7 |
|
inclusion. |
8 |
|
* m4/macro.c (stdarg.h): Add ANSI C variadic header. |
9 |
|
* m4/debug.c (m4_debug, trace): Moved... |
10 |
|
* m4/m4private.h (struct m4): ...to fields of this struct. |
11 |
|
(m4_get_debug_file, m4_get_trace_messages): New fast access macros |
12 |
|
for the new fields. |
13 |
|
* m4/debug.c (m4_debug_init, m4_debug_exit): Removed functions... |
14 |
|
* src/main.c (m4_debug_init, m4_debug_exit): ...invocations... |
15 |
|
* m4/m4.c (m4_create, m4_delete): ...and handled here instead. |
16 |
|
* m4/m4module.h (m4_context_field_table): Add entries for new |
17 |
|
debug_file and trace_messages fields. |
18 |
|
(M4_DEBUG_TRACE_ARGS, M4_DEBUG_TRACE_EXPANSION) |
19 |
|
(M4_DEBUG_TRACE_QUOTE, M4_DEBUG_TRACE_ALL, M4_DEBUG_TRACE_LINE) |
20 |
|
(M4_DEBUG_TRACE_FILE, M4_DEBUG_TRACE_PATH, M4_DEBUG_TRACE_CALL) |
21 |
|
(M4_DEBUG_TRACE_INPUT, M4_DEBUG_TRACE_CALLID) |
22 |
|
(M4_DEBUG_TRACE_VERBOSE): Replaced #defines with an enum. |
23 |
|
(m4_is_debug_bit): New macro to simplfy checks against the debug |
24 |
|
bits above. |
25 |
|
(m4_trace_format, m4_trace_header, m4_trace_flush) |
26 |
|
(m4_trace_prepre, m4_trace_pre, m4_trace_post): Removed |
27 |
|
prototypes. |
28 |
|
* m4/debug.c (m4_trace_format, m4_trace_header, m4_trace_flush) |
29 |
|
(m4_trace_prepre, m4_trace_pre, m4_trace_post): Moved... |
30 |
|
* m4/macro.c (trace_format, trace_header, trace_flush) |
31 |
|
(trace_prepre, trace_pre, trace_post): ...to these newly static |
32 |
|
functions, since they are only ever used from this file. Changed |
33 |
|
all callers. |
34 |
|
|
35 |
2003-07-17 Gary V. Vaughan <gary@gnu.org> |
2003-07-17 Gary V. Vaughan <gary@gnu.org> |
36 |
|
|
37 |
Change the macros for checking syntax so that matching against |
Change the macros for checking syntax so that matching against |
181 |
|
|
182 |
Two related changes, and a huge knockon effect throughout the |
Two related changes, and a huge knockon effect throughout the |
183 |
source: Moved the option variables out of global space and into |
source: Moved the option variables out of global space and into |
184 |
`struct m4'; made `m4_symtab' a real datatype, so that it's api |
`struct m4'; made `m4_symtab' a real datatype, so that its api |
185 |
is not marred passing `struct m4' around just so it can decide |
is not marred passing `struct m4' around just so it can decide |
186 |
whether to keep traced symbol names or not. Added setters and |
whether to keep traced symbol names or not. Added setters and |
187 |
getters for the formerly global option variables, and obviously |
getters for the formerly global option variables, and obviously |