diff options
author | Jérémie Courrèges-Anglas <jca@wxcvbn.org> | 2017-09-17 22:24:37 +0200 |
---|---|---|
committer | Jérémie Courrèges-Anglas <jca@wxcvbn.org> | 2017-09-17 22:24:37 +0200 |
commit | ec10077b9f943212a9c0c634d79ada4f88b0d0c1 (patch) | |
tree | 96f1e3e0be013484bd500290946deea19971b564 | |
parent | ca1ed401ddfc1ab88b532c3f955c2ee02435be42 (diff) | |
download | ratpoison-ec10077b9f943212a9c0c634d79ada4f88b0d0c1.zip |
Move RP_IS_UTF8_* macros in utf8.h
Only used in editor.c when introduced, but they're used elsewhere since.
-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); |