cppmacro.c (cpp_macro_definition): Do not emit spaces after macro formal parameter names.
* cppmacro.c (cpp_macro_definition): Do not emit spaces after macro formal parameter names. From-SVN: r51706
This commit is contained in:
parent
23367e11b2
commit
46e1036fec
|
@ -1,3 +1,8 @@
|
|||
2002-04-01 Jim Blandy <jimb@redhat.com>
|
||||
|
||||
* cppmacro.c (cpp_macro_definition): Do not emit spaces after
|
||||
macro formal parameter names.
|
||||
|
||||
2002-04-01 Bob Wilson <bob.wilson@acm.org>
|
||||
|
||||
* config/xtensa/xtensa.c (xtensa_va_arg): Fix compiler warning
|
||||
|
|
|
@ -1527,10 +1527,10 @@ cpp_macro_definition (pfile, node)
|
|||
len = NODE_LEN (node) + 1; /* ' ' */
|
||||
if (macro->fun_like)
|
||||
{
|
||||
len += 3; /* "()" plus possible final "." of named
|
||||
varargs (we have + 2 below). */
|
||||
len += 4; /* "()" plus possible final ".." of named
|
||||
varargs (we have + 1 below). */
|
||||
for (i = 0; i < macro->paramc; i++)
|
||||
len += NODE_LEN (macro->params[i]) + 2; /* ", " */
|
||||
len += NODE_LEN (macro->params[i]) + 1; /* "," */
|
||||
}
|
||||
|
||||
for (i = 0; i < macro->count; i++)
|
||||
|
@ -1573,7 +1573,10 @@ cpp_macro_definition (pfile, node)
|
|||
}
|
||||
|
||||
if (i + 1 < macro->paramc)
|
||||
*buffer++ = ',', *buffer++ = ' ';
|
||||
/* Don't emit a space after the comma here; we're trying
|
||||
to emit a Dwarf-friendly definition, and the Dwarf spec
|
||||
forbids spaces in the argument list. */
|
||||
*buffer++ = ',';
|
||||
else if (macro->variadic)
|
||||
*buffer++ = '.', *buffer++ = '.', *buffer++ = '.';
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue