From 03aab8641300cb09414fa14601e8e1a47fbcca71 Mon Sep 17 00:00:00 2001 From: Maxwell Jeffress Date: Thu, 22 Jan 2026 20:36:19 +1100 Subject: [PATCH 1/4] Fix the fix? --- include/groundvm.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/groundvm.h b/include/groundvm.h index 7fbad50..da719f9 100644 --- a/include/groundvm.h +++ b/include/groundvm.h @@ -69,7 +69,8 @@ typedef struct GroundValue { GroundError errorVal; struct GroundFunction* fnVal; struct GroundStruct* structVal; - struct GroundObject* customVal; + // This line seems to cause issues with external libraries. + // struct GroundObject* customVal; } data; } GroundValue; From 3f684dad3fb568d2b11846debd483a68824261ab Mon Sep 17 00:00:00 2001 From: Maxwell Jeffress Date: Thu, 22 Jan 2026 20:40:27 +1100 Subject: [PATCH 2/4] I'm tired of ragebaiting Leo --- include/groundvm.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/groundvm.h b/include/groundvm.h index da719f9..61f6e6d 100644 --- a/include/groundvm.h +++ b/include/groundvm.h @@ -58,7 +58,8 @@ typedef struct GroundError { */ typedef struct GroundValue { GroundValueType type; - struct GroundStruct* customType; + // This line seems to be causing issues with extlibs + // struct GroundStruct* customType; union { int64_t intVal; double doubleVal; @@ -69,8 +70,7 @@ typedef struct GroundValue { GroundError errorVal; struct GroundFunction* fnVal; struct GroundStruct* structVal; - // This line seems to cause issues with external libraries. - // struct GroundObject* customVal; + struct GroundObject* customVal; } data; } GroundValue; From 68182d916ea91fde02a0ac1b522677c4df1496dd Mon Sep 17 00:00:00 2001 From: Maxwell Jeffress Date: Thu, 22 Jan 2026 20:58:49 +1100 Subject: [PATCH 3/4] Satisfy Leo's thirst for structs and extlibs --- include/groundvm.h | 4 ++-- src/types.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/groundvm.h b/include/groundvm.h index 61f6e6d..13c8fc1 100644 --- a/include/groundvm.h +++ b/include/groundvm.h @@ -31,6 +31,7 @@ typedef enum ListAccessStatus { struct GroundValue; struct GroundFunction; +struct GroundStruct; struct List; @@ -58,8 +59,7 @@ typedef struct GroundError { */ typedef struct GroundValue { GroundValueType type; - // This line seems to be causing issues with extlibs - // struct GroundStruct* customType; + struct GroundStruct* customType; union { int64_t intVal; double doubleVal; diff --git a/src/types.h b/src/types.h index 600322c..1639cd2 100644 --- a/src/types.h +++ b/src/types.h @@ -62,7 +62,6 @@ typedef struct GroundError { */ typedef struct GroundValue { GroundValueType type; - struct GroundStruct* customType; union { int64_t intVal; double doubleVal; @@ -75,6 +74,7 @@ typedef struct GroundValue { struct GroundStruct* structVal; struct GroundObject* customVal; } data; + struct GroundStruct* customType; } GroundValue; /* From e8c49508a0432355428b1da14484703b9fe01230 Mon Sep 17 00:00:00 2001 From: Maxwell Jeffress Date: Fri, 23 Jan 2026 13:48:18 +1100 Subject: [PATCH 4/4] Band-aid fix for structs, use more memory :\ --- include/groundvm.h | 2 +- src/types.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/groundvm.h b/include/groundvm.h index 13c8fc1..c10158f 100644 --- a/include/groundvm.h +++ b/include/groundvm.h @@ -60,7 +60,7 @@ typedef struct GroundError { typedef struct GroundValue { GroundValueType type; struct GroundStruct* customType; - union { + struct { int64_t intVal; double doubleVal; char* stringVal; diff --git a/src/types.h b/src/types.h index 1639cd2..a288cc8 100644 --- a/src/types.h +++ b/src/types.h @@ -62,7 +62,8 @@ typedef struct GroundError { */ typedef struct GroundValue { GroundValueType type; - union { + struct GroundStruct* customType; + struct { int64_t intVal; double doubleVal; char* stringVal; @@ -74,7 +75,6 @@ typedef struct GroundValue { struct GroundStruct* structVal; struct GroundObject* customVal; } data; - struct GroundStruct* customType; } GroundValue; /*