]> git.xonotic.org Git - xonotic/gmqcc.git/commitdiff
Trailing whitespace was imminent, pending editor configuration change to accomodate...
authorDale Weiler <killfieldengine@gmail.com>
Wed, 2 May 2012 22:03:17 +0000 (18:03 -0400)
committerDale Weiler <killfieldengine@gmail.com>
Wed, 2 May 2012 22:03:17 +0000 (18:03 -0400)
Makefile
asm.c
code.c
test/ast-test.c

index 949c42abff0d4eb3d114633157c24101142147a3..ea2a27f2cf7b1b4936c9d11f8b2d721a6b947d6b 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -8,7 +8,7 @@ OBJ     = lex.o       \
           code.o      \
           asm.o       \
           ast.o       \
-          ir.o        
+          ir.o 
 OBJ_A = test/ast-test.o
 OBJ_I = test/ir-test.o
 OBJ_C = main.o
diff --git a/asm.c b/asm.c
index adb7678abd0a43653b2a3c164347a84a221fe559..65199c9b84e11a4e135633c926fab7abbca29d2f 100644 (file)
--- a/asm.c
+++ b/asm.c
@@ -263,7 +263,7 @@ static GMQCC_INLINE bool asm_parse_func(const char *skip, size_t line, asm_state
             code_defs_add     (def);
             code_chars_put    (name, strlen(name));
             code_chars_add    ('\0');
-            
+
             util_debug("ASM", "added internal function %s to function table\n", name);
 
             /*
@@ -287,7 +287,7 @@ static GMQCC_INLINE bool asm_parse_func(const char *skip, size_t line, asm_state
             int   size = 0;
             char *find = strchr(name, '#');
             char *peek = find;
-            
+
             /*
              * Code structures for filling after determining the correct
              * information to add to the code write system.
@@ -396,11 +396,11 @@ static GMQCC_INLINE bool asm_parse_func(const char *skip, size_t line, asm_state
             code_chars_add    ('\0');
 
             /* update assembly state */
-            
+
             *state = ASM_FUNCTION;
             util_debug("ASM", "added context function %s to function table\n", name);
         }
-        
+
         mem_d(copy);
         mem_d(name);
         return true;
@@ -436,7 +436,7 @@ static GMQCC_INLINE bool asm_parse_stmt(const char *skip, size_t line, asm_state
      */
     while (*skip == ' ' || *skip == '\t')
         skip++;
-    
+
     for (; i < sizeof(asm_instr)/sizeof(*asm_instr); i++) {
         /*
          * Iterate all possible instructions and check if the selected
@@ -456,7 +456,7 @@ static GMQCC_INLINE bool asm_parse_stmt(const char *skip, size_t line, asm_state
                  * Each instruction can have from 0-3 operands; and can
                  * be used with less or more operands depending on it's
                  * selected use.
-                 * 
+                 *
                  * DONE for example can use either 0 operands, or 1 (to
                  * emulate the effect of RETURN)
                  *
@@ -485,7 +485,7 @@ static GMQCC_INLINE bool asm_parse_stmt(const char *skip, size_t line, asm_state
                        *c  = '\0';                                     \
                         c  = (char*)skip;                              \
                     } while (0)
-                    
+
                 case 3: {
                     const char *data; OPFILL(data);
                     printf("OP3: %s\n", data);
@@ -500,7 +500,7 @@ static GMQCC_INLINE bool asm_parse_stmt(const char *skip, size_t line, asm_state
                     while (*c == ' ' || *c == '\t') c++;
                     c += asm_instr[i].l;
                     while (*c == ' ' || *c == '\t') c++;
-                    
+
                     printf("OP1: %s\n", c);
                     s.o1.s1 = 0;
                 }
diff --git a/code.c b/code.c
index 4c35b32843d34a399b8b9f2aba5b1d4757f9a452..89d7c8cd0d72761c16e5d7975d319e6c6bb25c5f 100644 (file)
--- a/code.c
+++ b/code.c
@@ -224,7 +224,7 @@ void code_write() {
             code_functions_data[it].argsize[5],
             code_functions_data[it].argsize[6],
             code_functions_data[it].argsize[7]
-            
+
         );
         util_debug("GEN", "    NAME: %s\n", &code_chars_data[code_functions_data[it].name]);
         /* Internal functions have no code */
index 94cd82ac138c95705f85d3d0c25d53a5b95620de..afe90077190b2ab3a8ee102bbe4b7214f2483d29 100644 (file)
@@ -23,7 +23,7 @@ int main()
     ast_function   *fmain   = NULL;
     ast_block      *ba      = NULL;
     ast_value      *li      = NULL;
-    
+
     size_t i;
     lex_ctx ctx;
     ctx.file = NULL;