compilation fixes

This commit is contained in:
Vítor Manuel de Morais Santos Costa
2009-10-31 00:18:13 +00:00
parent bda231f24d
commit 6a8cee8b79
7 changed files with 8 additions and 6 deletions

View File

@@ -1052,7 +1052,6 @@ InitLogDBErasedMarker(void)
Yap_heap_regs->logdb_erased_marker->ClNext = NULL;
Yap_heap_regs->logdb_erased_marker->ClSize = (UInt)NEXTOP(((LogUpdClause *)NULL)->ClCode,e);
Yap_heap_regs->logdb_erased_marker->ClCode->opc = Yap_opcode(_op_fail);
INIT_LOCK(Yap_heap_regs->logdb_erased_marker->ClLock);
INIT_CLREF_COUNT(Yap_heap_regs->logdb_erased_marker);
}

View File

@@ -61,6 +61,10 @@
* *
*************************************************************************/
#ifndef NULL
#include <stdio.h>
#endif
#if ALIGN_LONGS
/* */ typedef Int DISPREG;
/* */ typedef CELL SMALLUNSGN;

View File

@@ -47,7 +47,7 @@
#endif
#ifdef THREADS
INIT_LOCK(Yap_heap_regs->thread_handles_lock);
InitThreadHandles;
InitThreadHandles();
#endif

View File

@@ -805,7 +805,6 @@ RestoreLogDBErasedMarker(void)
Yap_heap_regs->logdb_erased_marker->ClNext = NULL;
Yap_heap_regs->logdb_erased_marker->ClSize = (UInt)NEXTOP(((LogUpdClause *)NULL)->ClCode,e);
Yap_heap_regs->logdb_erased_marker->ClCode->opc = Yap_opcode(_op_fail);
REINIT_LOCK(Yap_heap_regs->logdb_erased_marker->ClLock);
INIT_CLREF_COUNT(Yap_heap_regs->logdb_erased_marker);
}

View File

@@ -48,7 +48,7 @@ worker_local wl WorkerLocak void void
#endif
#ifdef THREADS
lockvar thread_handles_lock ThreadHandlesLock MkLock
struct thandle thread_handle[MAX_THREADS] ThreadHandle InitThreadHandles void
struct thandle thread_handle[MAX_THREADS] ThreadHandle InitThreadHandles() void
#endif
/* memory management */