memory. All functions writing values into the data area return the offset
relative the begin of the code area (start of procedure).
- $Id: codegen.inc 2507 2005-05-23 08:34:04Z twisti $
+ $Id: codegen.inc 2589 2005-06-08 10:59:04Z twisti $
*/
dr = cd->datareferences;
while (dr != NULL) {
- *((functionptr *) ((ptrint) epoint + (ptrint) dr->pos - POINTERSIZE)) = epoint;
+ *((functionptr *) ((ptrint) epoint + (ptrint) dr->pos -
+ SIZEOF_VOID_P)) = epoint;
dr = dr->next;
}
}
Changes:
- $Id: codegen.inc.h 2318 2005-04-21 19:44:18Z twisti $
+ $Id: codegen.inc.h 2589 2005-06-08 10:59:04Z twisti $
*/
#define MCODEINITSIZE (1<<15) /* 32 Kbyte code area initialization size */
#define DSEGINITSIZE (1<<12) /* 4 Kbyte data area initialization size */
-#if POINTERSIZE == 8
+#if SIZEOF_VOID_P == 8
#define dseg_addaddress(cd,value) dseg_adds8((cd), (s8) (value))
#else
#define dseg_addaddress(cd,value) dseg_adds4((cd), (s4) (value))