Tweak fasdumper to null-terminate bytevectors too.
authorTaylor R Campbell <campbell@mumble.net>
Tue, 11 Dec 2018 15:32:34 +0000 (15:32 +0000)
committerTaylor R Campbell <campbell@mumble.net>
Tue, 11 Dec 2018 15:32:34 +0000 (15:32 +0000)
commita7b62778411df682e228b7989f93a0afebe9117e
tree614f389802f312d6353ef2777bc50ac446919f46
parent78cd82b9bad61bc2d755c51d7c6e90657f61fef5
Tweak fasdumper to null-terminate bytevectors too.

find_primitive relies on symbol names (which were formerly `strings',
i.e. `vector-8b' or TC_CHARACTER_STRING, and are now `bytevectors')
to be null-terminated.

Rather than try to figure out which ones are primitive names and
which ones are not, we'll just null-terminate all of them.

We can undo this if we change find_primitive.  (We need to change the
compile-time tool findprim.c anyway because its strcmp_ci misuses
islower/toupper.)
src/compiler/base/fasdump.scm