c99 bool adjustment to protoype
This commit is contained in:
parent
a850060335
commit
cb71ec84ea
@ -126,7 +126,7 @@ list_pop(struct List * l)
|
|||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
list_remove_if_true(struct List *l, int (*action) (Any_Type))
|
list_remove_if_true(struct List *l, bool (*action) (Any_Type))
|
||||||
{
|
{
|
||||||
struct Node *n = l->dummy_head;
|
struct Node *n = l->dummy_head;
|
||||||
|
|
||||||
|
@ -32,7 +32,7 @@
|
|||||||
#ifndef list_h
|
#ifndef list_h
|
||||||
#define list_h
|
#define list_h
|
||||||
|
|
||||||
typedef int (*list_action) (Any_Type);
|
typedef bool (*list_action) (Any_Type);
|
||||||
struct List;
|
struct List;
|
||||||
|
|
||||||
struct List *list_create();
|
struct List *list_create();
|
||||||
|
Loading…
Reference in New Issue
Block a user