summaryrefslogtreecommitdiff
path: root/fns.h
diff options
context:
space:
mode:
authorPeter Mikkelsen <peter@pmikkelsen.com>2021-07-08 17:07:15 +0000
committerPeter Mikkelsen <peter@pmikkelsen.com>2021-07-08 17:07:15 +0000
commit28e7dd47d568908702264977d70860c25467fb6e (patch)
tree61ec96a7ffc789fa518313ab5c78ead65d0db8a8 /fns.h
parent96639193bad1db5ff22f17bacbcd4eeecd024ba9 (diff)
Add a mark-sweep garbage collector
Diffstat (limited to 'fns.h')
-rw-r--r--fns.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/fns.h b/fns.h
index 2238d56..4c8b682 100644
--- a/fns.h
+++ b/fns.h
@@ -76,4 +76,8 @@ Term *listhead(Term *);
Term *listtail(Term *);
/* arithmetic.c */
-Term *aritheval(Term *, int *); \ No newline at end of file
+Term *aritheval(Term *, int *);
+
+/* garbage.c */
+void *gmalloc(ulong);
+vlong collectgarbage(void); \ No newline at end of file