support yap_flag(system_options,...

git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1016 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
This commit is contained in:
vsc
2004-03-04 18:33:34 +00:00
parent 307ccbc8ca
commit 0092e6fd45
5 changed files with 60 additions and 6 deletions

View File

@@ -1220,8 +1220,28 @@ Yap_WakeUp(CELL *pt0) {
}
#endif
static Int
p_yap_has_rational_trees(void)
{
#if RATIONAL_TREES
return TRUE;
#else
return FALSE;
#endif
}
void Yap_InitCoroutPreds(void)
static Int
p_yap_has_coroutining(void)
{
#if COROUTINING
return TRUE;
#else
return FALSE;
#endif
}
void
Yap_InitCoroutPreds(void)
{
#ifdef COROUTINING
Atom at;
@@ -1237,6 +1257,8 @@ void Yap_InitCoroutPreds(void)
WakeUpCode = pred;
Yap_InitAttVarPreds();
#endif /* COROUTINING */
Yap_InitCPred("$yap_has_rational_trees", 0, p_yap_has_rational_trees, SafePredFlag);
Yap_InitCPred("$yap_has_coroutining", 0, p_yap_has_coroutining, SafePredFlag);
Yap_InitCPred("$read_svar_list", 2, p_read_svar_list, SafePredFlag);
Yap_InitCPred("$set_svar_list", 2, p_set_svar_list, SafePredFlag);
Yap_InitCPred("$freeze", 2, p_freeze, 0);