diff options
Diffstat (limited to 'src/error.h')
-rw-r--r-- | src/error.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/error.h b/src/error.h index 5ffd434..2df7b89 100644 --- a/src/error.h +++ b/src/error.h @@ -44,6 +44,7 @@ typedef enum { TECO_ERROR_MOVE, TECO_ERROR_WORDS, TECO_ERROR_RANGE, + TECO_ERROR_SUBPATTERN, TECO_ERROR_INVALIDQREG, TECO_ERROR_QREGOPUNSUPPORTED, TECO_ERROR_QREGCONTAINSNULL, @@ -108,6 +109,13 @@ teco_error_range_set(GError **error, const gchar *cmd) } static inline void +teco_error_subpattern_set(GError **error, const gchar *cmd) +{ + g_set_error(error, TECO_ERROR, TECO_ERROR_SUBPATTERN, + "Invalid subpattern specified for <%s>", cmd); +} + +static inline void teco_error_invalidqreg_set(GError **error, const gchar *name, gsize len, gboolean local) { g_autofree gchar *name_printable = teco_string_echo(name, len); |