From c30e2df228fc42653149752b56e50e77bae03b9f Mon Sep 17 00:00:00 2001 From: "kr.angelov" Date: Mon, 11 Aug 2014 15:53:41 +0000 Subject: pattern matching in def rules is now supported --- src/runtime/c/gu/seq.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/runtime/c/gu/seq.c') diff --git a/src/runtime/c/gu/seq.c b/src/runtime/c/gu/seq.c index 2c3d6c3e3..2b99df318 100644 --- a/src/runtime/c/gu/seq.c +++ b/src/runtime/c/gu/seq.c @@ -136,6 +136,12 @@ 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) { -- cgit v1.2.3