Skip to content

Commit

Permalink
lexer: make api functions public
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
jow- committed Sep 23, 2024
1 parent 855854f commit 2b2e732
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/ucode/lexer.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 2b2e732

Please sign in to comment.