aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/error.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/error.c')
-rw-r--r--src/error.c14
1 files changed, 2 insertions, 12 deletions
diff --git a/src/error.c b/src/error.c
index 7c4e151..afa2ac1 100644
--- a/src/error.c
+++ b/src/error.c
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2012-2023 Robin Haberkorn
+ * Copyright (C) 2012-2024 Robin Haberkorn
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -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,
@@ -161,10 +154,7 @@ teco_error_add_frame_toplevel(void)
teco_error_add_frame(TECO_FRAME_TOPLEVEL, 0);
}
-#ifndef NDEBUG
-__attribute__((destructor))
-#endif
-void
+void TECO_DEBUG_CLEANUP
teco_error_clear_frames(void)
{
teco_stailq_entry_t *entry;