Surveyor changes from Brian Schmalz

git-svn-id: http://picoc.googlecode.com/svn/trunk@564 21eae674-98b7-11dd-bd71-f92a316d2d60
This commit is contained in:
zik.saleeba 2011-02-22 19:28:08 +00:00
parent 1a57866c06
commit 0bb912af5d
2 changed files with 2 additions and 3 deletions

View file

@ -82,7 +82,7 @@ int picoc(char *SourceStr)
}
PicocExitBuf[40] = 0;
setjmp(PicocExitBuf);
PicocPlatformSetExitPoint();
if (PicocExitBuf[40]) {
printf("Leaving PicoC\n\r");
PicocCleanup();

View file

@ -851,8 +851,7 @@ void Cautorun (struct ParseState *Parser, struct Value *ReturnValue, struct Valu
if (getchar(&ch)) {
if (ch == 0x1B) { // if ESC found, exit picoC
printf("found ESC\r\n");
PicocExitBuf[40] = 1;
longjmp(PicocExitBuf, 1);
PlatformExit(0);
}
}
}