diff options
| author | kr.angelov <kr.angelov@gmail.com> | 2014-10-24 08:26:58 +0000 |
|---|---|---|
| committer | kr.angelov <kr.angelov@gmail.com> | 2014-10-24 08:26:58 +0000 |
| commit | 5cae9307237995a8028e3118c3a14c3b83a230c1 (patch) | |
| tree | e058fbeaff3f0f4b83139c6205da95995375118e /src/runtime/c | |
| parent | e169f225cfcc64cca2a3f2963f83950db2675f0f (diff) | |
add extern declarations for all inline functions in seq.h. this ensures that everything works even when the compiler's optimizations are off
Diffstat (limited to 'src/runtime/c')
| -rw-r--r-- | src/runtime/c/gu/seq.c | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/runtime/c/gu/seq.c b/src/runtime/c/gu/seq.c index 0bff675ac..a923081b3 100644 --- a/src/runtime/c/gu/seq.c +++ b/src/runtime/c/gu/seq.c @@ -27,6 +27,27 @@ gu_make_buf(size_t elem_size, GuPool* pool) return buf; } +extern size_t +gu_buf_length(GuBuf* buf); + +extern size_t +gu_buf_avail(GuBuf* buf); + +extern void* +gu_buf_data(GuBuf* buf); + +extern GuSeq* +gu_buf_data_seq(GuBuf* buf); + +extern void* +gu_buf_extend(GuBuf* buf); + +extern const void* +gu_buf_trim(GuBuf* buf); + +extern void +gu_buf_flush(GuBuf* buf); + static GuSeq gu_empty_seq_ = {0}; GuSeq* @@ -42,6 +63,12 @@ gu_make_seq(size_t elem_size, size_t length, GuPool* pool) return seq; } +extern size_t +gu_seq_length(GuSeq* seq); + +extern void* +gu_seq_data(GuSeq* seq); + GuSeq* gu_alloc_seq_(size_t elem_size, size_t length) { |
