summaryrefslogtreecommitdiffhomepage
path: root/compiler.c
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2021-07-11 07:18:37 +0200
committerJo-Philipp Wich <jo@mein.io>2021-07-11 15:49:14 +0200
commitd5b25f942147b09511d77d5470cd38a1e1643fb9 (patch)
tree40542b06a966366e2e8a3a0118e756874a838ce6 /compiler.c
parentcc4ce8dfd13e833702c949e56049443cd01c0dfb (diff)
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 <jo@mein.io>
Diffstat (limited to 'compiler.c')
-rw-r--r--compiler.c6
1 files changed, 3 insertions, 3 deletions
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