diff options
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 |
