diff options
author | Emanuele Giaquinta <exg@irssi.org> | 2007-05-31 13:19:05 +0000 |
---|---|---|
committer | exg <exg@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2007-05-31 13:19:05 +0000 |
commit | d3687d8a973e507db22e1565592c5ebdd7b017c4 (patch) | |
tree | 351503e1ea38518ed1ca31252afd4fee40ad50c1 /src/fe-common | |
parent | bd7bc8781ba1d486d5346096ff352112f9b7d98d (diff) | |
download | irssi-d3687d8a973e507db22e1565592c5ebdd7b017c4.zip |
Rename IS_PRINTABLE macro to unichar_isprint and move it to utf8.h.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4534 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/fe-common')
-rw-r--r-- | src/fe-common/core/utf8.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/fe-common/core/utf8.h b/src/fe-common/core/utf8.h index 9454f77d..067a9df7 100644 --- a/src/fe-common/core/utf8.h +++ b/src/fe-common/core/utf8.h @@ -32,4 +32,6 @@ void utf16_to_utf8_with_pos(const unichar *str, int spos, char *out, int *opos); /* Returns width for character (0-2). */ int mk_wcwidth(unichar c); +#define unichar_isprint(c) (((c) & ~0x80) >= 32) + #endif |