diff options
| author | Tyge Løvset <[email protected]> | 2020-12-08 20:20:52 +0100 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2020-12-08 20:20:52 +0100 |
| commit | bfd7248535ee2bc6c067cb56894966968dc1ee82 (patch) | |
| tree | 2496237e6905492e1d36ea9d4bddc540675ddb02 /stc/cqueue.h | |
| parent | c9456324d1122d0c6135db8f2feda1913dd2cf69 (diff) | |
| download | STC-modified-bfd7248535ee2bc6c067cb56894966968dc1ee82.tar.gz STC-modified-bfd7248535ee2bc6c067cb56894966968dc1ee82.zip | |
Added clone() to stack, cpqueue and queue.
Renamed erase_at() to erase_n() in cvec and cstr to improve consistency.
Diffstat (limited to 'stc/cqueue.h')
| -rw-r--r-- | stc/cqueue.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/stc/cqueue.h b/stc/cqueue.h index e0a34636..7ad87c62 100644 --- a/stc/cqueue.h +++ b/stc/cqueue.h @@ -64,12 +64,14 @@ typedef ctype##_input_t cqueue_##X##_input_t; \
STC_INLINE cqueue_##X \
cqueue_##X##_init(void) {return ctype##_init();} \
+ STC_INLINE cqueue_##X \
+ cqueue_##X##_clone(cqueue_##X q) {return ctype##_clone(q);} \
STC_INLINE void \
cqueue_##X##_del(cqueue_##X* self) {ctype##_del(self);} \
STC_INLINE size_t \
- cqueue_##X##_size(cqueue_##X pq) {return ctype##_size(pq);} \
+ cqueue_##X##_size(cqueue_##X q) {return ctype##_size(q);} \
STC_INLINE bool \
- cqueue_##X##_empty(cqueue_##X pq) {return ctype##_empty(pq);} \
+ cqueue_##X##_empty(cqueue_##X q) {return ctype##_empty(q);} \
STC_INLINE cqueue_##X##_value_t* \
cqueue_##X##_front(cqueue_##X* self) {return ctype##_front(self);} \
STC_INLINE cqueue_##X##_value_t* \
|
