|
From: Vitor S. C. <vs...@us...> - 2008-08-08 14:05:25
|
Update of /cvsroot/yap/H In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv29177/H Modified Files: Heap.h Regs.h clause.h Log Message: more thread fixes. Index: Heap.h =================================================================== RCS file: /cvsroot/yap/H/Heap.h,v retrieving revision 1.135 retrieving revision 1.136 diff -u -r1.135 -r1.136 --- Heap.h 7 Aug 2008 20:51:23 -0000 1.135 +++ Heap.h 8 Aug 2008 14:05:34 -0000 1.136 @@ -584,7 +584,7 @@ } all_heap_codes; #ifdef USE_SYSTEM_MALLOC -struct various_codes *Yap_heap_regs; +extern struct various_codes *Yap_heap_regs; #else #define Yap_heap_regs ((all_heap_codes *)HEAP_INIT_BASE) #endif Index: Regs.h =================================================================== RCS file: /cvsroot/yap/H/Regs.h,v retrieving revision 1.40 retrieving revision 1.41 diff -u -r1.40 -r1.41 --- Regs.h 25 Mar 2008 22:03:13 -0000 1.40 +++ Regs.h 8 Aug 2008 14:05:34 -0000 1.41 @@ -763,7 +763,7 @@ when we come from a longjmp */ #if PUSH_REGS /* In this case we need to initialise the abstract registers */ -REGSTORE Yap_standard_regs; +extern REGSTORE Yap_standard_regs; #endif /* PUSH_REGS */ /******************* controlling debugging ****************************/ Index: clause.h =================================================================== RCS file: /cvsroot/yap/H/clause.h,v retrieving revision 1.53 retrieving revision 1.54 diff -u -r1.53 -r1.54 --- clause.h 7 Aug 2008 20:51:23 -0000 1.53 +++ clause.h 8 Aug 2008 14:05:34 -0000 1.54 @@ -186,6 +186,7 @@ #define INIT_CLREF_COUNT(X) (X)->ClRefCount = 0 #define INC_CLREF_COUNT(X) (X)->ClRefCount++ #define DEC_CLREF_COUNT(X) (X)->ClRefCount-- + #define CL_IN_USE(X) ((X)->ClRefCount) #else #define INIT_CLREF_COUNT(X) |