summaryrefslogtreecommitdiff
path: root/dat.h
diff options
context:
space:
mode:
authorPeter Mikkelsen <peter@pmikkelsen.com>2021-07-03 20:59:27 +0000
committerPeter Mikkelsen <peter@pmikkelsen.com>2021-07-03 20:59:27 +0000
commit66a7040df6897e60ee1a513b95f4b04e687bbf0a (patch)
tree501f486728cc1fd27b24a6227a131ad72684df84 /dat.h
parent7db38904537603dabe960f32fa505e27db89e27b (diff)
Add one global choicestack so we don't need to pass it around
Diffstat (limited to 'dat.h')
-rw-r--r--dat.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/dat.h b/dat.h
index 9dac8d0..27ed5de 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 **, Choicepoint **, Binding **);
+typedef int (*Builtin)(Term *, Term *, Goal **, Binding **);
struct Term
{
@@ -66,3 +66,5 @@ enum {
int flagdoublequotes;
+/* Staate of the running system */
+Choicepoint *choicestack; \ No newline at end of file