Modifying the struct prettyprinter to display bits

db4
Daniel Ehrenberg 2009-10-07 21:42:15 -05:00
parent 1a2c137e41
commit 4e1aa8f638
1 changed files with 5 additions and 0 deletions

View File

@ -23,6 +23,11 @@ IN: classes.struct.prettyprint
[ type>> pprint-c-type ]
[ read-only>> [ \ read-only pprint-word ] when ]
[ initial>> [ \ initial: pprint-word pprint* ] when* ]
[
dup struct-bit-slot-spec?
[ \ bits: pprint-word bits>> pprint* ]
[ drop ] if
]
} cleave block>
\ } pprint-word block> ;