fix threads so that they at least start
allow error handling to work with threads replace heap_base by Yap_heap_base, according to Yap's convention for globals. git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1192 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
* Last rev: *
|
||||
* mods: *
|
||||
* comments: allocating space *
|
||||
* version:$Id: alloc.c,v 1.66 2004-11-19 22:08:40 vsc Exp $ *
|
||||
* version:$Id: alloc.c,v 1.67 2004-12-02 06:06:45 vsc Exp $ *
|
||||
*************************************************************************/
|
||||
#ifdef SCCS
|
||||
static char SccsId[] = "%W% %G%";
|
||||
@@ -139,12 +139,12 @@ Yap_ExpandPreAllocCodeSpace(UInt sz0)
|
||||
|
||||
#if USE_SYSTEM_MALLOC
|
||||
|
||||
struct various_codes *heap_regs;
|
||||
struct various_codes *Yap_heap_regs;
|
||||
|
||||
static void
|
||||
InitHeap(void)
|
||||
{
|
||||
heap_regs = (struct various_codes *)malloc(sizeof(struct various_codes));
|
||||
Yap_heap_regs = (struct various_codes *)malloc(sizeof(struct various_codes));
|
||||
}
|
||||
|
||||
void
|
||||
|
Reference in New Issue
Block a user