From 71f232282a6bb3a45bd020e3681ac0dd90371c63 Mon Sep 17 00:00:00 2001 From: "Chloe M." Date: Sat, 23 May 2026 19:01:51 -0400 Subject: core: tokbuf: Fix up token buffer Signed-off-by: Chloe M. --- include/cescal/tokbuf.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'include') diff --git a/include/cescal/tokbuf.h b/include/cescal/tokbuf.h index 61b80a3..dd1a2ab 100644 --- a/include/cescal/tokbuf.h +++ b/include/cescal/tokbuf.h @@ -37,6 +37,16 @@ int tokbuf_init(struct tokbuf *tokbuf); */ int tokbuf_push(struct tokbuf *tokbuf, struct token *tok); +/* + * Pop a token from the token buffer + * + * @tokbuf: Token buffer to pop from + * @res: Result is written here + * + * Returns zero on success + */ +int tokbuf_pop(struct tokbuf *tokbuf, struct token *res); + /* * Peek at the token buffer from a negative offset backwards * -- cgit v1.2.3