projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6c4a83c
)
glsl: Don't print a useless space at the end of an S-Expression list.
author
Kenneth Graunke
<kenneth@whitecape.org>
Sun, 31 Oct 2010 04:45:34 +0000
(21:45 -0700)
committer
Kenneth Graunke
<kenneth@whitecape.org>
Wed, 3 Nov 2010 20:39:41 +0000
(13:39 -0700)
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.
src/glsl/s_expression.cpp
patch
|
blob
|
history
diff --git
a/src/glsl/s_expression.cpp
b/src/glsl/s_expression.cpp
index 4458c48d6baecee06c7aff6e1123dc0f59dc5fe4..4c8829fea9ac62e90d617c01feb81387bb2a1f13 100644
(file)
--- 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(")");
}