Fix and clean up listing of macro expansion
commit3736895c07537856b3ce035258485dd5cfd8af9a
authorH. Peter Anvin <hpa@linux.intel.com>
Mon, 9 May 2016 21:10:32 +0000 (9 14:10 -0700)
committerH. Peter Anvin <hpa@linux.intel.com>
Mon, 9 May 2016 21:10:32 +0000 (9 14:10 -0700)
treee0ebc3789bde22bf1281c04ba78d71e5f94e5bf2
parent4def1a8db462548f60b3b5b44c2ee585c21af9e0
Fix and clean up listing of macro expansion

Fix the printing of the macro stack: we need to follow the
mstk->next_active list, not mstk->next, and we need to reverse the
order so that the highest-level inclusion comes first.

Since this should be a rare or at least performance-insensitive
operation, do it using simple function recursion.

Finally, add an ellipsis before the "from macro" message; it greatly
enhances readability.

Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
preproc.c
test/macroerr.asm