many fixes
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@940 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
This commit is contained in:
16
C/stdpreds.c
16
C/stdpreds.c
@@ -2468,6 +2468,20 @@ p_set_yap_flags(void)
|
||||
return(TRUE);
|
||||
}
|
||||
|
||||
static Int
|
||||
p_lock_system(void)
|
||||
{
|
||||
WRITE_LOCK(BGL);
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
static Int
|
||||
p_unlock_system(void)
|
||||
{
|
||||
WRITE_UNLOCK(BGL);
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
#ifndef YAPOR
|
||||
static Int
|
||||
p_default_sequential(void) {
|
||||
@@ -2566,6 +2580,8 @@ Yap_InitCPreds(void)
|
||||
Yap_InitCPred("halt", 1, p_halt, SyncPredFlag);
|
||||
Yap_InitCPred("halt", 0, p_halt0, SyncPredFlag);
|
||||
Yap_InitCPred("$host_type", 1, p_host_type, SyncPredFlag);
|
||||
Yap_InitCPred("$lock_system", 0, p_lock_system, SafePredFlag);
|
||||
Yap_InitCPred("$unlock_system", 0, p_unlock_system, SafePredFlag);
|
||||
/* basic predicates for the prolog machine tracer */
|
||||
/* they are defined in analyst.c */
|
||||
/* Basic predicates for the debugger */
|
||||
|
Reference in New Issue
Block a user