debug
This commit is contained in:
11
C/yap-args.c
11
C/yap-args.c
@@ -161,8 +161,7 @@ static bool consult(const char *b_file USES_REGS) {
|
||||
|
||||
/* consult in C */
|
||||
int lvl = push_text_stack();
|
||||
char *full = Malloc(YAP_FILENAME_MAX + 1);
|
||||
full[0] = '\0';
|
||||
char *full;
|
||||
/* the consult mode does not matter here, really */
|
||||
if ((osno = Yap_CheckAlias(AtomLoopStream)) < 0) {
|
||||
osno = 0;
|
||||
@@ -213,8 +212,12 @@ static bool consult(const char *b_file USES_REGS) {
|
||||
}
|
||||
BACKUP_MACHINE_REGS();
|
||||
YAP_EndConsult(c_stream, &osno, full);
|
||||
pop_text_stack(lvl);
|
||||
return true;
|
||||
if (!Yap_AddAlias(AtomLoopStream, osno)) {
|
||||
pop_text_stack(lvl);
|
||||
return false;
|
||||
}
|
||||
pop_text_stack(lvl);
|
||||
return true;
|
||||
}
|
||||
|
||||
///
|
||||
|
Reference in New Issue
Block a user