on master help sign in
Document some more invariants
commit4a4ae01fabdd6e9cff7bb05691a99213b694d649 authorNeil Mitchell <ndmitchell@gmail.com> dateThu 4 Jan 2018, 00:53 (9 years ago) parent05b1739
1 file changed+2−1
gen/test.c+2−1
gen/test.c+2−1
@@ -41,7 +41,8 @@ typedef struct
4141 // nodes
4242 int size;
4343 int used_front; // front entries, stored for good
44− int used_back; // back entries, stack based, copied into front
44+ int used_back; // back entries, stack based, copied into front on </close>
45+ // back entries which haven't yet been closed have nodes.length == -1
4546 node* nodes; // dynamically allocated buffer
4647 node* alloc; // what to call free on
4748} node_buffer;