diff options
author | Jo-Philipp Wich <jo@mein.io> | 2024-09-23 23:52:10 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2024-09-23 23:52:10 +0200 |
commit | 2b2e732b6081afb473a2cc698fd4397260b0960c (patch) | |
tree | bbddd088685164124bfbc100a97098fa280375fc | |
parent | 855854f6c2ae2e667f6bbfd5f67caab32b4ebf86 (diff) |
lexer: make api functions public
Make the lexer API functions `uc_lexer_init()`, `us_lexer_free()` and
`uc_lexer_next_token()` public for use in loadable extensions.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
-rw-r--r-- | include/ucode/lexer.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/ucode/lexer.h b/include/ucode/lexer.h index 8dcba7a..fd375b8 100644 --- a/include/ucode/lexer.h +++ b/include/ucode/lexer.h @@ -177,10 +177,10 @@ typedef struct { } uc_lexer_t; -__hidden void uc_lexer_init(uc_lexer_t *lex, uc_parse_config_t *config, uc_source_t *source); -__hidden void uc_lexer_free(uc_lexer_t *lex); +void uc_lexer_init(uc_lexer_t *lex, uc_parse_config_t *config, uc_source_t *source); +void uc_lexer_free(uc_lexer_t *lex); -__hidden uc_token_t *uc_lexer_next_token(uc_lexer_t *lex); +uc_token_t *uc_lexer_next_token(uc_lexer_t *lex); __hidden bool uc_lexer_is_keyword(uc_value_t *label); |