summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2021-09-30 09:04:49 +0200
committerTyge Løvset <[email protected]>2021-09-30 09:04:49 +0200
commitcb6cc689516c1adf2b22860ca62e508a3618e3d8 (patch)
tree3455a36c4d7aa6a5cd633c80be8dbcb36915af21 /include
parent3624d34fabaa388e018f907a42ecfd014d96b704 (diff)
downloadSTC-modified-cb6cc689516c1adf2b22860ca62e508a3618e3d8.tar.gz
STC-modified-cb6cc689516c1adf2b22860ca62e508a3618e3d8.zip
More cleanup. i_fwd is rarely needed, so removed F_tag. Use i_fwd define flag instead.
Diffstat (limited to 'include')
-rw-r--r--include/stc/cvec.h3
-rw-r--r--include/stc/template.h5
2 files changed, 2 insertions, 6 deletions
diff --git a/include/stc/cvec.h b/include/stc/cvec.h
index 04618fb2..11de465c 100644
--- a/include/stc/cvec.h
+++ b/include/stc/cvec.h
@@ -38,7 +38,8 @@ struct MyStruct {
#define i_val_str // special for cstr
#include <stc/cvec.h>
-#define F_tag i32 // forward declared above; shorthand for i_fwd
+#define i_fwd // forward declared
+#define i_tag i32
#define i_val int
#include <stc/cvec.h>
diff --git a/include/stc/template.h b/include/stc/template.h
index 0faf6950..cecf9790 100644
--- a/include/stc/template.h
+++ b/include/stc/template.h
@@ -47,10 +47,6 @@
#error if i_keyraw or i_keyto defined, i_keyfrom a must be defined
#endif
-#ifdef F_tag
- #define i_tag F_tag
- #define i_fwd
-#endif
#ifdef i_cnt
#define i_tag i_cnt
#undef i_prefix
@@ -166,7 +162,6 @@
#undef i_prefix
#undef i_tag
-#undef F_tag
#undef i_imp
#undef i_fwd
#undef i_cmp