aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/error.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/error.h')
-rw-r--r--src/error.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/error.h b/src/error.h
index 45d084a..f60be1a 100644
--- a/src/error.h
+++ b/src/error.h
@@ -40,6 +40,7 @@ typedef enum {
*/
TECO_ERROR_SYNTAX,
TECO_ERROR_ARGEXPECTED,
+ TECO_ERROR_CODEPOINT,
TECO_ERROR_MOVE,
TECO_ERROR_WORDS,
TECO_ERROR_RANGE,
@@ -74,6 +75,13 @@ teco_error_argexpected_set(GError **error, const gchar *cmd)
}
static inline void
+teco_error_codepoint_set(GError **error, const gchar *cmd)
+{
+ g_set_error(error, TECO_ERROR, TECO_ERROR_CODEPOINT,
+ "Invalid Unicode codepoint for <%s>", cmd);
+}
+
+static inline void
teco_error_move_set(GError **error, const gchar *cmd)
{
g_set_error(error, TECO_ERROR, TECO_ERROR_MOVE,