- moved s_ee_write_char function within the WIN32 check to allow the unicode
change to compile on windows. unicode is not yet supported in the windows version of the repl. c/expeditor.c original commit: 4d2f900b2c43a8be384444d965177f1410c2ab82
This commit is contained in:
parent
14aadeab83
commit
96a3e21c46
4
LOG
4
LOG
|
@ -260,3 +260,7 @@
|
|||
except that combining characters are not treated correctly for
|
||||
line-wrapping. this addresses github issue #32 and part of issue #81.
|
||||
c/expeditor.c, s/expeditor.ss
|
||||
- moved s_ee_write_char function within the WIN32 check to allow the unicode
|
||||
change to compile on windows. unicode is not yet supported in the windows
|
||||
version of the repl.
|
||||
c/expeditor.c
|
||||
|
|
|
@ -521,6 +521,11 @@ static ptr s_ee_get_clipboard(void) {
|
|||
return x;
|
||||
}
|
||||
|
||||
static void s_ee_write_char(INT c) {
|
||||
if ((unsigned)c > 255) c = '?';
|
||||
putchar(c);
|
||||
}
|
||||
|
||||
#else /* WIN32 */
|
||||
#ifdef SOLARIS
|
||||
#define NCURSES_CONST
|
||||
|
@ -1012,8 +1017,6 @@ static ptr s_ee_get_clipboard(void) {
|
|||
}
|
||||
#endif
|
||||
|
||||
#endif /* WIN32 */
|
||||
|
||||
static void s_ee_write_char(wchar_t wch) {
|
||||
locale_t old; char buf[MB_LEN_MAX]; size_t n;
|
||||
|
||||
|
@ -1027,6 +1030,8 @@ static void s_ee_write_char(wchar_t wch) {
|
|||
uselocale(old);
|
||||
}
|
||||
|
||||
#endif /* WIN32 */
|
||||
|
||||
static void s_ee_flush(void) {
|
||||
fflush(stdout);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user