Update to ast* and related stuff
This commit is contained in:
parent
ea76333cf5
commit
9f41a868a7
15 changed files with 479 additions and 39 deletions
|
|
@ -27,7 +27,7 @@ t_error vec_C__PREFIX___find(t_vec_C__PREFIX__ *vec,
|
|||
idx = 0;
|
||||
while (idx < vec->len)
|
||||
{
|
||||
if (fn(&vec->buffer[idx]))
|
||||
if (fn((const C__TYPENAME__ *)&vec->buffer[idx]))
|
||||
{
|
||||
*index = idx;
|
||||
return (NO_ERROR);
|
||||
|
|
@ -48,7 +48,7 @@ t_error vec_C__PREFIX___find_starting(t_vec_C__PREFIX__ *vec,
|
|||
idx = starting_index;
|
||||
while (idx < vec->len)
|
||||
{
|
||||
if (fn(&vec->buffer[idx]))
|
||||
if (fn((const C__TYPENAME__ *)&vec->buffer[idx]))
|
||||
{
|
||||
*index = idx;
|
||||
return (NO_ERROR);
|
||||
|
|
@ -69,7 +69,7 @@ t_error vec_C__PREFIX___all(t_vec_C__PREFIX__ *vec,
|
|||
*result = true;
|
||||
while (*result && idx < vec->len)
|
||||
{
|
||||
if (!fn(&vec->buffer[idx]))
|
||||
if (!fn((const C__TYPENAME__ *)&vec->buffer[idx]))
|
||||
*result = false;
|
||||
idx++;
|
||||
}
|
||||
|
|
@ -87,7 +87,7 @@ t_error vec_C__PREFIX___any(t_vec_C__PREFIX__ *vec,
|
|||
*result = false;
|
||||
while (*result && idx < vec->len)
|
||||
{
|
||||
if (fn(&vec->buffer[idx]))
|
||||
if (fn((const C__TYPENAME__ *)&vec->buffer[idx]))
|
||||
*result = true;
|
||||
idx++;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue