From ec10077b9f943212a9c0c634d79ada4f88b0d0c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9mie=20Courr=C3=A8ges-Anglas?= Date: Sun, 17 Sep 2017 22:24:37 +0200 Subject: Move RP_IS_UTF8_* macros in utf8.h Only used in editor.c when introduced, but they're used elsewhere since. --- src/editor.h | 5 ----- src/utf8.h | 5 +++++ 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'src') 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); diff --git a/src/utf8.h b/src/utf8.h index 2847b5a..20e33bd 100644 --- a/src/utf8.h +++ b/src/utf8.h @@ -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); -- cgit v1.2.3