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.
This commit is contained in:
@@ -133,7 +133,8 @@ void s_list::print()
|
|||||||
foreach_iter(exec_list_iterator, it, this->subexpressions) {
|
foreach_iter(exec_list_iterator, it, this->subexpressions) {
|
||||||
s_expression *expr = (s_expression*) it.get();
|
s_expression *expr = (s_expression*) it.get();
|
||||||
expr->print();
|
expr->print();
|
||||||
printf(" ");
|
if (!expr->next->is_tail_sentinel())
|
||||||
|
printf(" ");
|
||||||
}
|
}
|
||||||
printf(")");
|
printf(")");
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user