=================================================================== RCS file: /home/cvs/OpenXM_contrib2/asir2000/parse/gc_risa.c,v retrieving revision 1.7 retrieving revision 1.10 diff -u -p -r1.7 -r1.10 --- OpenXM_contrib2/asir2000/parse/gc_risa.c 2009/02/06 08:58:28 1.7 +++ OpenXM_contrib2/asir2000/parse/gc_risa.c 2011/05/11 06:03:53 1.10 @@ -1,5 +1,8 @@ -/* $OpenXM: OpenXM_contrib2/asir2000/parse/gc_risa.c,v 1.6 2009/02/05 11:25:59 ohara Exp $ */ +/* $OpenXM: OpenXM_contrib2/asir2000/parse/gc_risa.c,v 1.9 2009/02/16 17:23:52 ohara Exp $ */ +#if defined(VISUAL) +#include "private/gcconfig.h" +#endif #include "gc.h" #include @@ -46,10 +49,10 @@ int get_heapsize() #define BYTES_TO_WORDS(x) ((x)>>2) #endif -long get_allocwords() +size_t get_allocwords() { size_t n = GC_get_total_bytes(); - return (long)BYTES_TO_WORDS(n); /* bytes to words */ + return BYTES_TO_WORDS(n); /* bytes to words */ } static double asir_start_time; @@ -182,7 +185,7 @@ double get_clock() #endif #endif -#if 1 +#if !defined(NO_ASIR_GC) extern int GC_free_space_numerator; void Risa_GC_get_adj(int *nm, int *dn) {