From: Dale Weiler Date: Wed, 2 May 2012 22:03:17 +0000 (-0400) Subject: Trailing whitespace was imminent, pending editor configuration change to accomodate... X-Git-Tag: 0.1-rc1~511 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=c1a85378d59f14dd572e4173cb7e28a321a7dcbe;p=xonotic%2Fgmqcc.git Trailing whitespace was imminent, pending editor configuration change to accomodate insanity. --- diff --git a/Makefile b/Makefile index 949c42a..ea2a27f 100644 --- 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 adb7678..65199c9 100644 --- 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 4c35b32..89d7c8c 100644 --- 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 */ diff --git a/test/ast-test.c b/test/ast-test.c index 94cd82a..afe9007 100644 --- a/test/ast-test.c +++ b/test/ast-test.c @@ -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;