summaryrefslogtreecommitdiff
path: root/colm/tree.h
diff options
context:
space:
mode:
authorAdrian Thurston <thurston@complang.org>2012-08-28 15:10:09 -0400
committerAdrian Thurston <thurston@complang.org>2012-08-28 15:10:09 -0400
commit6039e0124075b6a92105049e857a4d46e64bc7ab (patch)
tree9b5d55fdbafddc02febce43e916e344669cae88a /colm/tree.h
parente9102a0aa43a096bb67f070ec45faadc9a29ea0a (diff)
downloadcolm-6039e0124075b6a92105049e857a4d46e64bc7ab.tar.gz
call iterator stackSize 'yieldSize'
This is the size at the time of last yield. We will need another stack size in there so we have to disambiguate.
Diffstat (limited to 'colm/tree.h')
-rw-r--r--colm/tree.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/colm/tree.h b/colm/tree.h
index e0d390a8..455e9665 100644
--- a/colm/tree.h
+++ b/colm/tree.h
@@ -226,7 +226,7 @@ typedef struct _TreeIter
Ref ref;
long searchId;
Tree **stackRoot;
- long stackSize;
+ long yieldSize;
} TreeIter;
/* This must overlay tree iter because some of the same bytecodes are used. */
@@ -236,7 +236,7 @@ typedef struct _RevTreeIter
Ref ref;
long searchId;
Tree **stackRoot;
- long stackSize;
+ long yieldSize;
/* For detecting a split at the leaf. */
Kid *kidAtYield;
@@ -251,7 +251,7 @@ typedef struct _UserIter
Ref ref;
Tree **stackRoot;
long argSize;
- long stackSize;
+ long yieldSize;
Code *resume;
Tree **frame;
long searchId;