mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-03-23 03:01:30 +00:00
Trailing whitespace was imminent, pending editor configuration change to accomodate insanity.
This commit is contained in:
parent
21e992aa3a
commit
c1a85378d5
4 changed files with 11 additions and 11 deletions
2
Makefile
2
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
|
||||
|
|
16
asm.c
16
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;
|
||||
}
|
||||
|
|
2
code.c
2
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 */
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue