]> gitweb.factorcode.org Git - factor.git/commitdiff
oops... word c-types can be structs too
authorJoe Groff <arcata@gmail.com>
Wed, 16 Sep 2009 18:11:53 +0000 (13:11 -0500)
committerJoe Groff <arcata@gmail.com>
Wed, 16 Sep 2009 18:11:53 +0000 (13:11 -0500)
basis/alien/c-types/c-types.factor

index 7dc00333b8c49e8ec95af7b51357af4123e6bbd2..f147810cd2ab47fb8976ee3a3fec0c5802c10c69 100755 (executable)
@@ -94,7 +94,7 @@ GENERIC: c-struct? ( type -- ? )
 
 M: object c-struct?
     drop f ;
-M: string c-struct?
+M: c-type-name c-struct?
     dup void? [ drop f ] [ c-type c-struct? ] if ;
 
 ! These words being foldable means that words need to be
@@ -123,7 +123,7 @@ M: c-type-name <c-array>
 
 GENERIC: (c-array) ( len c-type -- array )
 
-M: string (c-array)
+M: c-type-name (c-array)
     c-(array)-constructor execute( len -- array ) ; inline
 
 GENERIC: <c-direct-array> ( alien len c-type -- array )