diff options
| author | Lizzy Fleckenstein <lizzy@vlhl.dev> | 2026-04-12 22:34:18 +0200 |
|---|---|---|
| committer | Lizzy Fleckenstein <lizzy@vlhl.dev> | 2026-04-12 22:45:04 +0200 |
| commit | d58e1aea4b57e890706b96565c8c1fd9e09b42ec (patch) | |
| tree | 61a838aa434da6a890ace72898b854328e0b688f /src/parse.c | |
| parent | 5aa88cf26954a738d0f22a7c90bb33f1df422919 (diff) | |
| download | animtool-d58e1aea4b57e890706b96565c8c1fd9e09b42ec.tar.xz | |
Diffstat (limited to 'src/parse.c')
| -rw-r--r-- | src/parse.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/parse.c b/src/parse.c index b6af245..57cab52 100644 --- a/src/parse.c +++ b/src/parse.c @@ -15,7 +15,7 @@ static struct var *get_var(struct token *tok, struct source *src, struct registr struct var *var = nullptr; map_find(®->vars, tok->var, &var); if (!var) - source_error(src, tok->loc, "no such variable: $%.*s", PSTR(tok->var)); + source_error(src, tok->loc, "no such variable: $%.*s", PSTR(tok->var)); return var; } @@ -102,7 +102,7 @@ double parse_eval_expr_range(struct token *tok, struct source *src, struct regis source_error(src, tok->loc, "%f is smaller than %f", num, low); if (num > high) source_error(src, tok->loc, "%f is larger than %f", num, high); - return num; + return num; } unsigned int parse_eval_expr_uint(struct token *tok, struct source *src, struct registry *reg) @@ -299,7 +299,7 @@ static void parse_pos(struct token *tok, struct pos *pos, struct source *src, st switch (tok->op.type) { case OP_POS: if (tok->op.children.len != 3) - source_error(src, tok->loc, "'pos' expects exactly three arguments"); + source_error(src, tok->loc, "'pos' expects exactly three arguments"); pos->type = POS_ABSOLUTE; for (size_t i = 0; i < tok->op.children.len; i++) parse_expr(&tok->op.children.ptr[i], &pos->absolute[i], src, reg, true); @@ -336,12 +336,12 @@ static void parse_surface(size_t n_attrs, struct token attrs[n_attrs], struct su break; case OP_COLOR: if (tok->op.children.len != 1) - source_error(src, tok->loc, "'color' expects exactly one argument"); + source_error(src, tok->loc, "'color' expects exactly one argument"); expr_free(&surf->color); parse_expr(&tok->op.children.ptr[0], &surf->color, src, reg, true); break; default: - source_error(src, tok->op.name_loc, "not a valid surface attribute"); + source_error(src, tok->op.name_loc, "not a valid surface attribute"); } } } |
