Another fix for stdbool types

This commit is contained in:
c9s 2015-11-17 21:43:10 +08:00
parent 1f1ab15cdd
commit ef55fb9cdb

View file

@ -48,12 +48,12 @@ bool str_array_resize(str_array * l, int new_cap) {
bool str_array_append(str_array * l, char * token) { bool str_array_append(str_array * l, char * token) {
if ( str_array_is_full(l) ) { if ( str_array_is_full(l) ) {
bool ret = str_array_resize(l, l->cap + 20); bool ret = str_array_resize(l, l->cap + 20);
if (ret == FALSE ) { if (ret == false ) {
return FALSE; return false;
} }
} }
l->tokens[ l->len++ ] = token; l->tokens[ l->len++ ] = token;
return TRUE; return true;
} }
void str_array_dump(const str_array *l) { void str_array_dump(const str_array *l) {