diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2026-01-11 20:06:45 -0500 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2026-01-11 20:06:45 -0500 |
| commit | b97ea6b6ac3498b21321e1f93ccc1a2dd145e9d7 (patch) | |
| tree | 834180f2c5a2ad29424279153d01c2bd52679823 /src/parse/functions.c | |
| parent | 573656fce2b7e1b0fc36944f60fd135117b6bbb6 (diff) | |
Rename AST nodes: Int -> Integer, Num -> Number
Diffstat (limited to 'src/parse/functions.c')
| -rw-r--r-- | src/parse/functions.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/parse/functions.c b/src/parse/functions.c index 8fb9f78e..e4eb1317 100644 --- a/src/parse/functions.c +++ b/src/parse/functions.c @@ -119,7 +119,7 @@ ast_t *parse_func_def(parse_ctx_t *ctx, const char *pos) { if (match_word(&pos, "inline")) { is_inline = true; } else if (match_word(&pos, "cached")) { - if (!cache_ast) cache_ast = NewAST(ctx->file, pos, pos, Int, .str = "-1"); + if (!cache_ast) cache_ast = NewAST(ctx->file, pos, pos, Integer, .str = "-1"); } else if (match_word(&pos, "cache_size")) { whitespace(ctx, &pos); if (!match(&pos, "=")) parser_err(ctx, flag_start, pos, "I expected a value for 'cache_size'"); @@ -153,7 +153,7 @@ ast_t *parse_convert_def(parse_ctx_t *ctx, const char *pos) { if (match_word(&pos, "inline")) { is_inline = true; } else if (match_word(&pos, "cached")) { - if (!cache_ast) cache_ast = NewAST(ctx->file, pos, pos, Int, .str = "-1"); + if (!cache_ast) cache_ast = NewAST(ctx->file, pos, pos, Integer, .str = "-1"); } else if (match_word(&pos, "cache_size")) { whitespace(ctx, &pos); if (!match(&pos, "=")) parser_err(ctx, flag_start, pos, "I expected a value for 'cache_size'"); |
