From c9346f86883c8775e001d4fb0598905eab15947e Mon Sep 17 00:00:00 2001 From: Zander Thannhauser Date: Thu, 28 Nov 2024 18:40:06 -0600 Subject: [PATCH] . --- examples/sandbox.txt | 7 +++++++ gc/inc_external_refcount.c | 13 ++++++++++++- value/string/compare.c | 11 +++++++++++ value/string/compare.h | 7 +++++++ 4 files changed, 37 insertions(+), 1 deletion(-) diff --git a/examples/sandbox.txt b/examples/sandbox.txt index 2311fcc..db1bfb4 100644 --- a/examples/sandbox.txt +++ b/examples/sandbox.txt @@ -48,3 +48,10 @@ (factorial 2) (factorial 3) (factorial 4) + + + + + + + diff --git a/gc/inc_external_refcount.c b/gc/inc_external_refcount.c index 38e4a3c..0caf2a6 100644 --- a/gc/inc_external_refcount.c +++ b/gc/inc_external_refcount.c @@ -60,7 +60,7 @@ struct value* gc_inc_external_refcount( } #endif - assert(value->externally_referenced.in_set); + assert(value->externally_referenced.in_set == true); } else { @@ -72,3 +72,14 @@ struct value* gc_inc_external_refcount( return value; } + + + + + + + + + + + diff --git a/value/string/compare.c b/value/string/compare.c index e69de29..5954bb1 100644 --- a/value/string/compare.c +++ b/value/string/compare.c @@ -0,0 +1,11 @@ + +#include + +#include "compare.h" + +int compare_string_values( + const struct value* a, + const struct value* b) +{ + TODO; +} diff --git a/value/string/compare.h b/value/string/compare.h index e69de29..5644321 100644 --- a/value/string/compare.h +++ b/value/string/compare.h @@ -0,0 +1,7 @@ + +int compare_string_values( + const struct value* a, + const struct value* b); + + +