From 73d574b71a10d4661ada20275cafde75aff6c1ba Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Thu, 12 Sep 2024 13:33:18 +0200 Subject: teco_string_get_coord() returns character offsets now (refs #5) * This is used for error messages (TECO macro stackframes), so it's important to display columns in characters. * Program counters are in bytes and therefore everywhere gsize. This is by glib convention. --- src/error.c | 7 ------- 1 file changed, 7 deletions(-) (limited to 'src/error.c') diff --git a/src/error.c b/src/error.c index 120ed1d..afa2ac1 100644 --- a/src/error.c +++ b/src/error.c @@ -37,13 +37,6 @@ guint teco_error_return_args = 0; */ guint teco_error_pos = 0, teco_error_line = 0, teco_error_column = 0; -void -teco_error_set_coord(const gchar *str, guint pos) -{ - teco_error_pos = pos; - teco_string_get_coord(str, pos, &teco_error_line, &teco_error_column); -} - typedef enum { TECO_FRAME_QREG, TECO_FRAME_FILE, -- cgit v1.2.3