mirror of
				https://gitlab.labs.nic.cz/labs/bird.git
				synced 2024-05-11 16:54:54 +00:00 
			
		
		
		
	Static list initializer
This commit is contained in:
		@@ -42,6 +42,7 @@ typedef union list {			/* In fact two overlayed nodes */
 | 
			
		||||
  };
 | 
			
		||||
} list;
 | 
			
		||||
 | 
			
		||||
#define STATIC_LIST_INIT(name)	name = { .head = &name.tail_node, .tail = &name.head_node, .null = NULL }
 | 
			
		||||
 | 
			
		||||
#define NODE (node *)
 | 
			
		||||
#define HEAD(list) ((void *)((list).head))
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user