Skip to main content

clear_token_stack

Function clear_token_stack 

Source
pub fn clear_token_stack()
Expand description

Empty the stack of tokens being invoked, after a recovered Fatal (Perl hardYankProcessing, Common/Error.pm:329 $$stomach{token_stack} = [], run for every Fatal). invoke_token pops its entry only on a normal exit, so every ? exit between the push and the pop leaves one: a Stomach:Recursion Fatal leaves the whole MAXSTACK of them, and the next digestion after the recovery — the build’s own, a frontmatter name read at insert time — failed its first push with a second, ghost Fatal and stopped the build (2410.07647: 886 words to 96; 2105.02599). Called by the recovery arms beside salvage_pending_box_lists, after the Fatal is logged (the message lists the stack).