- 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:
Andy Keep 2016-07-31 22:05:50 -04:00
parent 14aadeab83
commit 96a3e21c46
2 changed files with 11 additions and 2 deletions

4
LOG
View File

@ -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

View File

@ -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);
}