update: Updated stuff so the scanner works great now
This commit is contained in:
parent
88c34b3904
commit
475038e2b7
21 changed files with 787 additions and 340 deletions
|
|
@ -35,10 +35,10 @@ fs/fs_internal \
|
|||
fs/getters \
|
||||
fs/putfd \
|
||||
gnl/get_next_line \
|
||||
hash/hasher \
|
||||
hash/hash_signed \
|
||||
hash/hash_str \
|
||||
hash/hash_unsigned \
|
||||
hash/hasher \
|
||||
hash/sip/sip13 \
|
||||
hash/sip/sip_utils \
|
||||
hash/sip/sip_utils2 \
|
||||
|
|
@ -86,10 +86,6 @@ printf/printf \
|
|||
printf/printf_fd \
|
||||
printf/printf_str \
|
||||
printf/vprintf \
|
||||
string/mod \
|
||||
string/string_insert \
|
||||
string/string_remove \
|
||||
string/string_reserve \
|
||||
str/str_clone \
|
||||
str/str_compare \
|
||||
str/str_find_chr \
|
||||
|
|
@ -106,6 +102,10 @@ str/str_n_find_str \
|
|||
str/str_split \
|
||||
str/str_substring \
|
||||
str/str_trim \
|
||||
string/mod \
|
||||
string/string_insert \
|
||||
string/string_remove \
|
||||
string/string_reserve \
|
||||
|
||||
GEN_FILES = \
|
||||
convert/i16_to_str \
|
||||
|
|
|
|||
|
|
@ -65,11 +65,9 @@ t_error vec_C__PREFIX___pop(t_vec_C__PREFIX__ *vec, C__TYPENAME__ *value)
|
|||
C__TYPENAME__ temp_value;
|
||||
C__TYPENAME__ *ptr;
|
||||
|
||||
if (vec == NULL)
|
||||
if (vec == NULL || vec->len == 0)
|
||||
return (ERROR);
|
||||
ptr = value;
|
||||
if (vec->len == 0)
|
||||
return (ERROR);
|
||||
if (value == NULL)
|
||||
ptr = &temp_value;
|
||||
vec->len--;
|
||||
|
|
|
|||
|
|
@ -17,9 +17,11 @@
|
|||
|
||||
C__TYPENAME__ *vec_C__PREFIX___get(t_vec_C__PREFIX__ *vec, t_usize i)
|
||||
{
|
||||
if (vec == NULL || vec->len >= i)
|
||||
if (vec == NULL || vec->buffer == NULL)
|
||||
return (NULL);
|
||||
return (&vec->buffer[i]);
|
||||
if (i < vec->len)
|
||||
return (&vec->buffer[i]);
|
||||
return (NULL);
|
||||
}
|
||||
|
||||
C__TYPENAME__ *vec_C__PREFIX___last(t_vec_C__PREFIX__ *vec)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue