diff options
author | Xavier G <xavier.github@kindwolf.org> | 2016-05-13 17:35:47 +0200 |
---|---|---|
committer | Xavier G <xavier.github@kindwolf.org> | 2016-05-13 17:35:47 +0200 |
commit | 5d69b4c4a7d334ca29e61969712f5f8eedfa5cd9 (patch) | |
tree | 95f3d1ba1a7809341097f6bab73a4819c0c4b05b /src/core | |
parent | a26a387545ae530cb3222fd4daa5ed088e068de2 (diff) | |
download | irssi-5d69b4c4a7d334ca29e61969712f5f8eedfa5cd9.zip |
Convert string policies from #define to enum.
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/utf8.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/core/utf8.h b/src/core/utf8.h index 411b2048..5bb53193 100644 --- a/src/core/utf8.h +++ b/src/core/utf8.h @@ -24,8 +24,10 @@ int string_advance(char const **str, int policy); * TREAT_STRING_AS_UTF8 means strings are to be treated using g_utf8_* * functions. */ -#define TREAT_STRING_AS_BYTES 0 -#define TREAT_STRING_AS_UTF8 1 +enum str_policy { + TREAT_STRING_AS_BYTES, + TREAT_STRING_AS_UTF8 +}; /* Return how the str string ought to be treated: TREAT_STRING_AS_UTF8 if the * terminal handles UTF-8 and if the string appears to be a valid UTF-8 string; |