From e0bc9261a35f141c090a2768c0c9b66087c84e02 Mon Sep 17 00:00:00 2001 From: SpookyDervish Date: Sat, 11 Apr 2026 17:14:21 +1000 Subject: [PATCH] changed __ptr to private_ptr in collections lib --- libs/collections/list.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/collections/list.c b/libs/collections/list.c index 4f89e32..b264e0c 100644 --- a/libs/collections/list.c +++ b/libs/collections/list.c @@ -447,7 +447,7 @@ GroundValue createListStruct() { groundAddFieldToStruct(&listStruct, "size", groundCreateValue(INT, 0)); // number of elements groundAddFieldToStruct(&listStruct, "memSize", groundCreateValue(INT, sizeof(GroundValue) * STARTING_ELEMENTS)); // number of bytes allocated groundAddFieldToStruct(&listStruct, "capacity", groundCreateValue(INT, STARTING_ELEMENTS)); // number of elements that can fit in the currently allocated space - groundAddFieldToStruct(&listStruct, "__ptr", groundCreateValue(INT, items)); // pointer to internal list struct + groundAddFieldToStruct(&listStruct, "private_ptr", groundCreateValue(INT, items)); // pointer to internal list struct groundAddFunctionToStruct(&listStruct, "append", appendToListStruct, INT, 1, INT, "value"); // append item to end of list groundAddFunctionToStruct(&listStruct, "string", listStructToString, STRING, 0); // convert list to string