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/cstack.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/cstack.h')
| -rw-r--r-- | stc/cstack.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/stc/cstack.h b/stc/cstack.h index 170e6f45..45abd596 100644 --- a/stc/cstack.h +++ b/stc/cstack.h @@ -53,12 +53,14 @@ typedef ctype##_input_t cstack_##X##_input_t; \
STC_INLINE cstack_##X \
cstack_##X##_init(void) {return ctype##_init();} \
+ STC_INLINE cstack_##X \
+ cstack_##X##_clone(cstack_##X st) {return ctype##_clone(st);} \
STC_INLINE void \
cstack_##X##_del(cstack_##X* self) {ctype##_del(self);} \
STC_INLINE size_t \
- cstack_##X##_size(cstack_##X pq) {return ctype##_size(pq);} \
+ cstack_##X##_size(cstack_##X st) {return ctype##_size(st);} \
STC_INLINE bool \
- cstack_##X##_empty(cstack_##X pq) {return ctype##_empty(pq);} \
+ cstack_##X##_empty(cstack_##X st) {return ctype##_empty(st);} \
STC_INLINE cstack_##X##_value_t* \
cstack_##X##_top(cstack_##X* self) {return ctype##_back(self);} \
STC_INLINE void \
|
