fixed problem with signal() in SURVEYOR_HOST

git-svn-id: http://picoc.googlecode.com/svn/trunk@282 21eae674-98b7-11dd-bd71-f92a316d2d60
This commit is contained in:
surveyor.com 2009-05-17 15:20:39 +00:00
parent 5cece5090c
commit db9219a324

View file

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