cpphash.c (dump_hash_helper): Only dump nodes of type T_MACRO.

* cpphash.c (dump_hash_helper): Only dump nodes of type
	T_MACRO.  Emit a newline after each definition.

From-SVN: r32518
This commit is contained in:
Zack Weinberg 2000-03-14 06:10:27 +00:00 committed by Zack Weinberg
parent c2952b018a
commit 194ae3f644
2 changed files with 10 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2000-03-13 Zack Weinberg <zack@wolery.cumb.org>
* cpphash.c (dump_hash_helper): Only dump nodes of type
T_MACRO. Emit a newline after each definition.
2000-03-14 Martin v. Löwis <loewis@informatik.hu-berlin.de>
* gccbug.in: New file.

View File

@ -1727,7 +1727,11 @@ dump_hash_helper (h, p)
HASHNODE *hp = (HASHNODE *)h;
cpp_reader *pfile = (cpp_reader *)p;
_cpp_dump_definition (pfile, hp->name, hp->length, hp->value.defn);
if (hp->type == T_MACRO)
{
_cpp_dump_definition (pfile, hp->name, hp->length, hp->value.defn);
CPP_PUTC (pfile, '\n');
}
return 1;
}