fix indentation
authorBrian Paul <brian.paul@tungstengraphics.com>
Sat, 2 Oct 2004 15:56:50 +0000 (15:56 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Sat, 2 Oct 2004 15:56:50 +0000 (15:56 +0000)
src/mesa/shader/grammar.c

index fa2e96901d5441324346b982ab764ce7a8f6699f..47defd6bfa51965813d8116fc65631eb8e0c923a 100644 (file)
@@ -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