Upgrade codegen

This commit is contained in:
Abdelrahman Said
2025-04-17 09:03:30 +01:00
parent aa04fab6ea
commit 3c32b247c0
15 changed files with 66 additions and 46 deletions

View File

@@ -10,16 +10,16 @@
return;
}}
{T}Node *dst_node = wapp_{Tlower}_list_get(list, index);
{Ttitle}Node *dst_node = wapp_{Tlower}_list_get(list, index);
if (!dst_node) {{
return;
}}
{T}List node_list = {Tlower}_node_to_list(node);
{Ttitle}List node_list = {Tlower}_node_to_list(node);
list->node_count += node_list.node_count;
{T}Node *prev = dst_node->prev;
{Ttitle}Node *prev = dst_node->prev;
dst_node->prev = node_list.last;
prev->next = node_list.first;