mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 20:28:04 +02:00
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:
parent
6c4a83ca3e
commit
d2c23ac82a
1 changed files with 2 additions and 1 deletions
|
|
@ -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(")");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue