aboutsummaryrefslogtreecommitdiffstats
path: root/lcc/src/event.c
diff options
context:
space:
mode:
Diffstat (limited to 'lcc/src/event.c')
-rw-r--r--lcc/src/event.c28
1 files changed, 0 insertions, 28 deletions
diff --git a/lcc/src/event.c b/lcc/src/event.c
deleted file mode 100644
index 4549e3f..0000000
--- a/lcc/src/event.c
+++ /dev/null
@@ -1,28 +0,0 @@
-#include "c.h"
-
-
-struct entry {
- Apply func;
- void *cl;
-};
-
-Events events;
-void attach(Apply func, void *cl, List *list) {
- struct entry *p;
-
- NEW(p, PERM);
- p->func = func;
- p->cl = cl;
- *list = append(p, *list);
-}
-void apply(List event, void *arg1, void *arg2) {
- if (event) {
- List lp = event;
- do {
- struct entry *p = lp->x;
- (*p->func)(p->cl, arg1, arg2);
- lp = lp->link;
- } while (lp != event);
- }
-}
-