Added some changes for umon suggested by Ed Sutter

git-svn-id: http://picoc.googlecode.com/svn/trunk@275 21eae674-98b7-11dd-bd71-f92a316d2d60
This commit is contained in:
zik.saleeba 2009-05-05 22:12:59 +00:00
parent bd9cb90e02
commit 20c649d7ef
3 changed files with 18 additions and 0 deletions

View file

@ -372,5 +372,7 @@ void PlatformPrintf(const char *Format, ...);
void PlatformVPrintf(const char *Format, va_list Args);
void PlatformExit();
void PlatformLibraryInit();
void Initialise();
void Cleanup();
#endif /* PICOC_H */

View file

@ -7,6 +7,7 @@
* #define UNIX_HOST
* #define FLYINGFOX_HOST
* #define SURVEYOR_HOST
* #define UMON_HOST
*/
#ifndef SURVEYOR_HOST
@ -80,6 +81,20 @@ extern jmp_buf ExitBuf;
# undef INTERACTIVE_PROMPT_LINE
# define INTERACTIVE_PROMPT_STATEMENT "> "
# define INTERACTIVE_PROMPT_LINE "- "
# else
# ifdef UMON_HOST
# define NO_FP
# include <stdlib.h>
# include <string.h>
# include <ctype.h>
# include <sys/types.h>
# include <stdarg.h>
# include <math.h>
# include "monlib.h"
# define assert(x)
# undef PlatformSetExitPoint
# define PlatformSetExitPoint()
# endif
# endif
# endif

View file

@ -80,6 +80,7 @@ jmp_buf ExitBuf;
/* exit the program */
void PlatformExit()
{
*(char *)0 = 'a';
longjmp(ExitBuf, 1);
}