summaryrefslogtreecommitdiff
path: root/src/types.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/types.h')
-rw-r--r--src/types.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/types.h b/src/types.h
index ea8ca019..3a408ed1 100644
--- a/src/types.h
+++ b/src/types.h
@@ -46,6 +46,22 @@
*/
+/*
+ * String list.
+ */
+typedef struct string_list string_list;
+struct string_list {
+ /* The string list owns the string */
+ cptr s;
+ /* Next */
+ string_list *next;
+};
+
+int compare_string_list(string_list *a, string_list *b);
+SGLIB_DEFINE_LIST_PROTOTYPES(string_list, compare_string, next);
+
+void string_list_init(string_list *sl, cptr s); /* Initialize element; copies string */
+void string_list_destroy(string_list *sl); /* Destroy element */