use same logic to print Chars and Atoms (#1804)

This commit is contained in:
Mark
2023-05-10 00:04:35 -06:00
parent c1218fc986
commit 2f9996f9ac
3 changed files with 73 additions and 52 deletions

View File

@@ -765,6 +765,7 @@ impl MachineState {
let mut printer = HCPrinter::new(
&mut self.heap,
&mut self.atom_tbl,
op_dir,
PrinterOutputter::new(),
term_to_be_printed,

View File

@@ -61,6 +61,7 @@ impl MockWAM {
let mut printer = HCPrinter::new(
&mut self.machine_st.heap,
&mut self.machine_st.atom_tbl,
&self.op_dir,
PrinterOutputter::new(),
heap_loc_as_cell!(term_write_result.heap_loc),