diff options
| author | Tyge Løvset <[email protected]> | 2023-01-05 15:12:52 +0100 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2023-01-05 15:12:52 +0100 |
| commit | 45bfcdc35788988f5c8b2b53a62f7fb8c5e1cf50 (patch) | |
| tree | a834aecc95006cfca2d6aa2c67c5db94d098fb76 /include/stc/clist.h | |
| parent | 1a98d0b660775f9a434197430905024519a0efbf (diff) | |
| download | STC-modified-45bfcdc35788988f5c8b2b53a62f7fb8c5e1cf50.tar.gz STC-modified-45bfcdc35788988f5c8b2b53a62f7fb8c5e1cf50.zip | |
Added clist_X_get_node(valptr) to complete the node API.
Diffstat (limited to 'include/stc/clist.h')
| -rw-r--r-- | include/stc/clist.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/stc/clist.h b/include/stc/clist.h index 6f5c44f3..37fa447a 100644 --- a/include/stc/clist.h +++ b/include/stc/clist.h @@ -110,11 +110,11 @@ STC_API _cx_value* _cx_memb(_push_node_back)(_cx_self* self, _cx_node* node STC_API _cx_value* _cx_memb(_insert_node_after)(_cx_self* self, _cx_node* ref, _cx_node* node); STC_API _cx_node* _cx_memb(_unlink_node_after)(_cx_self* self, _cx_node* ref); STC_API void _cx_memb(_erase_node_after)(_cx_self* self, _cx_node* ref); +STC_INLINE _cx_node* _cx_memb(_get_node)(_cx_value* vp) { return _clist_tonode(vp); } #if !defined i_no_clone STC_API _cx_self _cx_memb(_clone)(_cx_self cx); -STC_INLINE i_key _cx_memb(_value_clone)(i_key val) - { return i_keyclone(val); } +STC_INLINE i_key _cx_memb(_value_clone)(i_key val) { return i_keyclone(val); } STC_INLINE void _cx_memb(_copy)(_cx_self *self, const _cx_self* other) { if (self->last == other->last) return; |
