From 64492ed9c42659d0c5f7eb2143a673dd0b5f9dc3 Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Thu, 23 Oct 2025 09:27:16 +0200 Subject: feat! breaking API changes in kernel. Signed-off-by: Amlal El Mahrouss --- dev/libMsg/MsgKit/Server.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'dev/libMsg') diff --git a/dev/libMsg/MsgKit/Server.h b/dev/libMsg/MsgKit/Server.h index 022aa425..5bc9617d 100644 --- a/dev/libMsg/MsgKit/Server.h +++ b/dev/libMsg/MsgKit/Server.h @@ -13,6 +13,7 @@ #endif /// @author Amlal El Mahrouss +/// @file Server.h /// @brief libMsg LISP system. struct LIBMSG_EXPR; @@ -23,8 +24,8 @@ struct LIBMSG_EXPR final { CF::CFString* l_key{nullptr}; CF::CFString* l_value{nullptr}; #else - VoidPtr l_key{nullptr}; - VoidPtr l_value{nullptr}; + // if we use C< we won't know about CF, so let's make those private. + VoidPtr l_private_data[2]{nullptr}; #endif LIBMSG_EXPR* l_head{nullptr}; @@ -33,8 +34,8 @@ struct LIBMSG_EXPR final { }; /// @brief Function type for LibMSG lisp. -typedef Void (*libmsg_func_t)(struct LIBMSG_EXPR* self, VoidPtr arg, SizeT arg_size); +typedef Void (*libmsg_func_type)(struct LIBMSG_EXPR* self, VoidPtr arg, SizeT arg_size); -IMPORT_C Void libmsg_init_library(libmsg_func_t* funcs, SizeT cnt); +IMPORT_C Void libmsg_init_library(libmsg_func_type* funcs, SizeT cnt); IMPORT_C UInt32 libmsg_close_library(Void); IMPORT_C UInt32 libmsg_eval_expr(struct LIBMSG_EXPR* head); -- cgit v1.2.3