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:
parent
1a57866c06
commit
0bb912af5d
2
picoc.c
2
picoc.c
|
@ -82,7 +82,7 @@ int picoc(char *SourceStr)
|
||||||
}
|
}
|
||||||
|
|
||||||
PicocExitBuf[40] = 0;
|
PicocExitBuf[40] = 0;
|
||||||
setjmp(PicocExitBuf);
|
PicocPlatformSetExitPoint();
|
||||||
if (PicocExitBuf[40]) {
|
if (PicocExitBuf[40]) {
|
||||||
printf("Leaving PicoC\n\r");
|
printf("Leaving PicoC\n\r");
|
||||||
PicocCleanup();
|
PicocCleanup();
|
||||||
|
|
|
@ -851,8 +851,7 @@ void Cautorun (struct ParseState *Parser, struct Value *ReturnValue, struct Valu
|
||||||
if (getchar(&ch)) {
|
if (getchar(&ch)) {
|
||||||
if (ch == 0x1B) { // if ESC found, exit picoC
|
if (ch == 0x1B) { // if ESC found, exit picoC
|
||||||
printf("found ESC\r\n");
|
printf("found ESC\r\n");
|
||||||
PicocExitBuf[40] = 1;
|
PlatformExit(0);
|
||||||
longjmp(PicocExitBuf, 1);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue