Navigation Menu

Skip to content

Commit

Permalink
- moved s_ee_write_char function within the WIN32 check to allow the …
Browse files Browse the repository at this point in the history
…unicode

  change to compile on windows.  unicode is not yet supported in the windows
  version of the repl.
    c/expeditor.c
  • Loading branch information
akeep committed Aug 1, 2016
1 parent 87d4811 commit 4d2f900
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 2 deletions.
4 changes: 4 additions & 0 deletions LOG
Expand Up @@ -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
Binary file modified boot/i3nt/petite.boot 100644 → 100755
Binary file not shown.
Binary file modified boot/i3nt/scheme.boot 100644 → 100755
Binary file not shown.
9 changes: 7 additions & 2 deletions c/expeditor.c
Expand Up @@ -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
Expand Down Expand Up @@ -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;

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

0 comments on commit 4d2f900

Please sign in to comment.