about summary refs log tree commit diff
path: root/usth/ICT2.1/labwork/5/construct.h
diff options
context:
space:
mode:
Diffstat (limited to 'usth/ICT2.1/labwork/5/construct.h')
-rw-r--r--usth/ICT2.1/labwork/5/construct.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/usth/ICT2.1/labwork/5/construct.h b/usth/ICT2.1/labwork/5/construct.h
new file mode 100644
index 0000000..a27a1c3
--- /dev/null
+++ b/usth/ICT2.1/labwork/5/construct.h
@@ -0,0 +1,15 @@
+/*
+ * Lisp construct header.
+ * Copyright (C) 2019,  Nguyễn Gia Phong
+ * This software is licenced under a CC BY-SA 4.0 license
+ */
+
+typedef struct list construct;
+struct list {
+	void *car;
+        construct *cdr;
+};
+
+construct *cons(void *, construct *);
+void *car(construct *);
+construct *cdr(construct *);