From 99380c7810ed731d4150819609bc42d4a04d79ab Mon Sep 17 00:00:00 2001 From: Max Wash Date: Fri, 29 May 2026 20:20:31 +0100 Subject: [PATCH] test: fix linux compilation --- test/json-read.c | 6 +++--- test/toml-read.c | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/test/json-read.c b/test/json-read.c index 1fdc99f..5e06557 100644 --- a/test/json-read.c +++ b/test/json-read.c @@ -22,17 +22,17 @@ int main(int argc, const char **argv) /* TODO re-implement json support */ fx_serial_ctx *ctx = NULL; - fx_object *data; + fx_value data = FX_VALUE_EMPTY; result = fx_serial_ctx_deserialise(ctx, src, &data, 0); if (fx_result_is_error(result)) { fx_throw(result); return -1; } - fx_object_to_string(data, fx_stdout, NULL); + fx_value_to_string(&data, fx_stdout, NULL); fx_stream_write_char(fx_stdout, '\n'); - fx_object_unref(data); + fx_value_unset(&data); fx_object_unref(src); fx_serial_ctx_unref(ctx); diff --git a/test/toml-read.c b/test/toml-read.c index 1494f07..022ebf0 100644 --- a/test/toml-read.c +++ b/test/toml-read.c @@ -22,21 +22,21 @@ int main(int argc, const char **argv) fx_serial_ctx *ctx = fx_toml_serial_ctx_create(); - fx_object *data = NULL; + fx_value data = FX_VALUE_EMPTY; result = fx_serial_ctx_deserialise(ctx, src, &data, 0); if (fx_result_is_error(result)) { fx_throw(result); return -1; } - if (!data) { + if (!fx_value_is_set(&data)) { return 0; } - fx_object_to_string(data, fx_stdout, NULL); + fx_value_to_string(&data, fx_stdout, NULL); fx_stream_write_char(fx_stdout, '\n'); - fx_object_unref(data); + fx_value_unset(&data); fx_object_unref(src); fx_serial_ctx_unref(ctx);