style thing: indenting tuple slots

locals-and-roots
Björn Lindqvist 2016-05-30 18:40:09 +02:00
parent 8e2a65e5a2
commit 91f335b424
5 changed files with 40 additions and 40 deletions

View File

@ -18,21 +18,21 @@ SYMBOLS:
SINGLETON: void
TUPLE: abstract-c-type
{ class class initial: object }
{ boxed-class class initial: object }
{ boxer-quot callable }
{ unboxer-quot callable }
{ getter callable }
{ setter callable }
{ size integer }
{ signed boolean }
{ align integer }
{ align-first integer } ;
{ class class initial: object }
{ boxed-class class initial: object }
{ boxer-quot callable }
{ unboxer-quot callable }
{ getter callable }
{ setter callable }
{ size integer }
{ signed boolean }
{ align integer }
{ align-first integer } ;
TUPLE: c-type < abstract-c-type
boxer
unboxer
{ rep initial: int-rep } ;
boxer
unboxer
{ rep initial: int-rep } ;
: <c-type> ( -- c-type )
\ c-type new ; inline

View File

@ -51,16 +51,16 @@ PRIVATE>
SYMBOL: initial-thread
TUPLE: thread
{ name string }
{ quot callable initial: [ ] }
{ exit-handler callable initial: [ ] }
{ id integer }
{ context box }
state
runnable
mailbox
{ variables hashtable }
sleep-entry ;
{ name string }
{ quot callable initial: [ ] }
{ exit-handler callable initial: [ ] }
{ id integer }
{ context box }
state
runnable
mailbox
{ variables hashtable }
sleep-entry ;
: self ( -- thread )
OBJ-CURRENT-THREAD special-object { thread } declare ; inline

View File

@ -82,20 +82,20 @@ TUPLE: button-up mods # ; C: <button-up> button-up
TUPLE: button-down mods # ; C: <button-down> button-down
SINGLETONS:
motion
mouse-scroll
mouse-enter mouse-leave
lose-focus gain-focus ;
motion
mouse-scroll
mouse-enter mouse-leave
lose-focus gain-focus ;
! Higher-level actions
SINGLETONS:
undo-action redo-action
cut-action copy-action paste-action
delete-action select-all-action
left-action right-action up-action down-action
zoom-in-action zoom-out-action
new-action open-action save-action save-as-action
revert-action close-action ;
undo-action redo-action
cut-action copy-action paste-action
delete-action select-all-action
left-action right-action up-action down-action
zoom-in-action zoom-out-action
new-action open-action save-action save-as-action
revert-action close-action ;
UNION: action
undo-action redo-action

View File

@ -8,9 +8,9 @@ vectors ;
IN: hash-sets
TUPLE: hash-set
{ count array-capacity }
{ deleted array-capacity }
{ array array } ;
{ count array-capacity }
{ deleted array-capacity }
{ array array } ;
<PRIVATE

View File

@ -5,9 +5,9 @@ math.private sequences sequences.private slots.private vectors ;
IN: hashtables
TUPLE: hashtable
{ count array-capacity }
{ deleted array-capacity }
{ array array } ;
{ count array-capacity }
{ deleted array-capacity }
{ array array } ;
<PRIVATE