alien.enums: cleanup using.
parent
85fdc4f6d2
commit
055cacabd4
|
@ -1,7 +1,7 @@
|
||||||
! (c)2010 Joe Groff, Erik Charlebois bsd license
|
! (c)2010 Joe Groff, Erik Charlebois bsd license
|
||||||
USING: accessors alien.c-types arrays combinators delegate fry
|
USING: accessors alien.c-types arrays assocs classes.singleton
|
||||||
generic.parser kernel macros math parser sequences words words.symbol
|
combinators delegate fry kernel macros math parser sequences
|
||||||
classes.singleton assocs ;
|
words ;
|
||||||
IN: alien.enums
|
IN: alien.enums
|
||||||
|
|
||||||
<PRIVATE
|
<PRIVATE
|
||||||
|
@ -52,6 +52,6 @@ PRIVATE>
|
||||||
: define-enum ( word base-type members -- )
|
: define-enum ( word base-type members -- )
|
||||||
[ (define-enum) ]
|
[ (define-enum) ]
|
||||||
[ [ define-enum-value ] assoc-each ] bi ;
|
[ [ define-enum-value ] assoc-each ] bi ;
|
||||||
|
|
||||||
PREDICATE: enum-c-type-word < c-type-word
|
PREDICATE: enum-c-type-word < c-type-word
|
||||||
"c-type" word-prop enum-c-type? ;
|
"c-type" word-prop enum-c-type? ;
|
||||||
|
|
Loading…
Reference in New Issue