]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - com_list.h
cvar: When saving init state, simply make a copy of the entire cvar
[xonotic/darkplaces.git] / com_list.h
index eac288232ffaa01e7274048628e2869848765efe..e99ee346b0a9b3541dc42d737ef5a74dae325618 100644 (file)
@@ -20,7 +20,11 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 
 // com_list.c - generic doubly linked list interface, inspired by Linux list.h
 
+#ifndef LIST_H
+#define LIST_H
+
 #include <stddef.h>
+#include "qtypes.h"
 
 typedef struct llist_s
 {
@@ -41,6 +45,7 @@ typedef struct llist_s
 void List_Add(llist_t *node, llist_t *start);
 void List_Add_Tail(llist_t *node, llist_t *start);
 void List_Delete(llist_t *node);
+void List_Delete_Init(llist_t *node);
 void List_Replace(llist_t *old, llist_t *_new);
 void List_Swap(llist_t *node1, llist_t *node2);
 void List_Move(llist_t *list, llist_t *start);
@@ -50,6 +55,8 @@ void List_Rotate_Left(llist_t *head);
 void List_Rotate_To_Front(llist_t *list, llist_t *head);
 void List_Splice(const llist_t *list, llist_t *head);
 void List_Splice_Tail(const llist_t *list, llist_t *head);
-qboolean List_IsFirst(llist_t *list, llist_t *start);
-qboolean List_IsLast(llist_t *list, llist_t *start);
-qboolean List_IsEmpty(const llist_t *list);
\ No newline at end of file
+qbool List_IsFirst(llist_t *list, llist_t *start);
+qbool List_IsLast(llist_t *list, llist_t *start);
+qbool List_IsEmpty(const llist_t *list);
+
+#endif