[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
m4 ./ChangeLog ./configure.ac m4/builtin.c m4/h...
From: |
Gary V. Vaughan |
Subject: |
m4 ./ChangeLog ./configure.ac m4/builtin.c m4/h... |
Date: |
Fri, 06 Jun 2003 12:14:06 -0400 |
CVSROOT: /cvsroot/m4
Module name: m4
Branch:
Changes by: Gary V. Vaughan <address@hidden> 03/06/06 12:14:06
Modified files:
. : ChangeLog configure.ac
m4 : builtin.c hash.c hash.h m4module.h m4private.h
macro.c symtab.c syntax.c system-h.in utility.c
modules : m4.c
Added files:
m4 : xstrzdup.c
Log message:
First cut at formal parameters in macros.
* configure.ac (AC_REPLACE_FUNCS): Add xstrzdup.
* m4/xstrzdup.c: New file.
* m4/builtin.c (M4_ARG_SIGNATURE_DEFAULT_SIZE): Start size for
associative array of parameter names to details.
(m4_symbol_token): Capture macro names with parameter lists.
(m4_arg_signature_parse): And build an associative array to hang
from the symbol structure to map names to details.
* m4/hash.c (m4_hash_new): Break the m4_hash_new followed by
m4_hash_resize idiom. Now that we potentially add a little hash
table to many of the entries in the symbol table, added an extra
arg to set the initial size. Changed all callers.
(m4_hash_apply): New function that is basically a generalised
version of...
* m4/symtab.c (m4_symbol_apply): ...this. Now deleted. Adjusted
all callers to call m4_hash_apply instead.
(m4_arg_destroy): Recycle memory used by an m4_token_arg.
(m4_symbol_popdef): Use m4_arg_destroy to help recycle the
m4_arg_signature association that might be attached to the symbol,
* m4/hash.h (m4_hash_apply_func): Replacement type for...
* m4/m4module.h (m4_symtab_apply_func): ...this. Now deleted.
(M4_SYNTAX_ASSIGN): Placeholder for assigning default values in
parameter lists.
(M4_IS_ASSIGN): Detect characters with M4_SYNTAX_ASSIGN syntax.
(M4_IS_IDENT): Detect characters that can be safely used in
parameter names.
* m4/syntax.c (m4_syntax_init): Add an M4_SYNTAX_ASSIGN character.
* m4/macro.c: Corrected grammar in some comments. Use `token'
rather than `td' for m4_token variables.
(m4_process_macro): If we find a dollar followed by some
M4_IS_IDENT characters, replace that with the contents of the argv
entry with offset stored in the m4_token_arg associated with the
collected identifier.
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/m4/m4/ChangeLog.diff?tr1=1.167&tr2=1.168&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/m4/m4/configure.ac.diff?tr1=1.7&tr2=1.8&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/m4/m4/m4/xstrzdup.c?rev=1.1
http://savannah.gnu.org/cgi-bin/viewcvs/m4/m4/m4/builtin.c.diff?tr1=1.15&tr2=1.16&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/m4/m4/m4/hash.c.diff?tr1=1.7&tr2=1.8&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/m4/m4/m4/hash.h.diff?tr1=1.6&tr2=1.7&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/m4/m4/m4/m4module.h.diff?tr1=1.41&tr2=1.42&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/m4/m4/m4/m4private.h.diff?tr1=1.17&tr2=1.18&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/m4/m4/m4/macro.c.diff?tr1=1.22&tr2=1.23&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/m4/m4/m4/symtab.c.diff?tr1=1.30&tr2=1.31&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/m4/m4/m4/syntax.c.diff?tr1=1.1&tr2=1.2&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/m4/m4/m4/system-h.in.diff?tr1=1.1&tr2=1.2&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/m4/m4/m4/utility.c.diff?tr1=1.22&tr2=1.23&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/m4/m4/modules/m4.c.diff?tr1=1.34&tr2=1.35&r1=text&r2=text
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- m4 ./ChangeLog ./configure.ac m4/builtin.c m4/h...,
Gary V. Vaughan <=