summaryrefslogtreecommitdiffhomepage
path: root/misc/examples/sortedmaps
diff options
context:
space:
mode:
authortylov <[email protected]>2023-08-10 22:32:02 +0200
committertylov <[email protected]>2023-08-10 22:32:02 +0200
commit2ea55509f1d3c7b438340ad37cf725e8438c7673 (patch)
tree539975c90da5fe20395adb4fe7627b787040daa5 /misc/examples/sortedmaps
parent97898812b4c0185db74fc5c94c7556ecef3fb1e3 (diff)
parentbe5651c9fc3d3ecd2d9d24e6e4763260ef86de41 (diff)
downloadSTC-modified-2ea55509f1d3c7b438340ad37cf725e8438c7673.tar.gz
STC-modified-2ea55509f1d3c7b438340ad37cf725e8438c7673.zip
Merge branch 'master' of https://github.com/stclib/STC
Diffstat (limited to 'misc/examples/sortedmaps')
-rw-r--r--misc/examples/sortedmaps/csmap_insert.c1
-rw-r--r--misc/examples/sortedmaps/multimap.c1
2 files changed, 1 insertions, 1 deletions
diff --git a/misc/examples/sortedmaps/csmap_insert.c b/misc/examples/sortedmaps/csmap_insert.c
index c9f02891..04b8ddc6 100644
--- a/misc/examples/sortedmaps/csmap_insert.c
+++ b/misc/examples/sortedmaps/csmap_insert.c
@@ -13,7 +13,6 @@
#include <stc/csmap.h>
#define i_key csmap_ii_raw
-#define i_opt c_no_cmp
#define i_tag ii
#include <stc/cvec.h>
diff --git a/misc/examples/sortedmaps/multimap.c b/misc/examples/sortedmaps/multimap.c
index 1068a5dc..a4490f91 100644
--- a/misc/examples/sortedmaps/multimap.c
+++ b/misc/examples/sortedmaps/multimap.c
@@ -41,6 +41,7 @@ void OlympicLoc_drop(OlympicLoc* self);
// Create a clist<OlympicLoc>, can be sorted by year.
#define i_keyclass OlympicLoc // binds _cmp, _clone and _drop.
+#define i_use_cmp
#define i_tag OL
#include <stc/clist.h>