]> git.xonotic.org Git - xonotic/gmqcc.git/commitdiff
Indentation
authorDale Weiler <killfieldengine@gmail.com>
Wed, 11 Apr 2012 07:57:16 +0000 (03:57 -0400)
committerDale Weiler <killfieldengine@gmail.com>
Wed, 11 Apr 2012 07:57:16 +0000 (03:57 -0400)
gmqcc.h

diff --git a/gmqcc.h b/gmqcc.h
index 0e29bc09c0c9d90457ce0cc3de18a4fa9b640d31..7c32c48779a0a6319609886065b914582766766b 100644 (file)
--- a/gmqcc.h
+++ b/gmqcc.h
@@ -125,26 +125,26 @@ char *util_strdup  (const char *);
 #endif
 
 #define VECTOR_MAKE(T,N)                                                 \
-       T*     N##_data      = NULL;                                         \
-       long   N##_elements  = 0;                                            \
-       long   N##_allocated = 0;                                            \
-       int    N##_add(T element) {                                          \
-               if (N##_elements == N##_allocated) {                             \
-                       if (N##_allocated == 0) {                                    \
-                               N##_allocated = 12;                                      \
-                       } else {                                                     \
-                               N##_allocated *= 2;                                      \
-                       }                                                            \
-                       void *temp = realloc(N##_data, (N##_allocated * sizeof(T))); \
-                       if  (!temp) {                                                \
-                               free(temp);                                              \
-                               return -1;                                               \
-                       }                                                            \
-                       N##_data = (T*)temp;                                         \
-               }                                                                \
-               N##_data[N##_elements] = element;                                \
-               return   N##_elements++;                                         \
-       }
+    T*     N##_data      = NULL;                                         \
+    long   N##_elements  = 0;                                            \
+    long   N##_allocated = 0;                                            \
+    int    N##_add(T element) {                                          \
+        if (N##_elements == N##_allocated) {                             \
+            if (N##_allocated == 0) {                                    \
+                N##_allocated = 12;                                      \
+            } else {                                                     \
+                N##_allocated *= 2;                                      \
+            }                                                            \
+            void *temp = realloc(N##_data, (N##_allocated * sizeof(T))); \
+            if  (!temp) {                                                \
+                free(temp);                                              \
+                return -1;                                               \
+            }                                                            \
+            N##_data = (T*)temp;                                         \
+        }                                                                \
+        N##_data[N##_elements] = element;                                \
+        return   N##_elements++;                                         \
+    }
 
 //===================================================================
 //=========================== code.c ================================