mirror of
https://github.com/irssi/irssi.git
synced 2026-08-09 03:40:16 +02:00
Convert string policies from #define to enum.
This commit is contained in:
parent
a26a387545
commit
5d69b4c4a7
1 changed files with 4 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue