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
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
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
IN: hash-sets
TUPLE: hash-set
-{ count array-capacity }
-{ deleted array-capacity }
-{ array array } ;
+ { count array-capacity }
+ { deleted array-capacity }
+ { array array } ;
<PRIVATE
IN: hashtables
TUPLE: hashtable
-{ count array-capacity }
-{ deleted array-capacity }
-{ array array } ;
+ { count array-capacity }
+ { deleted array-capacity }
+ { array array } ;
<PRIVATE