diff options
author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2015-09-29 22:17:28 +0200 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2015-09-29 22:17:28 +0200 |
commit | fa756339d4204bff7f2820067f58214d32780d17 (patch) | |
tree | b2e4aa0963db50808b29744fed340b93d496fde9 /spectro/conv.c | |
parent | c0b89ac5bfb90835ef01573267020e42d4fe070c (diff) |
Imported Upstream version 1.8.2upstream/1.8.2
Diffstat (limited to 'spectro/conv.c')
-rw-r--r--[-rwxr-xr-x] | spectro/conv.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/spectro/conv.c b/spectro/conv.c index 1f4d102..1a8c78b 100755..100644 --- a/spectro/conv.c +++ b/spectro/conv.c @@ -130,11 +130,11 @@ int next_con_char(void) { return c; } -/* Horrible hack to poll stdin when we're not interactive */ +/* Horrible hack to poll stdin when we're not interactive. */ /* This has the drawback that the char and returm must be */ /* written in one operation for the character to be recognised - */ /* trying to do this manually typically doesn't work unless you are */ -/* very fast an lucky. */ +/* very fast and lucky. */ static int th_read_char(void *pp) { char *rp = (char *)pp; HANDLE stdinh; @@ -166,6 +166,7 @@ int poll_con_char(void) { /* any of MSWin's async file read functions, because we */ /* have no way of ensuring that the STD_INPUT_HANDLE has been */ /* opened with FILE_FLAG_OVERLAPPED. Used a thread instead... */ + /* ReOpenFile() would fix this, but it's not available in WinXP, only Visa+ :-( */ if ((getch_thread = new_athread(th_read_char, &c)) != NULL) { HANDLE stdinh; |