diff options
author | Peter Mikkelsen <peter@pmikkelsen.com> | 2021-07-03 20:59:27 +0000 |
---|---|---|
committer | Peter Mikkelsen <peter@pmikkelsen.com> | 2021-07-03 20:59:27 +0000 |
commit | 66a7040df6897e60ee1a513b95f4b04e687bbf0a (patch) | |
tree | 501f486728cc1fd27b24a6227a131ad72684df84 /dat.h | |
parent | 7db38904537603dabe960f32fa505e27db89e27b (diff) |
Add one global choicestack so we don't need to pass it around
Diffstat (limited to 'dat.h')
-rw-r--r-- | dat.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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 |