about summary refs log tree commit diff
path: root/usth/ICT2.1/labwork/5/construct.h
blob: a27a1c37da4c57ec1d3ef528be9ef3b87e74ead9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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 *);