summaryrefslogtreecommitdiffstats
path: root/src/mesa/shader
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa/shader')
-rw-r--r--src/mesa/shader/grammar.c18
1 files changed, 6 insertions, 12 deletions
diff --git a/src/mesa/shader/grammar.c b/src/mesa/shader/grammar.c
index fa2e96901d5..47defd6bfa5 100644
--- a/src/mesa/shader/grammar.c
+++ b/src/mesa/shader/grammar.c
@@ -2771,29 +2771,23 @@ void grammar_get_last_error (byte *text, unsigned int size, int *pos)
}\
}
- if (p)
- {
- while (*p)
- {
- if (*p == '$')
- {
+ if (p) {
+ while (*p) {
+ if (*p == '$') {
const byte *r = error_param;
- while (*r)
- {
+ while (*r) {
APPEND_CHARACTER(*r)
r++;
}
-
p++;
}
- else
- {
+ else {
APPEND_CHARACTER(*p)
p++;
}
- }
}
+ }
*pos = error_position;
#undef APPEND_CHARACTER