summaryrefslogtreecommitdiff
path: root/src/parse.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/parse.c')
-rw-r--r--src/parse.c10
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(&reg->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");
}
}
}