patch_seq_write

Function patch_seq_write 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn patch_seq_write(stack: Stack) -> Stack
Expand description

Write a string to stdout without a trailing newline

Stack effect: ( str – )

This is useful for protocols like LSP that require exact byte output without trailing newlines.

§Safety

Stack must have a String value on top

§Concurrency

Uses may::sync::Mutex to serialize stdout writes from multiple strands. When the mutex is contended, the strand yields to the scheduler (doesn’t block the OS thread).