Another fix for stdbool types
This commit is contained in:
parent
1f1ab15cdd
commit
ef55fb9cdb
1 changed files with 3 additions and 3 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue