Post #1743408
2026-04-27 18:38 UTC
Studying GRUB's "terminfo" command, there's a suite of string-helpers defined in another file.
A couple of which lexes (via another helper) the given format string once to get some stats, reformats the variadic args as an array, considers preparing a stack, & stack-based interprets any following %-prefixed chars echoing all others to the output. Both lexer passes are aided by a shared helper, & there's additional support routines for operating the stack or the output buffer.
1/?
Replies (0)
No replies.