summaryrefslogtreecommitdiff
path: root/dat.h
diff options
context:
space:
mode:
authorPeter Mikkelsen <peter@pmikkelsen.com>2021-07-27 16:41:12 +0000
committerPeter Mikkelsen <peter@pmikkelsen.com>2021-07-27 16:41:12 +0000
commit13efe91101a11f41caf6321a8b2fbdd96ef9927a (patch)
tree4444bb78783fda4d815a4ec91f44052e0de27383 /dat.h
parent4fba3e66dce0d167d2031a0d1f1f6f4571cbd981 (diff)
remove clausenr from terms, and put it into goals instead. Next up is implementing the control constructs in C, since they misbehave right now due to the new changesHEADfront
Diffstat (limited to 'dat.h')
-rw-r--r--dat.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/dat.h b/dat.h
index 2855a3e..1061d47 100644
--- a/dat.h
+++ b/dat.h
@@ -30,7 +30,6 @@ struct Term
{
u8int tag;
u8int inparens;
- uvlong clausenr;
Term *next;
union {
@@ -51,6 +50,7 @@ struct Binding
struct Goal
{
Term *goal;
+ uvlong goalnr; /* What clause caused this goal to be activated? */
Module *module; /* What module is this goal to be evaluated in? */
Term *catcher; /* When this is non-nil, the goal is a catch frame, goal is the recovery. */
Goal *next;