From db9219a3247849d1c47ffddae2cfeb3490fbccf9 Mon Sep 17 00:00:00 2001 From: "surveyor.com" Date: Sun, 17 May 2009 15:20:39 +0000 Subject: [PATCH] fixed problem with signal() in SURVEYOR_HOST git-svn-id: http://picoc.googlecode.com/svn/trunk@282 21eae674-98b7-11dd-bd71-f92a316d2d60 --- library_surveyor.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/library_surveyor.c b/library_surveyor.c index 19a98d0..2cb4d28 100644 --- a/library_surveyor.c +++ b/library_surveyor.c @@ -33,8 +33,7 @@ void PlatformLibraryInit() void Csignal(struct ParseState *Parser, struct Value *ReturnValue, struct Value **Param, int NumArgs) // check for kbhit, return t or nil { - unsigned char ch; - if (getchar(&ch)) + if (getsignal()) ReturnValue->Val->Integer = 1; else ReturnValue->Val->Integer = 0;