mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-03-22 10:41:43 +00:00
Fix another Blub bug .. learn to use comments properly :P
This commit is contained in:
parent
3688dab048
commit
cb12460b95
4 changed files with 9 additions and 8 deletions
2
code.c
2
code.c
|
@ -53,7 +53,7 @@ void code_pop_statement()
|
|||
}
|
||||
|
||||
void code_init() {
|
||||
prog_section_function empty_function = {0,0,0,0,0,0,0,{0}};
|
||||
prog_section_function empty_function = {0,0,0,0,0,0,0,{0,0,0,0,0,0,0,0}};
|
||||
prog_section_statement empty_statement = {0,{0},{0},{0}};
|
||||
prog_section_def empty_def = {0, 0, 0};
|
||||
int i = 0;
|
||||
|
|
4
ir.c
4
ir.c
|
@ -2481,7 +2481,9 @@ static bool ir_block_life_propagate(ir_block *self, ir_block *prev, bool *change
|
|||
size_t i, o, p, mem;
|
||||
/* bitmasks which operands are read from or written to */
|
||||
size_t read, write;
|
||||
char dbg_ind[16] = { '#', '0' };
|
||||
char dbg_ind[16];
|
||||
dbg_ind[0] = '#';
|
||||
dbg_ind[1] = '0';
|
||||
(void)dbg_ind;
|
||||
|
||||
if (prev)
|
||||
|
|
|
@ -63,7 +63,6 @@ FLAGS_MAYBE="\
|
|||
#these don't need to be here to onhibit the warning
|
||||
# remove one flag from here at a time while fixing the code so that
|
||||
FLAGS_TOFIX="\
|
||||
-initallelements \
|
||||
-castfcnptr \
|
||||
-evalorder"
|
||||
|
||||
|
|
10
utf8.c
10
utf8.c
|
@ -47,11 +47,11 @@ static unsigned char utf8_lengths[256] = {
|
|||
};
|
||||
|
||||
static uchar_t utf8_range[5] = {
|
||||
1, /* invalid - let's not allow the creation of 0-bytes :P
|
||||
1, * ascii minimum
|
||||
0x80, * 2-byte minimum
|
||||
0x800, * 3-byte minimum
|
||||
0x10000, * 4-byte minimum */
|
||||
1, /* invalid - let's not allow the creation of 0-bytes :P */
|
||||
1, /* ascii minimum */
|
||||
0x80, /* 2-byte minimum */
|
||||
0x800, /* 3-byte minimum */
|
||||
0x10000, /* 4-byte minimum */
|
||||
};
|
||||
|
||||
/** Analyze the next character and return various information if requested.
|
||||
|
|
Loading…
Reference in a new issue