summaryrefslogtreecommitdiffhomepage
path: root/include/stc
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2022-10-20 21:28:00 +0200
committerTyge Løvset <[email protected]>2022-10-20 21:28:00 +0200
commit4694e23046f3692f7e4b857f8ea8a8ffd0374dbf (patch)
tree21c9c861ee701c6a5f9f5e6d165cf55d98845c2f /include/stc
parentb40ca18d43d31f997f64de6168ada58c7dfad9b9 (diff)
downloadSTC-modified-4694e23046f3692f7e4b857f8ea8a8ffd0374dbf.tar.gz
STC-modified-4694e23046f3692f7e4b857f8ea8a8ffd0374dbf.zip
Fixed previous commit, and city.c example.
Diffstat (limited to 'include/stc')
-rw-r--r--include/stc/carc.h4
-rw-r--r--include/stc/cbox.h4
-rw-r--r--include/stc/template.h2
3 files changed, 5 insertions, 5 deletions
diff --git a/include/stc/carc.h b/include/stc/carc.h
index 94dc9bd6..4b9cc875 100644
--- a/include/stc/carc.h
+++ b/include/stc/carc.h
@@ -78,10 +78,10 @@ int main() {
#ifndef _i_prefix
#define _i_prefix carc_
#endif
-#if !(defined i_cmp || defined i_less || defined i_val_class)
+#if !(defined i_cmp || defined i_less || defined i_key_class || defined i_val_class)
#define _i_no_cmp
#endif
-#if !(defined i_eq || defined i_hash || defined i_val_class)
+#if !(defined i_eq || defined i_hash || defined i_key_class || defined i_val_class)
#define _i_no_hash
#endif
#include "template.h"
diff --git a/include/stc/cbox.h b/include/stc/cbox.h
index f31c5feb..651abf4b 100644
--- a/include/stc/cbox.h
+++ b/include/stc/cbox.h
@@ -70,10 +70,10 @@ int main() {
#ifndef _i_prefix
#define _i_prefix cbox_
#endif
-#if !(defined i_cmp || defined i_less || defined i_val_class)
+#if !(defined i_cmp || defined i_less || defined i_key_class || defined i_val_class)
#define _i_no_cmp
#endif
-#if !(defined i_eq || defined i_hash || defined i_val_class)
+#if !(defined i_eq || defined i_hash || defined i_key_class || defined i_val_class)
#define _i_no_hash
#endif
#include "template.h"
diff --git a/include/stc/template.h b/include/stc/template.h
index 000b516e..4e954b46 100644
--- a/include/stc/template.h
+++ b/include/stc/template.h
@@ -142,7 +142,7 @@
#ifndef i_cmp
#define i_cmp c_paste(i_keyraw, _cmp)
#endif
- #if !defined i_hash
+ #ifndef i_hash
#define i_hash c_paste(i_keyraw, _hash)
#endif
#endif