summaryrefslogtreecommitdiffhomepage
path: root/examples/complex.c
diff options
context:
space:
mode:
authorTyge Lovset <[email protected]>2022-04-18 12:12:01 +0200
committerTyge Lovset <[email protected]>2022-04-18 12:12:01 +0200
commitb0d60c33a073782fe0bb08c835ca9db0b94145d0 (patch)
tree1683369ec66467720502b3d904bf9ab11343076e /examples/complex.c
parent00804d9ff488f63468a0bb528c7b807aea7c3ea3 (diff)
downloadSTC-modified-b0d60c33a073782fe0bb08c835ca9db0b94145d0.tar.gz
STC-modified-b0d60c33a073782fe0bb08c835ca9db0b94145d0.zip
Removed i_drop and i_from template specifiers to reduce redundancies and add clarity (error given if used): use i_valdrop/i_valfrom and i_keydrop/i_keyfrom instead.
Added missing at_mut() function to cdeq.
Diffstat (limited to 'examples/complex.c')
-rw-r--r--examples/complex.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/complex.c b/examples/complex.c
index 9ccd2dae..ef7f711f 100644
--- a/examples/complex.c
+++ b/examples/complex.c
@@ -4,8 +4,8 @@ void check_drop(float* v) {printf("destroy %g\n", *v);}
#define i_type FloatStack
#define i_val float
-#define i_drop check_drop
-#define i_from c_default_from
+#define i_valdrop check_drop
+#define i_valfrom c_default_from
#include <stc/cstack.h>
#define i_type StackList