summaryrefslogtreecommitdiff
path: root/dat.h
diff options
context:
space:
mode:
authorPeter Mikkelsen <peter@pmikkelsen.com>2021-07-03 21:16:58 +0000
committerPeter Mikkelsen <peter@pmikkelsen.com>2021-07-03 21:16:58 +0000
commit3f26a0f2a1f699e628136ec5be6178b5ab40fc44 (patch)
tree5f288b697076387d59111a5731dfdfeec380c447 /dat.h
parent66a7040df6897e60ee1a513b95f4b04e687bbf0a (diff)
Make the goalstack global just like the choicestack
Diffstat (limited to 'dat.h')
-rw-r--r--dat.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/dat.h b/dat.h
index 27ed5de..574cf4f 100644
--- a/dat.h
+++ b/dat.h
@@ -2,7 +2,7 @@ typedef struct Term Term;
typedef struct Binding Binding;
typedef struct Goal Goal;
typedef struct Choicepoint Choicepoint;
-typedef int (*Builtin)(Term *, Term *, Goal **, Binding **);
+typedef int (*Builtin)(Term *, Term *, Binding **);
struct Term
{
@@ -67,4 +67,5 @@ enum {
int flagdoublequotes;
/* Staate of the running system */
-Choicepoint *choicestack; \ No newline at end of file
+Choicepoint *choicestack;
+Goal *goalstack; \ No newline at end of file