21 lines
		
	
	
		
			399 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			399 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
|   if (!list || !node || !(node->item)) {{
 | |
|     return;
 | |
|   }}
 | |
| 
 | |
|   {Ttitle}List node_list = {Tlower}_node_to_list(node);
 | |
| 
 | |
|   if (list->node_count == 0) {{
 | |
|     *list = node_list;
 | |
|     return;
 | |
|   }}
 | |
| 
 | |
|   list->node_count += node_list.node_count;
 | |
| 
 | |
|   {Ttitle}Node *last = list->last;
 | |
|   if (last) {{
 | |
|     last->next = node_list.first;
 | |
|   }}
 | |
| 
 | |
|   list->last            = node_list.last;
 | |
|   node_list.first->prev = last;
 |