From d5b25f942147b09511d77d5470cd38a1e1643fb9 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Sun, 11 Jul 2021 07:18:37 +0200 Subject: treewide: harmonize function naming - Ensure that most functions follow the subject_verb naming schema - Move type related function from value.c to types.c - Rename value.c to vallist.c Signed-off-by: Jo-Philipp Wich --- compiler.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'compiler.c') diff --git a/compiler.c b/compiler.c index a1d058a..f38e6ad 100644 --- a/compiler.c +++ b/compiler.c @@ -20,7 +20,7 @@ #include "ucode/chunk.h" #include "ucode/vm.h" /* I_* */ #include "ucode/source.h" -#include "ucode/lib.h" /* format_error_context() */ +#include "ucode/lib.h" /* uc_error_context_format() */ static void uc_compiler_compile_unary(uc_compiler_t *compiler, bool assignable); static void uc_compiler_compile_binary(uc_compiler_t *compiler, bool assignable); @@ -181,7 +181,7 @@ uc_compiler_syntax_error(uc_compiler_t *compiler, size_t off, const char *fmt, . if (line) ucv_stringbuf_printf(buf, "In line %zu, byte %zu:\n", line, byte); - if (format_error_context(buf, uc_compiler_current_source(compiler), NULL, off)) + if (uc_error_context_format(buf, uc_compiler_current_source(compiler), NULL, off)) ucv_stringbuf_append(buf, "\n\n"); } @@ -229,7 +229,7 @@ uc_compiler_parse_consume(uc_compiler_t *compiler, uc_tokentype_t type) } uc_compiler_syntax_error(compiler, compiler->parser->curr.pos, - "Unexpected token\nExpecting %s", uc_get_tokenname(type)); + "Unexpected token\nExpecting %s", uc_tokenname(type)); } static bool -- cgit v1.2.3