summaryrefslogtreecommitdiffhomepage
path: root/examples/multimap.c
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2021-10-05 09:00:28 +0200
committerTyge Løvset <[email protected]>2021-10-05 09:05:25 +0200
commitbf00ed0e7023cf49cf004dd4b4b39af2b824681e (patch)
treeadadcc1ac34fd5b614e566028d37d29db8fb7f80 /examples/multimap.c
parent88c67afa63e46551c67f573e0557323518c42f81 (diff)
downloadSTC-modified-bf00ed0e7023cf49cf004dd4b4b39af2b824681e.tar.gz
STC-modified-bf00ed0e7023cf49cf004dd4b4b39af2b824681e.zip
Changed recommended order of defining template parameters.
Diffstat (limited to 'examples/multimap.c')
-rw-r--r--examples/multimap.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/multimap.c b/examples/multimap.c
index 64e3493b..3dbe952d 100644
--- a/examples/multimap.c
+++ b/examples/multimap.c
@@ -43,17 +43,17 @@ void OlympicLocation_del(OlympicLocation* self) {
}
// Create a clist<OlympicLocation>, can be sorted by year.
-#define i_tag OL
#define i_val OlympicLocation
-#define i_valdel OlympicLocation_del
#define i_cmp OlympicLocation_compare
+#define i_del OlympicLocation_del
+#define i_tag OL
#include <stc/clist.h>
// Create a csmap<cstr, clist_OL> where key is country name
-#define i_tag OL
#define i_key_str
#define i_val clist_OL
#define i_valdel clist_OL_del
+#define i_tag OL
#include <stc/csmap.h>
int main()