summaryrefslogtreecommitdiffhomepage
path: root/misc/examples/music_arc.c
diff options
context:
space:
mode:
authorTyge Lovset <[email protected]>2023-06-29 09:32:39 +0200
committerTyge Lovset <[email protected]>2023-06-29 10:48:03 +0200
commit764d6b5a831c4ff58fb717a1360fe80f691a424d (patch)
tree55b0353d1952f749dc34d4286b25970de4039545 /misc/examples/music_arc.c
parent5096c3c951f6b99e9d6ee04a21531e226153cca9 (diff)
downloadSTC-modified-764d6b5a831c4ff58fb717a1360fe80f691a424d.tar.gz
STC-modified-764d6b5a831c4ff58fb717a1360fe80f691a424d.zip
Usage change: comparison is no longer enabled when specifying i_val for cvec, cdeq and clist (like cstack and cqueue). Comparison functions are still required when specifying i_valclass. For fundamental/native types like integers, floats etc., define i_native_cmp along with i_val instead of i_less/i_cmp/i_eq.
Diffstat (limited to 'misc/examples/music_arc.c')
-rw-r--r--misc/examples/music_arc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/misc/examples/music_arc.c b/misc/examples/music_arc.c
index 18ea30c0..4efc35c8 100644
--- a/misc/examples/music_arc.c
+++ b/misc/examples/music_arc.c
@@ -23,13 +23,13 @@ void Song_drop(Song* s) {
// Define the shared pointer:
#define i_type SongArc
#define i_valclass Song
-#define i_opt c_no_hash // arc require hash fn, disable as we don't need it.
+#define i_no_hash // no hash fn for Song, fallback hash pointer to Song.
#include <stc/carc.h>
// ... and a vector of them
#define i_type SongVec
-#define i_valboxed SongArc // use i_valboxed on carc / cbox instead of i_val
-#include <stc/cstack.h>
+#define i_valboxed SongArc // use i_valboxed on carc / cbox (instead of i_val)
+#include <stc/cvec.h>
void example3()
{