Changes: Mark Probst (schani) EMAIL: cacao@complang.tuwien.ac.at
Philipp Tomsich (phil) EMAIL: cacao@complang.tuwien.ac.at
- Last Change: $Id: global.h 64 1998-11-11 21:11:55Z phil $
+ Last Change: $Id: global.h 80 1998-11-18 22:06:30Z cacao $
*******************************************************************************/
*/
#undef JIT_MARKER_SUPPORT /* phil */
#undef SIZE_FROM_CLASSINFO
-//#define SIZE_FROM_CLASSINFO
/* standard includes **********************************************************/
#define ALIGN(pos,size) ( ( ((pos)+(size)-1) / (size))*(size) )
#define PADDING(pos,size) ( ALIGN((pos),(size)) - (pos) )
-#define OFFSET(s,el) ( (int) &( ((s*)0) -> el ) )
+#define OFFSET(s,el) ( (int) ( (size_t) &( ((s*)0) -> el ) ) )
#define NEW(type) ((type*) mem_alloc ( sizeof(type) ))
Changes: Mark Probst (schani) EMAIL: cacao@complang.tuwien.ac.at
Philipp Tomsich (phil) EMAIL: cacao@complang.tuwien.ac.at
- Last Change: $Id: global.h 64 1998-11-11 21:11:55Z phil $
+ Last Change: $Id: global.h 80 1998-11-18 22:06:30Z cacao $
*******************************************************************************/
*/
#undef JIT_MARKER_SUPPORT /* phil */
#undef SIZE_FROM_CLASSINFO
-//#define SIZE_FROM_CLASSINFO
/* standard includes **********************************************************/
#define ALIGN(pos,size) ( ( ((pos)+(size)-1) / (size))*(size) )
#define PADDING(pos,size) ( ALIGN((pos),(size)) - (pos) )
-#define OFFSET(s,el) ( (int) &( ((s*)0) -> el ) )
+#define OFFSET(s,el) ( (int) ( (size_t) &( ((s*)0) -> el ) ) )
#define NEW(type) ((type*) mem_alloc ( sizeof(type) ))