summaryrefslogtreecommitdiffhomepage
path: root/stc/cpqueue.h
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2020-09-16 09:59:18 +0200
committerTyge Løvset <[email protected]>2020-09-16 09:59:18 +0200
commit47b5b5ce53ed4607bf557e2b53a1286bc8041e94 (patch)
tree71219fd9554c957b4e120d34096318fc11f8fc80 /stc/cpqueue.h
parentd3d68271e1c4ff0f56d06730f79349197f46850c (diff)
downloadSTC-modified-47b5b5ce53ed4607bf557e2b53a1286bc8041e94.tar.gz
STC-modified-47b5b5ce53ed4607bf557e2b53a1286bc8041e94.zip
Changed earlier declare_<container>(..) macro to typedef_<container>(..)
Diffstat (limited to 'stc/cpqueue.h')
-rw-r--r--stc/cpqueue.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/stc/cpqueue.h b/stc/cpqueue.h
index e65c67e0..7b2a02ad 100644
--- a/stc/cpqueue.h
+++ b/stc/cpqueue.h
@@ -25,8 +25,8 @@
#include <stc/crandom.h>
#include <stc/cpqueue.h>
- c_cvec(f, float);
- c_cpqueue(f, cvec_f, >); // min-heap (increasing values)
+ typedef_cvec(f, float);
+ typedef_cpqueue(f, cvec_f, >); // min-heap (increasing values)
int main() {
crand_rng32_t gen = crand_rng32_init(1234);
@@ -50,7 +50,7 @@
#include "cvec.h"
-#define c_cpqueue(X, ctype, cmpOpr) /* cmpOpr: < or > */ \
+#define typedef_cpqueue(X, ctype, cmpOpr) /* cmpOpr: < or > */ \
\
typedef struct ctype cpqueue_##X; \
typedef ctype##_value_t cpqueue_##X##_value_t; \