boehm-gc: revert all CACAO-specific modifications; this is now an exact copy of the...
[cacao.git] / src / vm / types.h
index 42879d658d995b8d1f805565b5f9cec71a75e01f..3a775bfe09f6c526ef77334d65f4d9525f3f6c90 100644 (file)
@@ -1,9 +1,7 @@
 /* src/vm/types.h - type definitions for CACAO's internal types
 
-   Copyright (C) 1996-2005 R. Grafl, A. Krall, C. Kruegel, C. Oates,
-   R. Obermaisser, M. Platter, M. Probst, S. Ring, E. Steiner,
-   C. Thalinger, D. Thuernbeck, P. Tomsich, C. Ullrich, J. Wenninger,
-   Institut f. Computersprachen - TU Wien
+   Copyright (C) 1996-2005, 2006, 2007, 2008, 2009
+   CACAOVM - Verein zur Foerderung der freien virtuellen Maschine CACAO
 
    This file is part of CACAO.
 
 
    You should have received a copy of the GNU General Public License
    along with this program; if not, write to the Free Software
-   Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
-   02111-1307, USA.
-
-   Contact: cacao@complang.tuwien.ac.at
-
-   Authors: Reinhard Grafl
-            Andreas  Krall
-
-   Changes: Christian Thalinger
-
-   $Id: types.h 3214 2005-09-19 13:03:22Z twisti $
+   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+   02110-1301, USA.
 
 */
 
 
 #include "config.h"
 
+#include <stdint.h>
+
 
 /* In this file we check for unknown pointersizes, so we don't have to
    do this somewhere else. */
 
 /* Define the sizes of the integer types used internally by CACAO. ************/
 
-typedef signed char             s1;
-typedef unsigned char           u1;
-typedef signed short int        s2;
-typedef unsigned short int      u2;
+typedef int8_t            s1;
+typedef uint8_t           u1;
+
+typedef int16_t           s2;
+typedef uint16_t          u2;
 
-typedef signed int              s4;
-typedef unsigned int            u4;
+typedef int32_t           s4;
+typedef uint32_t          u4;
 
-#if SIZEOF_VOID_P == 8
-typedef signed long int         s8;
-typedef unsigned long int       u8;
-#elif SIZEOF_VOID_P == 4
-typedef signed long long int    s8;
-typedef unsigned long long int  u8;
-#else
-#error unknown pointer size
-#endif
+typedef int64_t           s8;
+typedef uint64_t          u8;
 
 
 /* Define the size of a function pointer used in function pointer casts. ******/
 
-#if SIZEOF_VOID_P == 8
-typedef u8                      ptrint;
-#else
-typedef u4                      ptrint;
-#endif
+typedef uintptr_t                      ptrint;
 
 #endif /* _CACAO_TYPES_H */