don't pprint gadgets with RECT: syntax
parent
bc07c075e7
commit
585ea8da54
|
@ -135,8 +135,8 @@ M: pathname pprint*
|
||||||
[ text ] [ f <inset pprint* block> ] bi*
|
[ text ] [ f <inset pprint* block> ] bi*
|
||||||
\ } pprint-word block> ;
|
\ } pprint-word block> ;
|
||||||
|
|
||||||
M: tuple pprint*
|
: pprint-tuple ( tuple -- )
|
||||||
boa-tuples? get [ call-next-method ] [
|
boa-tuples? get [ pprint-object ] [
|
||||||
[
|
[
|
||||||
<flow
|
<flow
|
||||||
\ T{ pprint-word
|
\ T{ pprint-word
|
||||||
|
@ -149,6 +149,9 @@ M: tuple pprint*
|
||||||
] check-recursion
|
] check-recursion
|
||||||
] if ;
|
] if ;
|
||||||
|
|
||||||
|
M: tuple pprint*
|
||||||
|
pprint-tuple ;
|
||||||
|
|
||||||
: do-length-limit ( seq -- trimmed n/f )
|
: do-length-limit ( seq -- trimmed n/f )
|
||||||
length-limit get dup [
|
length-limit get dup [
|
||||||
over length over [-]
|
over length over [-]
|
||||||
|
|
|
@ -3,7 +3,8 @@
|
||||||
USING: accessors arrays hashtables kernel models math namespaces
|
USING: accessors arrays hashtables kernel models math namespaces
|
||||||
make sequences quotations math.vectors combinators sorting
|
make sequences quotations math.vectors combinators sorting
|
||||||
binary-search vectors dlists deques models threads
|
binary-search vectors dlists deques models threads
|
||||||
concurrency.flags math.order math.rectangles fry locals ;
|
concurrency.flags math.order math.rectangles fry locals
|
||||||
|
prettyprint.backend prettyprint.custom ;
|
||||||
IN: ui.gadgets
|
IN: ui.gadgets
|
||||||
|
|
||||||
! Values for orientation slot
|
! Values for orientation slot
|
||||||
|
@ -27,6 +28,9 @@ interior
|
||||||
boundary
|
boundary
|
||||||
model ;
|
model ;
|
||||||
|
|
||||||
|
! Don't print gadgets with RECT: syntax
|
||||||
|
M: gadget pprint* pprint-tuple ;
|
||||||
|
|
||||||
M: gadget equal? 2drop f ;
|
M: gadget equal? 2drop f ;
|
||||||
|
|
||||||
M: gadget hashcode* nip [ [ \ gadget counter ] unless* ] change-id id>> ;
|
M: gadget hashcode* nip [ [ \ gadget counter ] unless* ] change-id id>> ;
|
||||||
|
|
Loading…
Reference in New Issue