fix compilation for tabling with threads

This commit is contained in:
Ricardo Rocha
2011-12-05 16:54:22 +00:00
parent d75cf3118a
commit 038c1854d0
5 changed files with 84 additions and 69 deletions

View File

@@ -412,7 +412,7 @@ static Int p_abolish_all_tables( USES_REGS1 ) {
sg_node_ptr sg_node;
tab_ent = GLOBAL_root_tab_ent;
while(tab_ent) {
while (tab_ent) {
hash = TabEnt_hash_chain(tab_ent);
TabEnt_hash_chain(tab_ent) = NULL;
free_subgoal_hash_chain(hash);
@@ -438,7 +438,7 @@ static Int p_abolish_all_tables( USES_REGS1 ) {
static Int p_abolish_all_local_tables( USES_REGS1 ) {
#ifdef THREADS
p_abolish_all_tables( PASS_REGS1 );
#else
p_abolish_all_tables();
#endif /* THREADS */