summaryrefslogtreecommitdiffhomepage
path: root/misc/examples
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2023-01-31 13:26:04 +0100
committerTyge Løvset <[email protected]>2023-01-31 13:41:33 +0100
commita24ecd6bbfffc2e0b75b8ed48fcb5306d367ad3e (patch)
treea9231182b09e139af14920dc6701dded80761793 /misc/examples
parent5bbcae2a3add163ea3b7a91d65fda6836c18f410 (diff)
downloadSTC-modified-a24ecd6bbfffc2e0b75b8ed48fcb5306d367ad3e.tar.gz
STC-modified-a24ecd6bbfffc2e0b75b8ed48fcb5306d367ad3e.zip
Reverted c_MALLOC, c_CALLOC, c_REALLOC and c_FREE to lowercase.
Diffstat (limited to 'misc/examples')
-rw-r--r--misc/examples/rawptr_elements.c2
-rw-r--r--misc/examples/shape.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/misc/examples/rawptr_elements.c b/misc/examples/rawptr_elements.c
index 05910c77..96a9ba86 100644
--- a/misc/examples/rawptr_elements.c
+++ b/misc/examples/rawptr_elements.c
@@ -13,7 +13,7 @@ typedef int64_t inttype;
#define i_valfrom(raw) c_NEW(inttype, raw)
#define i_valto(x) **x
#define i_valclone(x) c_NEW(inttype, *x)
-#define i_valdrop(x) c_FREE(*x)
+#define i_valdrop(x) c_free(*x)
#include <stc/cmap.h>
// With cbox:
diff --git a/misc/examples/shape.c b/misc/examples/shape.c
index 75a5e174..9ce0b946 100644
--- a/misc/examples/shape.c
+++ b/misc/examples/shape.c
@@ -38,7 +38,7 @@ void Shape_delete(Shape* shape)
{
if (shape) {
shape->api->drop(shape);
- c_FREE(shape);
+ c_free(shape);
}
}