Revert "make struct classes print properly in the status bar"
This reverts commit 4ee1a4f9e8
.
parent
c17e718469
commit
c7fa671c0c
|
@ -1,13 +1,18 @@
|
||||||
! (c)Joe Groff bsd license
|
! (c)Joe Groff bsd license
|
||||||
USING: accessors alien alien.c-types arrays assocs classes
|
USING: accessors alien alien.c-types arrays assocs classes
|
||||||
classes.struct combinators combinators.short-circuit continuations
|
classes.struct combinators combinators.short-circuit continuations
|
||||||
definitions fry kernel libc make math math.parser mirrors
|
fry kernel libc make math math.parser mirrors prettyprint.backend
|
||||||
prettyprint.backend prettyprint.custom prettyprint.sections
|
prettyprint.custom prettyprint.sections see.private sequences
|
||||||
see see.private sequences slots strings summary words ;
|
slots strings summary words ;
|
||||||
IN: classes.struct.prettyprint
|
IN: classes.struct.prettyprint
|
||||||
|
|
||||||
<PRIVATE
|
<PRIVATE
|
||||||
|
|
||||||
|
: struct-definer-word ( class -- word )
|
||||||
|
struct-slots dup length 2 >=
|
||||||
|
[ second offset>> 0 = \ UNION-STRUCT: \ STRUCT: ? ]
|
||||||
|
[ drop \ STRUCT: ] if ;
|
||||||
|
|
||||||
: struct>assoc ( struct -- assoc )
|
: struct>assoc ( struct -- assoc )
|
||||||
[ class struct-slots ] [ struct-slot-values ] bi zip ;
|
[ class struct-slots ] [ struct-slot-values ] bi zip ;
|
||||||
|
|
||||||
|
@ -34,14 +39,8 @@ IN: classes.struct.prettyprint
|
||||||
|
|
||||||
PRIVATE>
|
PRIVATE>
|
||||||
|
|
||||||
M: struct-class definer
|
|
||||||
struct-slots dup length 2 >=
|
|
||||||
[ second offset>> 0 = \ UNION-STRUCT: \ STRUCT: ? ]
|
|
||||||
[ drop \ STRUCT: ] if
|
|
||||||
\ ; ;
|
|
||||||
|
|
||||||
M: struct-class see-class*
|
M: struct-class see-class*
|
||||||
<colon dup definer drop pprint-word dup pprint-word
|
<colon dup struct-definer-word pprint-word dup pprint-word
|
||||||
<block struct-slots [ pprint-struct-slot ] each
|
<block struct-slots [ pprint-struct-slot ] each
|
||||||
block> pprint-; block> ;
|
block> pprint-; block> ;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue