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:
parent
bd9cb90e02
commit
20c649d7ef
2
picoc.h
2
picoc.h
|
@ -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 */
|
||||
|
|
15
platform.h
15
platform.h
|
@ -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
|
||||
|
||||
|
|
|
@ -80,6 +80,7 @@ jmp_buf ExitBuf;
|
|||
/* exit the program */
|
||||
void PlatformExit()
|
||||
{
|
||||
*(char *)0 = 'a';
|
||||
longjmp(ExitBuf, 1);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue