Update headers
This commit is contained in:
parent
c17edda61c
commit
9a34d1d71f
@ -17,6 +17,6 @@ extern ssize_t libcdsb_array_get(vtype_value* x, vtype_array* s, ssize_t index,
|
|||||||
extern ssize_t libcdsb_array_find(const vtype_array* x, const void* value, vtype value_type) LIBCDSB_nt__ LIBCDSB_nn1__;
|
extern ssize_t libcdsb_array_find(const vtype_array* x, const void* value, vtype value_type) LIBCDSB_nt__ LIBCDSB_nn1__;
|
||||||
extern ssize_t libcdsb_array_push( vtype_array* x, const void* value, vtype value_type) LIBCDSB_nt__ LIBCDSB_nn1__;
|
extern ssize_t libcdsb_array_push( vtype_array* x, const void* value, vtype value_type) LIBCDSB_nt__ LIBCDSB_nn1__;
|
||||||
|
|
||||||
extern int libcdsb_array_foreach(vtype_array* x, int (*callback)(void* value, ssize_t index, vtype type)) LIBCDSB_nt__ LIBCDSB_nn12__;
|
extern int libcdsb_array_foreach(const vtype_array* x, int (*callback)(void* value, ssize_t index, vtype type)) LIBCDSB_nt__ LIBCDSB_nn12__;
|
||||||
|
|
||||||
#endif /* LIBCDSB_EXTRA_ARRAY_H */
|
#endif /* LIBCDSB_EXTRA_ARRAY_H */
|
||||||
|
@ -9,10 +9,10 @@
|
|||||||
|
|
||||||
extern void vset_init(vtype_set* x, vtype type);
|
extern void vset_init(vtype_set* x, vtype type);
|
||||||
|
|
||||||
#define vset_remove(x, value) _LIBCDSB_Generic (libcdsb_vset, touch, key)(x, value, 1)
|
#define vset_remove(x, value) _LIBCDSB_Generic (libcdsb_vset, touch, value)(x, value, 1)
|
||||||
#define vset_push(x, value) _LIBCDSB_Generic (libcdsb_vset, push, key)(x, value)
|
#define vset_push(x, value) _LIBCDSB_Generic (libcdsb_vset, push, value)(x, value)
|
||||||
|
|
||||||
#define in_vset(x, value) _LIBCDSB_Generic (libcdsb_vset, touch, key)(x, value, 0)
|
#define in_vset(x, value) _LIBCDSB_Generic (libcdsb_vset, touch, value)(x, value, 0)
|
||||||
|
|
||||||
extern _Bool libcdsb_vset_push_pointer(vtype_set* x, const void* value);
|
extern _Bool libcdsb_vset_push_pointer(vtype_set* x, const void* value);
|
||||||
extern _Bool libcdsb_vset_push_cstring(vtype_set* x, const char* value);
|
extern _Bool libcdsb_vset_push_cstring(vtype_set* x, const char* value);
|
||||||
|
@ -76,7 +76,7 @@ ssize_t libcdsb_array_get(val_t* x, arr_t* s, ssize_t i, _Bool cut) {
|
|||||||
|
|
||||||
/*#####################################################################################################################*/
|
/*#####################################################################################################################*/
|
||||||
|
|
||||||
int libcdsb_array_foreach(vtype_array* x, int (*callback)(void* value, ssize_t index, vtype type)) {
|
int libcdsb_array_foreach(const vtype_array* x, int (*callback)(void* value, ssize_t index, vtype type)) {
|
||||||
|
|
||||||
void* p;
|
void* p;
|
||||||
void* e;
|
void* e;
|
||||||
|
Loading…
Reference in New Issue
Block a user