diff options
| author | Chloe M. <chloe@mirocom.org> | 2026-05-23 19:01:51 -0400 |
|---|---|---|
| committer | Chloe M. <chloe@mirocom.org> | 2026-05-23 19:01:51 -0400 |
| commit | 71f232282a6bb3a45bd020e3681ac0dd90371c63 (patch) | |
| tree | c0d9a93318c13360fced71a6d71c6054c1a89f99 /include | |
| parent | dba31ae0adcef456fe2405f7c59afae716b3bef9 (diff) | |
core: tokbuf: Fix up token buffer
Signed-off-by: Chloe M. <chloe@mirocom.org>
Diffstat (limited to 'include')
| -rw-r--r-- | include/cescal/tokbuf.h | 10 |
1 files changed, 10 insertions, 0 deletions
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 @@ -38,6 +38,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 * * @tokbuf: Token buffer to read from |
