diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/editor.h | 5 | ||||
-rw-r--r-- | src/utf8.h | 5 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/editor.h b/src/editor.h index be79b6c..7cb463e 100644 --- a/src/editor.h +++ b/src/editor.h @@ -34,11 +34,6 @@ typedef enum edit_status EDIT_NO_OP } edit_status; -/* UTF-8 handling macros */ -#define RP_IS_UTF8_CHAR(c) (utf8_locale && (c) & 0xC0) -#define RP_IS_UTF8_START(c) (utf8_locale && ((c) & 0xC0) == 0xC0) -#define RP_IS_UTF8_CONT(c) (utf8_locale && ((c) & 0xC0) == 0x80) - /* Input line functions */ rp_input_line *input_line_new (char *prompt, char *preinput, int history_id, enum completion_styles style, completion_fn fn); void input_line_free (rp_input_line *line); @@ -1,6 +1,11 @@ #ifndef UTF8_H #define UTF8_H +/* UTF-8 handling macros */ +#define RP_IS_UTF8_CHAR(c) (utf8_locale && (c) & 0xC0) +#define RP_IS_UTF8_START(c) (utf8_locale && ((c) & 0xC0) == 0xC0) +#define RP_IS_UTF8_CONT(c) (utf8_locale && ((c) & 0xC0) == 0x80) + extern int utf8_locale; int utf8_check_locale(void); |