]> gitweb.factorcode.org Git - factor.git/commitdiff
remove a layer of indirection from classes.c-types
authorJoe Groff <arcata@gmail.com>
Wed, 19 Aug 2009 23:54:11 +0000 (18:54 -0500)
committerJoe Groff <arcata@gmail.com>
Wed, 19 Aug 2009 23:54:11 +0000 (18:54 -0500)
extra/classes/c-types/c-types.factor

index 58aa3a1d2fbfcbcf9c8527d8c4d87e4e8ddbb783..0d0b26639f869fef0c386fe2d22292e821d188cb 100644 (file)
@@ -62,7 +62,7 @@ SYMBOLS: long ulong long-bits ;
 >>
 
 : set-class-c-type ( class c-type <direct-array> -- )
-    [ "class-c-type" set-word-prop ]
+    [ c-type "class-c-type" set-word-prop ]
     [ "class-direct-array" set-word-prop ] bi-curry* bi ;
 
 : class-c-type ( class -- c-type )
@@ -103,12 +103,12 @@ ulonglong [ 64 bits            ] "coercer" set-word-prop
 PREDICATE: c-type-class < class
     "class-c-type" word-prop ;
 
-GENERIC: direct-array-of ( alien len class -- array )
+GENERIC: direct-array-of ( alien len class -- array ) inline
 
 M: c-type-class direct-array-of
     class-direct-array execute( alien len -- array ) ; inline
 
-M: c-type-class c-type class-c-type c-type ;
+M: c-type-class c-type class-c-type ;
 M: c-type-class c-type-align class-c-type c-type-align ;
 M: c-type-class c-type-getter class-c-type c-type-getter ;
 M: c-type-class c-type-setter class-c-type c-type-setter ;