projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cbef8c4
)
fix indentation
author
Brian Paul
<brian.paul@tungstengraphics.com>
Sat, 2 Oct 2004 15:56:50 +0000
(15:56 +0000)
committer
Brian Paul
<brian.paul@tungstengraphics.com>
Sat, 2 Oct 2004 15:56:50 +0000
(15:56 +0000)
src/mesa/shader/grammar.c
patch
|
blob
|
history
diff --git
a/src/mesa/shader/grammar.c
b/src/mesa/shader/grammar.c
index fa2e96901d5441324346b982ab764ce7a8f6699f..47defd6bfa51965813d8116fc65631eb8e0c923a 100644
(file)
--- 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