diff options
author | Kenneth Graunke <kenneth@whitecape.org> | 2010-10-30 21:45:34 -0700 |
---|---|---|
committer | Kenneth Graunke <kenneth@whitecape.org> | 2010-11-03 13:39:41 -0700 |
commit | d2c23ac82a4038c0f69b6ce5b0c49f763a65df8a (patch) | |
tree | 8b8d5a53140e07714a418f84a590e5709022644f /src/glsl | |
parent | 6c4a83ca3ea9e51dd268be132fbc589f066cf257 (diff) |
glsl: Don't print a useless space at the end of an S-Expression list.
We really only want to print spaces -between- elements, not after each
element. This cleans up error messages from IR reader, making them
(mildly) easier to read.
Diffstat (limited to 'src/glsl')
-rw-r--r-- | src/glsl/s_expression.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/glsl/s_expression.cpp b/src/glsl/s_expression.cpp index 4458c48d6b..4c8829fea9 100644 --- a/src/glsl/s_expression.cpp +++ b/src/glsl/s_expression.cpp @@ -133,7 +133,8 @@ void s_list::print() foreach_iter(exec_list_iterator, it, this->subexpressions) { s_expression *expr = (s_expression*) it.get(); expr->print(); - printf(" "); + if (!expr->next->is_tail_sentinel()) + printf(" "); } printf(")"); } |