diff -r 07b815faa6ac -r f00d03835dd9 src/server/test/object.c --- a/src/server/test/object.c Tue Dec 30 21:44:49 2025 +0100 +++ b/src/server/test/object.c Tue Jan 13 18:09:20 2026 +0100 @@ -39,7 +39,7 @@ CX_TEST(test_expr_parse_expr_value) { pool_handle_t *pool = pool_create(); - CxList *tokens = cxLinkedListCreate(pool_allocator(pool), NULL, sizeof(cxstring)); + CxList *tokens = cxLinkedListCreate(pool_allocator(pool), sizeof(cxstring)); cxstring token = cx_str("123"); cxListAdd(tokens, &token); @@ -60,7 +60,7 @@ CX_TEST(test_expr_parse_expr_neg_value) { pool_handle_t *pool = pool_create(); - CxList *tokens = cxLinkedListCreate(pool_allocator(pool), NULL, sizeof(cxstring)); + CxList *tokens = cxLinkedListCreate(pool_allocator(pool), sizeof(cxstring)); cxstring token = cx_str("-123"); cxListAdd(tokens, &token); @@ -82,7 +82,7 @@ CX_TEST(test_expr_parse_expr_value_str) { pool_handle_t *pool = pool_create(); - CxList *tokens = cxLinkedListCreate(pool_allocator(pool), NULL, sizeof(cxstring)); + CxList *tokens = cxLinkedListCreate(pool_allocator(pool), sizeof(cxstring)); cxstring token = cx_str("\"hello world\""); cxListAdd(tokens, &token); @@ -104,7 +104,7 @@ CX_TEST(test_expr_parse_expr_value_bool) { pool_handle_t *pool = pool_create(); - CxList *tokens = cxLinkedListCreate(pool_allocator(pool), NULL, sizeof(cxstring)); + CxList *tokens = cxLinkedListCreate(pool_allocator(pool), sizeof(cxstring)); cxstring token = cx_str("true"); cxListAdd(tokens, &token); @@ -126,7 +126,7 @@ CX_TEST(test_expr_parse_expr_value_var) { pool_handle_t *pool = pool_create(); - CxList *tokens = cxLinkedListCreate(pool_allocator(pool), NULL, sizeof(cxstring)); + CxList *tokens = cxLinkedListCreate(pool_allocator(pool), sizeof(cxstring)); cxstring token = cx_str("$test"); cxListAdd(tokens, &token); @@ -148,7 +148,7 @@ CX_TEST(test_expr_parse_expr_not_value) { pool_handle_t *pool = pool_create(); - CxList *tokens = cxLinkedListCreate(pool_allocator(pool), NULL, sizeof(cxstring)); + CxList *tokens = cxLinkedListCreate(pool_allocator(pool), sizeof(cxstring)); cxstring token = cx_str("not"); cxListAdd(tokens, &token); token = cx_str("true"); @@ -176,13 +176,13 @@ CX_TEST(test_expr_parse_expr_sign_value) { pool_handle_t *pool = pool_create(); - CxList *tokens1 = cxLinkedListCreate(pool_allocator(pool), NULL, sizeof(cxstring)); + CxList *tokens1 = cxLinkedListCreate(pool_allocator(pool), sizeof(cxstring)); cxstring token = cx_str("+"); cxListAdd(tokens1, &token); token = cx_str("123"); cxListAdd(tokens1, &token); - CxList *tokens2 = cxLinkedListCreate(pool_allocator(pool), NULL, sizeof(cxstring)); + CxList *tokens2 = cxLinkedListCreate(pool_allocator(pool), sizeof(cxstring)); token = cx_str("-"); cxListAdd(tokens2, &token); token = cx_str("123"); @@ -218,7 +218,7 @@ CX_TEST(test_expr_parse_expr_compare2values) { pool_handle_t *pool = pool_create(); - CxList *tokens = cxLinkedListCreate(pool_allocator(pool), NULL, sizeof(cxstring)); + CxList *tokens = cxLinkedListCreate(pool_allocator(pool), sizeof(cxstring)); cxstring token = cx_str("2"); cxListAdd(tokens, &token); token = cx_str("=="); @@ -249,7 +249,7 @@ CX_TEST(test_expr_parse_expr_compare2value_expr) { pool_handle_t *pool = pool_create(); - CxList *tokens = cxLinkedListCreate(pool_allocator(pool), NULL, sizeof(cxstring)); + CxList *tokens = cxLinkedListCreate(pool_allocator(pool), sizeof(cxstring)); cxstring token = cx_str("2"); cxListAdd(tokens, &token); token = cx_str("=="); @@ -284,7 +284,7 @@ CX_TEST(test_expr_parse_expr_compare2expr_value) { pool_handle_t *pool = pool_create(); - CxList *tokens = cxLinkedListCreate(pool_allocator(pool), NULL, sizeof(cxstring)); + CxList *tokens = cxLinkedListCreate(pool_allocator(pool), sizeof(cxstring)); cxstring token = cx_str("1"); cxListAdd(tokens, &token); token = cx_str("+"); @@ -325,7 +325,7 @@ pool_handle_t *pool = pool_create(); // expression: 2 * (1 + 2) == 6 - CxList *tokens = cxLinkedListCreate(pool_allocator(pool), NULL, sizeof(cxstring)); + CxList *tokens = cxLinkedListCreate(pool_allocator(pool), sizeof(cxstring)); cxstring token = cx_str("2"); cxListAdd(tokens, &token); token = cx_str("*"); @@ -371,7 +371,7 @@ CX_TEST(test_expr_op_defined_simple) { pool_handle_t *pool = pool_create(); - CxList *tokens = cxLinkedListCreate(pool_allocator(pool), NULL, sizeof(cxstring)); + CxList *tokens = cxLinkedListCreate(pool_allocator(pool), sizeof(cxstring)); cxstring token = cx_str("defined"); cxListAdd(tokens, &token); @@ -398,7 +398,7 @@ CX_TEST(test_expr_op_defined) { pool_handle_t *pool = pool_create(); - CxList *tokens = cxLinkedListCreate(pool_allocator(pool), NULL, sizeof(cxstring)); + CxList *tokens = cxLinkedListCreate(pool_allocator(pool), sizeof(cxstring)); cxstring token = cx_str("true"); cxListAdd(tokens, &token); @@ -437,7 +437,7 @@ CX_TEST(test_expr_op_file_exists_simple) { pool_handle_t *pool = pool_create(); - CxList *tokens = cxLinkedListCreate(pool_allocator(pool), NULL, sizeof(cxstring)); + CxList *tokens = cxLinkedListCreate(pool_allocator(pool), sizeof(cxstring)); cxstring token = cx_str("-e"); cxListAdd(tokens, &token); @@ -465,7 +465,7 @@ CX_TEST(test_expr_parse_expr_func_arg0) { pool_handle_t *pool = pool_create(); - CxList *tokens = cxLinkedListCreate(pool_allocator(pool), NULL, sizeof(cxstring)); + CxList *tokens = cxLinkedListCreate(pool_allocator(pool), sizeof(cxstring)); cxstring token = cx_str("test"); cxListAdd(tokens, &token); token = cx_str("("); @@ -521,7 +521,7 @@ CX_TEST(test_expr_parse_expr_func_arg1) { pool_handle_t *pool = pool_create(); - CxList *tokens = cxLinkedListCreate(pool_allocator(pool), NULL, sizeof(cxstring)); + CxList *tokens = cxLinkedListCreate(pool_allocator(pool), sizeof(cxstring)); cxstring token = cx_str("test"); cxListAdd(tokens, &token); token = cx_str("("); @@ -556,7 +556,7 @@ CX_TEST(test_expr_parse_expr_func_arg3) { pool_handle_t *pool = pool_create(); - CxList *tokens = cxLinkedListCreate(pool_allocator(pool), NULL, sizeof(cxstring)); + CxList *tokens = cxLinkedListCreate(pool_allocator(pool), sizeof(cxstring)); cxstring token = cx_str("test"); cxListAdd(tokens, &token); token = cx_str("("); @@ -601,7 +601,7 @@ CX_TEST(test_expr_parse_expr_func_expr1) { pool_handle_t *pool = pool_create(); - CxList *tokens = cxLinkedListCreate(pool_allocator(pool), NULL, sizeof(cxstring)); + CxList *tokens = cxLinkedListCreate(pool_allocator(pool), sizeof(cxstring)); cxstring token = cx_str("test"); cxListAdd(tokens, &token); token = cx_str("("); @@ -647,7 +647,7 @@ CX_TEST(test_expr_parse_expr_func_expr2) { pool_handle_t *pool = pool_create(); - CxList *tokens = cxLinkedListCreate(pool_allocator(pool), NULL, sizeof(cxstring)); + CxList *tokens = cxLinkedListCreate(pool_allocator(pool), sizeof(cxstring)); cxstring token = cx_str("test"); cxListAdd(tokens, &token); token = cx_str("(");