Adding Atari TOS support
[pforth] / csrc / pf_types.h
index 52ad9f7..6e0ea75 100644 (file)
@@ -1,35 +1,40 @@
-/* @(#) pf_types.h 96/12/18 1.3 */\r
-#ifndef _pf_types_h\r
-#define _pf_types_h\r
-\r
-/***************************************************************\r
-** Type declarations for PForth, a Forth based on 'C'\r
-**\r
-** Author: Phil Burk\r
-** Copyright 1994 3DO, Phil Burk, Larry Polansky, David Rosenboom\r
-**\r
-** The pForth software code is dedicated to the public domain,\r
-** and any third party may reproduce, distribute and modify\r
-** the pForth software code or any derivative works thereof\r
-** without any compensation or license.  The pForth software\r
-** code is provided on an "as is" basis without any warranty\r
-** of any kind, including, without limitation, the implied\r
-** warranties of merchantability and fitness for a particular\r
-** purpose and their equivalents under the laws of any jurisdiction.\r
-**\r
-***************************************************************/\r
-\r
-/***************************************************************\r
-** Type Declarations\r
-***************************************************************/\r
-\r
-#ifndef Err\r
-       typedef long Err;\r
-#endif\r
-\r
-typedef cell_t  *dicptr;\r
-\r
-typedef char  ForthString;\r
-typedef char *ForthStringPtr;\r
-\r
-#endif /* _pf_types_h */\r
+/* @(#) pf_types.h 96/12/18 1.3 */
+#ifndef _pf_types_h
+#define _pf_types_h
+
+/***************************************************************
+** Type declarations for PForth, a Forth based on 'C'
+**
+** Author: Phil Burk
+** Copyright 1994 3DO, Phil Burk, Larry Polansky, David Rosenboom
+**
+** The pForth software code is dedicated to the public domain,
+** and any third party may reproduce, distribute and modify
+** the pForth software code or any derivative works thereof
+** without any compensation or license.  The pForth software
+** code is provided on an "as is" basis without any warranty
+** of any kind, including, without limitation, the implied
+** warranties of merchantability and fitness for a particular
+** purpose and their equivalents under the laws of any jurisdiction.
+**
+***************************************************************/
+
+/***************************************************************
+** Type Declarations
+***************************************************************/
+
+#if !defined(AMIGA) && !defined(ATARI)
+#include <sys/types.h>
+#endif
+
+/* file_offset_t is used in place of off_t */
+typedef long file_offset_t;
+
+#ifndef Err
+    typedef long Err;
+#endif
+
+typedef char  ForthString;
+typedef char *ForthStringPtr;
+
+#endif /* _pf_types_h */