This commit is contained in:
Vitor Santos Costa
2018-04-03 18:31:51 +01:00
parent c1d81ea7c6
commit 3a44eb657d
12 changed files with 46 additions and 12084 deletions

View File

@@ -299,13 +299,17 @@ bool Yap_WriteTerm(int output_stream, Term t, Term opts USES_REGS) {
Yap_Error(LOCAL_Error_TYPE, opts, NULL);
return false;
}
yap_error_descriptor_t new;
Yap_pushErrorContext(&new);
yhandle_t mySlots = Yap_StartSlots();
LOCK(GLOBAL_Stream[output_stream].streamlock);
write_term(output_stream, t, args PASS_REGS);
UNLOCK(GLOBAL_Stream[output_stream].streamlock);
free(args);
Yap_CloseSlots(mySlots);
Yap_RaiseException();
Yap_popErrorContext(true);
return (TRUE);
}