From 0bb912af5d5b3e14eb27587f14147dd36bd434d1 Mon Sep 17 00:00:00 2001 From: "zik.saleeba" Date: Tue, 22 Feb 2011 19:28:08 +0000 Subject: [PATCH] Surveyor changes from Brian Schmalz git-svn-id: http://picoc.googlecode.com/svn/trunk@564 21eae674-98b7-11dd-bd71-f92a316d2d60 --- picoc.c | 2 +- platform/library_surveyor.c | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/picoc.c b/picoc.c index ac21130..2b95132 100644 --- a/picoc.c +++ b/picoc.c @@ -82,7 +82,7 @@ int picoc(char *SourceStr) } PicocExitBuf[40] = 0; - setjmp(PicocExitBuf); + PicocPlatformSetExitPoint(); if (PicocExitBuf[40]) { printf("Leaving PicoC\n\r"); PicocCleanup(); diff --git a/platform/library_surveyor.c b/platform/library_surveyor.c index c620406..283aff2 100644 --- a/platform/library_surveyor.c +++ b/platform/library_surveyor.c @@ -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); } } }