allow the option to have priorities above 1200
This commit is contained in:
@@ -1143,7 +1143,7 @@ setInitialValue( bool bootstrap, flag_func f, const char *s,flag_term *tarr )
|
||||
Term t0;
|
||||
if (bootstrap) { return false; }
|
||||
CACHE_REGS
|
||||
t0 = Yap_StringToTerm(s, strlen(s)+1, &LOCAL_encoding, 1200, NULL);
|
||||
t0 = Yap_StringToTerm(s, strlen(s)+1, &LOCAL_encoding, GLOBAL_MaxPriority, NULL);
|
||||
if (!t0)
|
||||
return false;
|
||||
if (IsAtomTerm(t0) || IsIntTerm(t0)) {
|
||||
@@ -1447,7 +1447,7 @@ Yap_InitFlags( bool bootstrap) {
|
||||
local_flags_setup;
|
||||
while (f->name != NULL) {
|
||||
bool itf = setInitialValue( bootstrap, f->def, f->init, LOCAL_Flags+LOCAL_flagCount );
|
||||
// Term itf = Yap_StringToTerm(f->init, strlen(f->init)+1, LOCAL_encoding, 1200, &tp);
|
||||
// Term itf = Yap_StringToTerm(f->init, strlen(f->init)+1, LOCAL_encoding, GLOBAL_MaxPriority, &tp);
|
||||
if (itf) {
|
||||
initFlag( f, LOCAL_flagCount, false);
|
||||
}
|
||||
|
Reference in New Issue
Block a user