summaryrefslogtreecommitdiffhomepage
path: root/stc/cqueue.h
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2020-09-10 10:05:27 +0200
committerTyge Løvset <[email protected]>2020-09-10 10:05:27 +0200
commit07bb3643447806fed65329ca4a0da0460bf7e7b9 (patch)
tree96c31b3c54ab9ad35a74a62fb533f4591de8ba4f /stc/cqueue.h
parentb21ca36c05906ca97bb9402531640ea6d6f7a40f (diff)
downloadSTC-modified-07bb3643447806fed65329ca4a0da0460bf7e7b9.tar.gz
STC-modified-07bb3643447806fed65329ca4a0da0460bf7e7b9.zip
Reformatting only.
Diffstat (limited to 'stc/cqueue.h')
-rw-r--r--stc/cqueue.h84
1 files changed, 42 insertions, 42 deletions
diff --git a/stc/cqueue.h b/stc/cqueue.h
index 33e2da88..8e6d7096 100644
--- a/stc/cqueue.h
+++ b/stc/cqueue.h
@@ -59,47 +59,47 @@
#include "clist.h"
#define declare_cqueue(X, ctype) \
- \
-typedef struct ctype cqueue_##X; \
-typedef ctype##_value_t cqueue_##X##_value_t; \
-typedef ctype##_rawvalue_t cqueue_##X##_rawvalue_t; \
-typedef ctype##_input_t cqueue_##X##_input_t; \
-STC_INLINE cqueue_##X \
-cqueue_##X##_init() {return ctype##_init();} \
-STC_INLINE void \
-cqueue_##X##_destroy(cqueue_##X* self) {ctype##_destroy(self);} \
-STC_INLINE size_t \
-cqueue_##X##_size(cqueue_##X pq) {return ctype##_size(pq);} \
-STC_INLINE bool \
-cqueue_##X##_empty(cqueue_##X pq) {return ctype##_empty(pq);} \
-STC_INLINE cqueue_##X##_value_t* \
-cqueue_##X##_front(cqueue_##X* self) {return ctype##_front(self);} \
-STC_INLINE cqueue_##X##_value_t* \
-cqueue_##X##_back(cqueue_##X* self) {return ctype##_back(self);} \
-STC_INLINE void \
-cqueue_##X##_pop(cqueue_##X* self) {ctype##_pop_front(self);} \
-STC_API void \
-cqueue_##X##_push(cqueue_##X* self, ctype##_value_t value) { \
- ctype##_push_back(self, value); \
-} \
-STC_INLINE void \
-cqueue_##X##_emplace(cqueue_##X* self, cqueue_##X##_rawvalue_t rawValue) { \
- ctype##_emplace_back(self, rawValue); \
-} \
-STC_API void \
-cqueue_##X##_push_n(cqueue_##X *self, const cqueue_##X##_input_t in[], size_t size) { \
- ctype##_push_n(self, in, size); \
-} \
-typedef ctype##_iter_t cqueue_##X##_iter_t; \
-STC_INLINE cqueue_##X##_iter_t \
-cqueue_##X##_begin(cqueue_##X* self) {return ctype##_begin(self);} \
-STC_INLINE cqueue_##X##_iter_t \
-cqueue_##X##_end(cqueue_##X* self) {return ctype##_end(self);} \
-STC_INLINE void \
-cqueue_##X##_next(cqueue_##X##_iter_t* it) {ctype##_next(it);} \
-STC_INLINE cqueue_##X##_value_t* \
-cqueue_##X##_itval(cqueue_##X##_iter_t it) {return ctype##_itval(it);} \
- \
-typedef int cqueue_##X##_dud
+\
+ typedef struct ctype cqueue_##X; \
+ typedef ctype##_value_t cqueue_##X##_value_t; \
+ typedef ctype##_rawvalue_t cqueue_##X##_rawvalue_t; \
+ typedef ctype##_input_t cqueue_##X##_input_t; \
+ STC_INLINE cqueue_##X \
+ cqueue_##X##_init() {return ctype##_init();} \
+ STC_INLINE void \
+ cqueue_##X##_destroy(cqueue_##X* self) {ctype##_destroy(self);} \
+ STC_INLINE size_t \
+ cqueue_##X##_size(cqueue_##X pq) {return ctype##_size(pq);} \
+ STC_INLINE bool \
+ cqueue_##X##_empty(cqueue_##X pq) {return ctype##_empty(pq);} \
+ STC_INLINE cqueue_##X##_value_t* \
+ cqueue_##X##_front(cqueue_##X* self) {return ctype##_front(self);} \
+ STC_INLINE cqueue_##X##_value_t* \
+ cqueue_##X##_back(cqueue_##X* self) {return ctype##_back(self);} \
+ STC_INLINE void \
+ cqueue_##X##_pop(cqueue_##X* self) {ctype##_pop_front(self);} \
+ STC_API void \
+ cqueue_##X##_push(cqueue_##X* self, ctype##_value_t value) { \
+ ctype##_push_back(self, value); \
+ } \
+ STC_INLINE void \
+ cqueue_##X##_emplace(cqueue_##X* self, cqueue_##X##_rawvalue_t rawValue) { \
+ ctype##_emplace_back(self, rawValue); \
+ } \
+ STC_API void \
+ cqueue_##X##_push_n(cqueue_##X *self, const cqueue_##X##_input_t in[], size_t size) { \
+ ctype##_push_n(self, in, size); \
+ } \
+ typedef ctype##_iter_t cqueue_##X##_iter_t; \
+ STC_INLINE cqueue_##X##_iter_t \
+ cqueue_##X##_begin(cqueue_##X* self) {return ctype##_begin(self);} \
+ STC_INLINE cqueue_##X##_iter_t \
+ cqueue_##X##_end(cqueue_##X* self) {return ctype##_end(self);} \
+ STC_INLINE void \
+ cqueue_##X##_next(cqueue_##X##_iter_t* it) {ctype##_next(it);} \
+ STC_INLINE cqueue_##X##_value_t* \
+ cqueue_##X##_itval(cqueue_##X##_iter_t it) {return ctype##_itval(it);} \
+\
+ typedef int cqueue_##X##_dud
#endif