Implement IT_END operator.
Add missing IT_LAST operator
This commit is contained in:
1 parent
c09ce9c949
commit
eaf3af8c07
6 files changed
+94
No files matched your search
@@ -60,6 +60,7 @@
|
||||
SUBTYPE(M_C3(list_type_,name,_t)), \
|
||||
IT_TYPE(M_C3(list_it_,name,_t)), \
|
||||
IT_FIRST(M_C3(list_,name,_it)), \
|
||||
IT_END(M_C3(list_,name,_it_end)), \
|
||||
IT_SET(M_C3(list_,name,_it_set)), \
|
||||
IT_END_P(M_C3(list_,name,_end_p)), \
|
||||
IT_EQUAL_P(M_C3(list_,name,_it_equal_p)), \
|
||||
@@ -222,6 +223,16 @@
|
||||
it1[0].previous = it2[0].previous; \
|
||||
} \
|
||||
\
|
||||
static inline void \
|
||||
M_C3(list_, name, _it_end)(M_C3(list_it_, name,_t) it1, \
|
||||
const M_C3(list_, name,_t) v) \
|
||||
{ \
|
||||
assert (it1 != NULL && v != NULL); \
|
||||
(void)v; /* unused */ \
|
||||
it1[0].l[0] = NULL; \
|
||||
it1[0].previous = NULL; \
|
||||
} \
|
||||
\
|
||||
static inline bool \
|
||||
M_C3(list_, name, _end_p)(const M_C3(list_it_, name,_t) v) \
|
||||
{ \
|
||||
|
||||
Reference in new issue
Block a user