OSDN Git Service

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 fa2e969..47defd6 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