Changeset 17 for abuse/trunk/src/lisp_gc.cpp
- Timestamp:
- Nov 10, 2005, 9:41:13 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
abuse/trunk/src/lisp_gc.cpp
r4 r17 75 75 } 76 76 77 static u char*cstart,*cend,*collected_start,*collected_end;77 static uint8_t *cstart,*cend,*collected_start,*collected_end; 78 78 79 79 inline void *collect_cons_cell(void *x) … … 107 107 void *ret=x; 108 108 109 if (((u char *)x)>=cstart && ((uchar*)x)<cend)109 if (((uint8_t *)x)>=cstart && ((uint8_t *)x)<cend) 110 110 { 111 111 switch (item_type(x)) … … 188 188 ((lisp_collected_object *)x)->type=L_COLLECTED_OBJECT; 189 189 ((lisp_collected_object *)x)->new_reference=ret; 190 } else if ((u char *)x<collected_start || (uchar*)x>=collected_end)190 } else if ((uint8_t *)x<collected_start || (uint8_t *)x>=collected_end) 191 191 { 192 192 if (item_type(x)==L_CONS_CELL) // still need to remap cons_cells outside of space … … 242 242 { 243 243 int old_space=current_space; 244 cstart=(u char*)space[which_space];245 cend=(u char*)free_space[which_space];244 cstart=(uint8_t *)space[which_space]; 245 cend=(uint8_t *)free_space[which_space]; 246 246 247 247 space_size[GC_SPACE]=space_size[which_space]; … … 250 250 free_space[GC_SPACE]=space[GC_SPACE]=(char *)new_space; 251 251 252 collected_start=(u char*)new_space;253 collected_end=(((u char*)new_space)+space_size[GC_SPACE]);252 collected_start=(uint8_t *)new_space; 253 collected_end=(((uint8_t *)new_space)+space_size[GC_SPACE]); 254 254 255 255 collect_symbols(lsym_root); … … 261 261 space[which_space]=(char *)new_space; 262 262 free_space[which_space]=((char *)new_space)+ 263 (((u char *)free_space[GC_SPACE])-((uchar*)space[GC_SPACE]));263 (((uint8_t *)free_space[GC_SPACE])-((uint8_t *)space[GC_SPACE])); 264 264 current_space=old_space; 265 265 }
Note: See TracChangeset
for help on using the changeset viewer.