← Commit list

c5774a345

Denys Vlasenko
Denys Vlasenko
2018-12-17
SUCCESS Duration: 152s

Subject

bc: move fflush to the _actual_ execution loop

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

miscutils/bc.c+2 -1
@@ -6875,6 +6875,8 @@ static BC_STATUS zbc_program_exec(void)
RETURN_STATUS(s);
}
+ fflush_and_check();
+
// If the stack has changed, pointers may be invalid.
ip = bc_vec_top(&G.prog.stack);
func = bc_program_func(ip->func);
@@ -6920,7 +6922,6 @@ static BC_STATUS zbc_vm_process(const char *text)
bc_program_reset();
break;
}
- fflush_and_check();
}
dbg_lex_done("%s:%d done", __func__, __LINE__);