summaryrefslogtreecommitdiffhomepage
path: root/stc/cstack.h
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2020-09-17 18:37:34 +0200
committerTyge Løvset <[email protected]>2020-09-17 18:37:34 +0200
commit692ab82818e2d65177e06d7717d9184b7bc27ff1 (patch)
tree0f59d93da6d579a68c7247434cab6e6e615e5b4a /stc/cstack.h
parent92edcbf8da88b1e59c7724f2875e9e9df3383cb1 (diff)
downloadSTC-modified-692ab82818e2d65177e06d7717d9184b7bc27ff1.tar.gz
STC-modified-692ab82818e2d65177e06d7717d9184b7bc27ff1.zip
Fixed range methods in cvec, and renamed typename_<container>(..) to using_<container>(..).
Diffstat (limited to 'stc/cstack.h')
-rw-r--r--stc/cstack.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/stc/cstack.h b/stc/cstack.h
index f6a5777e..0d914445 100644
--- a/stc/cstack.h
+++ b/stc/cstack.h
@@ -26,8 +26,8 @@
#include <stc/cstack.h>
#include <stdio.h>
- typedef_cvec(i, int);
- typedef_cstack(i, cvec_i);
+ using_cvec(i, int);
+ using_cstack(i, cvec_i);
int main() {
cstack_i stack = cstack_i_init();
@@ -47,7 +47,7 @@
#include "cvec.h"
-#define typedef_cstack(X, ctype) \
+#define using_cstack(X, ctype) \
\
typedef struct ctype cstack_##X; \
typedef ctype##_value_t cstack_##X##_value_t; \