further improvements to cyclic partial list printing (#2635)
This commit is contained in:
@@ -41,7 +41,7 @@ fn capture_offset(line: &Instruction, index: usize, stack: &mut Vec<usize>) -> b
|
||||
/* This function walks the code of a single predicate, supposed to
|
||||
* begin in code at the offset p. Each instruction is passed to the
|
||||
* walker function.
|
||||
*/
|
||||
*/
|
||||
pub(crate) fn walk_code(code: &Code, p: usize, mut walker: impl FnMut(&Instruction)) {
|
||||
let mut stack = vec![p];
|
||||
let mut visited_indices = IndexSet::with_hasher(FxBuildHasher::default());
|
||||
|
||||
@@ -19,7 +19,7 @@ use crate::types::*;
|
||||
* Commonalities with the GC marking algorithm:
|
||||
* - The contents of forwarded cells are modified only when they are unforwarded
|
||||
* - Marked (but unforwarded!) cells immediately shift to the backward phase
|
||||
*/
|
||||
*/
|
||||
|
||||
#[derive(Debug)]
|
||||
pub(crate) struct CycleDetectingIter<'a, const STOP_AT_CYCLES: bool> {
|
||||
|
||||
@@ -18,7 +18,7 @@ use std::collections::VecDeque;
|
||||
use std::hash::{Hash, Hasher};
|
||||
use std::ops::{Deref, DerefMut};
|
||||
|
||||
#[derive(Debug, Clone)] //, PartialOrd, PartialEq, Eq, Hash)]
|
||||
#[derive(Debug, Clone)]//, PartialOrd, PartialEq, Eq, Hash)]
|
||||
pub struct BranchNumber {
|
||||
branch_num: Rational,
|
||||
delta: Rational,
|
||||
|
||||
@@ -46,7 +46,7 @@ use std::rc::Rc;
|
||||
* loader fail later, all changes must be rolled back, restoring the
|
||||
* WAM to its prior state. Retraction records describe individual changes
|
||||
* made by the loader, and they may be used later.
|
||||
*/
|
||||
*/
|
||||
|
||||
#[derive(Debug)]
|
||||
pub(crate) enum RetractionRecord {
|
||||
@@ -108,7 +108,7 @@ pub(crate) enum RetractionRecord {
|
||||
* "extent" of a code vector is its length prior to an attempted
|
||||
* module load. The only code vector of the WAM's IndexStore, "code",
|
||||
* is shared by all modules, including the default "user" module.
|
||||
*/
|
||||
*/
|
||||
|
||||
pub(super) struct RetractionInfo {
|
||||
orig_code_extent: usize,
|
||||
|
||||
@@ -136,7 +136,7 @@ impl IndexPtr {
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, Copy)] // , Ord, Hash, PartialOrd, Eq, PartialEq)]
|
||||
#[derive(Debug, Clone, Copy)]// , Ord, Hash, PartialOrd, Eq, PartialEq)]
|
||||
pub struct CodeIndex(CodeIndexOffset);
|
||||
|
||||
#[cfg(target_pointer_width = "32")]
|
||||
|
||||
@@ -246,7 +246,7 @@ fn setup_qualified_import(mut terms: Vec<Term>) -> Result<UseModuleExport, Compi
|
||||
* + (mode declarations under the mode syntax, which currently have no effect)
|
||||
* -
|
||||
* ?
|
||||
*/
|
||||
*/
|
||||
|
||||
fn setup_meta_predicate<'a, LS: LoadState<'a>>(
|
||||
mut terms: Vec<Term>,
|
||||
|
||||
Reference in New Issue
Block a user