summaryrefslogtreecommitdiffhomepage
path: root/examples
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2021-12-30 16:14:57 +0100
committerTyge Løvset <[email protected]>2021-12-30 16:14:57 +0100
commita2ba1b88606659704625aa73397f80df2a0a038b (patch)
tree3c11591dabc6b3ff34f3a06176da38e067ce5562 /examples
parenteb0d095d7cdf5c5018d37be4319c99e2fdbfa9c5 (diff)
downloadSTC-modified-a2ba1b88606659704625aa73397f80df2a0a038b.tar.gz
STC-modified-a2ba1b88606659704625aa73397f80df2a0a038b.zip
Renamed c_default_clone to c_default_from (mostly used internally).
Diffstat (limited to 'examples')
-rw-r--r--examples/complex.c2
-rw-r--r--examples/queue.c2
-rw-r--r--examples/sview_split.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/examples/complex.c b/examples/complex.c
index 17a10fad..747cec07 100644
--- a/examples/complex.c
+++ b/examples/complex.c
@@ -5,7 +5,7 @@ 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_clone
+#define i_from c_default_from
#include <stc/cstack.h>
#define i_type StackList
diff --git a/examples/queue.c b/examples/queue.c
index ffd0a1e7..2ea82080 100644
--- a/examples/queue.c
+++ b/examples/queue.c
@@ -3,7 +3,7 @@
#define i_val int
#define i_drop(x) printf("drop %d\n", *(x))
-#define i_from c_default_clone
+#define i_from c_default_from
#define i_tag i
#include <stc/cqueue.h>
diff --git a/examples/sview_split.c b/examples/sview_split.c
index bd5c26d5..8e8443b8 100644
--- a/examples/sview_split.c
+++ b/examples/sview_split.c
@@ -1,5 +1,5 @@
#include <stc/csview.h>
-#define c_arg(a) a
+
int main()
{
// No memory allocations or string length calculations!