]> birchwood-abbey.net Git - mit-scheme.git/commit
microcode: Fix bug in writing ucode stack traces to file.
authorTaylor R Campbell <campbell+mit-scheme@mumble.net>
Tue, 28 Dec 2021 12:04:58 +0000 (12:04 +0000)
committerTaylor R Campbell <campbell+mit-scheme@mumble.net>
Fri, 10 Jun 2022 15:08:24 +0000 (15:08 +0000)
commit6cbeeb17862a16feb7df6c2610cb1174de2f8e58
treecd7d6688b66178995ddac11f267d0e47c1b5e3f0
parent94c015729537d6e06b3e0159791b2cc0904e95a9
microcode: Fix bug in writing ucode stack traces to file.

In the v15 microcode merge, the type-abuse of casting a FILE * to
outf_channel was dropped, and thus so was the `C-c t' function's file
output at the console.

Do this is a slightly less abusive way that works with modern C and
modern platforms where enums are not necessarily wide enough, or
allowed by the semantics, to hold pointers.

(cherry picked from commit 350be6720bce76eec23b551c720adc3570c0a608)
src/microcode/outf.c
src/microcode/outf.h
src/microcode/uxsig.c