Fix another Blub bug .. learn to use comments properly :P

This commit is contained in:
Dale Weiler 2012-12-28 12:54:20 +00:00
parent 3688dab048
commit cb12460b95
4 changed files with 9 additions and 8 deletions

2
code.c
View file

@ -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
View file

@ -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)

View file

@ -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
View file

@ -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.