mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-06 17:52:51 -06:00
added gu_buf_flush in seq.c which removes all elements from a buffer
This commit is contained in:
@@ -121,6 +121,9 @@ gu_buf_trim_n(GuBuf* buf, size_t n_elems);
|
||||
const void*
|
||||
gu_buf_trim(GuBuf* buf);
|
||||
|
||||
void
|
||||
gu_buf_flush(GuBuf* buf);
|
||||
|
||||
#define gu_buf_pop(BUF, T) \
|
||||
(*(T*)gu_buf_trim(BUF))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user