summaryrefslogtreecommitdiff
path: root/src/runtime/c/gu
diff options
context:
space:
mode:
authorkr.angelov <kr.angelov@gmail.com>2014-09-25 10:35:06 +0000
committerkr.angelov <kr.angelov@gmail.com>2014-09-25 10:35:06 +0000
commit14e6eec5ecdd9ca68a891dbf7173a3620f6e76c1 (patch)
tree6a4b0dd61a023a560f0c5a9b2e4d61f4a62e982e /src/runtime/c/gu
parent928217f9d91b45fe48f6e176d42ee5c80d427257 (diff)
now a complete JIT compiler and ByteCode compiler for the def rules in the abstract syntax. there might be some bugs yet to be found, meta variables and computation under lambda is only partially supported
Diffstat (limited to 'src/runtime/c/gu')
-rw-r--r--src/runtime/c/gu/mem.c3
-rw-r--r--src/runtime/c/gu/seq.c6
-rw-r--r--src/runtime/c/gu/seq.h3
3 files changed, 1 insertions, 11 deletions
diff --git a/src/runtime/c/gu/mem.c b/src/runtime/c/gu/mem.c
index 62ffef85d..cc168637e 100644
--- a/src/runtime/c/gu/mem.c
+++ b/src/runtime/c/gu/mem.c
@@ -311,9 +311,8 @@ gu_pool_free(GuPool* pool)
{
GuFinalizerNode* node = pool->finalizers;
while (node) {
- GuFinalizerNode* next = node->next;
node->fin->fn(node->fin);
- node = next;
+ node = node->next;
}
GuMemChunk* chunk = pool->chunks;
while (chunk) {
diff --git a/src/runtime/c/gu/seq.c b/src/runtime/c/gu/seq.c
index 2b99df318..2c3d6c3e3 100644
--- a/src/runtime/c/gu/seq.c
+++ b/src/runtime/c/gu/seq.c
@@ -136,12 +136,6 @@ gu_buf_data(GuBuf* buf)
return &buf->seq->data;
}
-void*
-gu_buf_last(GuBuf* buf)
-{
- return buf->seq->data + buf->elem_size*(buf->seq->len-1);
-}
-
GuSeq*
gu_buf_data_seq(GuBuf* buf)
{
diff --git a/src/runtime/c/gu/seq.h b/src/runtime/c/gu/seq.h
index 034620140..5accb0b24 100644
--- a/src/runtime/c/gu/seq.h
+++ b/src/runtime/c/gu/seq.h
@@ -65,9 +65,6 @@ gu_buf_avail(GuBuf* buf);
void*
gu_buf_data(GuBuf* buf);
-void*
-gu_buf_last(GuBuf* buf);
-
GuSeq*
gu_buf_data_seq(GuBuf* buf);