indenting
This commit is contained in:
parent
7b977c2538
commit
d375d0ffbb
@ -2503,6 +2503,7 @@ static Term GetDBTerm(DBTerm *DBSP, int src USES_REGS) {
|
|||||||
CalculateStackGap(PASS_REGS1);
|
CalculateStackGap(PASS_REGS1);
|
||||||
if (HR + NOf > ASP - EventFlag / sizeof(CELL)) {
|
if (HR + NOf > ASP - EventFlag / sizeof(CELL)) {
|
||||||
if (LOCAL_PrologMode & InErrorMode) {
|
if (LOCAL_PrologMode & InErrorMode) {
|
||||||
|
LOCAL_PrologMode &= ~InErrorMode;
|
||||||
if (HR + NOf > ASP)
|
if (HR + NOf > ASP)
|
||||||
fprintf(stderr,
|
fprintf(stderr,
|
||||||
"\n\n [ FATAL ERROR: No Stack for Error Handling ]\n");
|
"\n\n [ FATAL ERROR: No Stack for Error Handling ]\n");
|
||||||
@ -2713,6 +2714,9 @@ static PredEntry *new_lu_entry(Term t) {
|
|||||||
pe->PredFlags |= LogUpdatePredFlag;
|
pe->PredFlags |= LogUpdatePredFlag;
|
||||||
if (IsAtomTerm(t)) {
|
if (IsAtomTerm(t)) {
|
||||||
pe->PredFlags |= AtomDBPredFlag;
|
pe->PredFlags |= AtomDBPredFlag;
|
||||||
|
pe->FunctorOfPred = (Functor)AtomOfTerm(t);
|
||||||
|
} else {
|
||||||
|
pe->FunctorOfPred = FunctorOfTerm(t);
|
||||||
}
|
}
|
||||||
pe->ArityOfPE = 3;
|
pe->ArityOfPE = 3;
|
||||||
pe->OpcodeOfPred = Yap_opcode(_op_fail);
|
pe->OpcodeOfPred = Yap_opcode(_op_fail);
|
||||||
|
@ -553,6 +553,7 @@ yamop *Yap_Error__(const char *file, const char *function, int lineno,
|
|||||||
LOCAL_PrologMode &= ~InErrorMode;
|
LOCAL_PrologMode &= ~InErrorMode;
|
||||||
return (P);
|
return (P);
|
||||||
default: {
|
default: {
|
||||||
|
LOCAL_PrologMode &= ~InErrorMode;
|
||||||
Term ts[3];
|
Term ts[3];
|
||||||
ts[2] = where;
|
ts[2] = where;
|
||||||
nt[0] = mkerrort(type, ts + 2);
|
nt[0] = mkerrort(type, ts + 2);
|
||||||
@ -561,6 +562,7 @@ yamop *Yap_Error__(const char *file, const char *function, int lineno,
|
|||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
LOCAL_PrologMode &= ~InErrorMode;
|
||||||
if (type != ABORT_EVENT) {
|
if (type != ABORT_EVENT) {
|
||||||
Term location;
|
Term location;
|
||||||
|
|
||||||
@ -607,7 +609,6 @@ yamop *Yap_Error__(const char *file, const char *function, int lineno,
|
|||||||
/* disable active signals at this point */
|
/* disable active signals at this point */
|
||||||
LOCAL_Signals = 0;
|
LOCAL_Signals = 0;
|
||||||
CalculateStackGap(PASS_REGS1);
|
CalculateStackGap(PASS_REGS1);
|
||||||
LOCAL_PrologMode &= ~InErrorMode;
|
|
||||||
#if DEBUG
|
#if DEBUG
|
||||||
// DumpActiveGoals( PASS_REGS1 );
|
// DumpActiveGoals( PASS_REGS1 );
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user