| 1 | /* @(#) pf_unix.h 98/01/28 1.4 */ |
| 2 | #ifndef _pf_embedded_h |
| 3 | #define _pf_embedded_h |
| 4 | |
| 5 | /*************************************************************** |
| 6 | ** Embedded System include file for PForth, a Forth based on 'C' |
| 7 | ** |
| 8 | ** Author: Phil Burk |
| 9 | ** Copyright 1994 3DO, Phil Burk, Larry Polansky, David Rosenboom |
| 10 | ** |
| 11 | ** The pForth software code is dedicated to the public domain, |
| 12 | ** and any third party may reproduce, distribute and modify |
| 13 | ** the pForth software code or any derivative works thereof |
| 14 | ** without any compensation or license. The pForth software |
| 15 | ** code is provided on an "as is" basis without any warranty |
| 16 | ** of any kind, including, without limitation, the implied |
| 17 | ** warranties of merchantability and fitness for a particular |
| 18 | ** purpose and their equivalents under the laws of any jurisdiction. |
| 19 | ** |
| 20 | ***************************************************************/ |
| 21 | |
| 22 | #ifndef PF_NO_CLIB |
| 23 | #include <string.h> /* Needed for strlen(), memcpy(), and memset(). */ |
| 24 | #include <stdlib.h> /* Needed for exit(). */ |
| 25 | #endif |
| 26 | |
| 27 | #ifdef PF_NO_STDIO |
| 28 | #define NULL ((void *) 0) |
| 29 | #define EOF (-1) |
| 30 | #else |
| 31 | #include <stdio.h> |
| 32 | #endif |
| 33 | |
| 34 | #ifdef PF_SUPPORT_FP |
| 35 | #include <math.h> |
| 36 | |
| 37 | #ifndef PF_USER_FP |
| 38 | #include "pf_float.h" |
| 39 | #else |
| 40 | #include PF_USER_FP |
| 41 | #endif |
| 42 | #endif |
| 43 | |
| 44 | #endif /* _pf_embedded_h */ |