summaryrefslogtreecommitdiff
path: root/fns.h
diff options
context:
space:
mode:
authorPeter Mikkelsen <peter@pmikkelsen.com>2021-07-07 16:32:02 +0000
committerPeter Mikkelsen <peter@pmikkelsen.com>2021-07-07 16:32:02 +0000
commit0f958749e189e4dacd7a1f70cfc33460e1228d3b (patch)
tree5679ea79743a736cc3179c29ea603ae0f39bb51e /fns.h
parent73b9bad83e6405809e80809c10c8917f4bd4e341 (diff)
Make '=..'/2 work according to spec. Introduce types.c for functions which tells us something about term types. Should be used a lot more instead of explicitly looking into terms->tag everywhere
Diffstat (limited to 'fns.h')
-rw-r--r--fns.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/fns.h b/fns.h
index 7255166..d548d6e 100644
--- a/fns.h
+++ b/fns.h
@@ -63,4 +63,12 @@ void writeterm(Term *, Term *, Term *);
/* module.c */
void initmodules(void);
Module *parsemodule(char *);
-Module *getmodule(Rune *); \ No newline at end of file
+Module *getmodule(Rune *);
+
+/* types.c */
+int islist(Term *);
+int ispartiallist(Term *t);
+int isemptylist(Term *);
+int isnonemptylist(Term *);
+Term *listhead(Term *);
+Term *listtail(Term *);