diff options
author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2024-08-28 20:52:03 +0200 |
---|---|---|
committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2024-09-09 18:17:03 +0200 |
commit | c71ed30cf0c554d288edfe87842082cc9ec393a7 (patch) | |
tree | 8ae23bf7786793ad3450942f96055ff853d448ac /src/error.h | |
parent | f79a6f65acde9753ea65887e0e0d4bc7f76ff52b (diff) | |
download | sciteco-c71ed30cf0c554d288edfe87842082cc9ec393a7.tar.gz |
implemented Unicode support for rubin/rubout and a number of commands (WIP) (refs #5)
certain test cases are still way too slow:
10000<@I/X^J/> 20000<R>
or
10000<@I/X^J/> 20000<%a-1J>
SCI_ALLOCATELINECHARACTERINDEX does not help much here.
It probably speeds up only SCI_LINEFROMINDEXPOSITION and SCI_INDEXPOSITIONFROMLINE.
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 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, |