From 749cdb81da654efad8e8b54c772f4c92b7330ed7 Mon Sep 17 00:00:00 2001 From: Aleksey Veresov Date: Fri, 28 Aug 2020 09:07:08 +0300 Subject: Refactored. --- tl.h | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 tl.h (limited to 'tl.h') diff --git a/tl.h b/tl.h new file mode 100644 index 0000000..a80d4b1 --- /dev/null +++ b/tl.h @@ -0,0 +1,31 @@ +#ifndef NEWBIETL_INCLUDED +#define NEWBIETL_INCLUDED + + +struct tl_list { + const char *name; + const char *data; + struct tl_list *list; + struct tl_list *next; +}; + +struct tl_list *tl_new(const char *name, + const char *data, + struct tl_list *list, + struct tl_list *next); + +struct tl_list *tl_plain_list(struct tl_list *list, struct tl_list *next); + +struct tl_list *tl_named_list(const char *name, + struct tl_list *list, + struct tl_list *next); + +struct tl_list *tl_named_data(const char *name, + const char *data, + struct tl_list *next); + + +void tl_translate(struct tl_list *l); + + +#endif -- cgit v1.2.3