Fix codegen hidden bugs

This commit is contained in:
Abdelrahman Said
2025-04-16 08:06:05 +01:00
parent 0942643b4e
commit cfa8094260
9 changed files with 26 additions and 32 deletions

View File

@@ -4,14 +4,14 @@
}}
if (index == 0) {{
output = wapp_str8_list_pop_front(list);
output = wapp_{T}_list_pop_front(list);
goto RETURN_{Tupper}_LIST_REMOVE;
}} else if (index == list->node_count) {{
output = wapp_str8_list_pop_back(list);
output = wapp_{T}_list_pop_back(list);
goto RETURN_{Tupper}_LIST_REMOVE;
}}
output = wapp_str8_list_get(list, index);
output = wapp_{T}_list_get(list, index);
if (!output) {{
goto RETURN_{Tupper}_LIST_REMOVE;
}}
@@ -20,7 +20,6 @@
output->next->prev = output->prev;
--(list->node_count);
list->total_size -= output->string->size;
output->prev = output->next = NULL;