]> gitweb.factorcode.org Git - factor.git/commitdiff
fix struct class see
authorJoe Groff <arcata@gmail.com>
Wed, 16 Sep 2009 14:56:07 +0000 (09:56 -0500)
committerJoe Groff <arcata@gmail.com>
Wed, 16 Sep 2009 14:56:07 +0000 (09:56 -0500)
basis/classes/struct/prettyprint/prettyprint.factor

index 2c969531e80285b58b60c453723f737e4a7feae0..7f57e8568a04cd9403bb35b107b1fb65a5618b16 100644 (file)
@@ -1,9 +1,9 @@
 ! (c)Joe Groff bsd license
-USING: accessors alien alien.c-types arrays assocs classes
-classes.struct combinators combinators.short-circuit continuations
-fry kernel libc make math math.parser mirrors prettyprint.backend
-prettyprint.custom prettyprint.sections see.private sequences
-slots strings summary words ;
+USING: accessors alien alien.c-types alien.prettyprint arrays
+assocs classes classes.struct combinators combinators.short-circuit
+continuations fry kernel libc make math math.parser mirrors
+prettyprint.backend prettyprint.custom prettyprint.sections
+see.private sequences slots strings summary words ;
 IN: classes.struct.prettyprint
 
 <PRIVATE
@@ -20,7 +20,7 @@ IN: classes.struct.prettyprint
     <flow \ { pprint-word
     f <inset {
         [ name>> text ]
-        [ type>> dup string? [ text ] [ pprint* ] if ]
+        [ type>> pprint-c-type ]
         [ read-only>> [ \ read-only pprint-word ] when ]
         [ initial>> [ \ initial: pprint-word pprint* ] when* ]
     } cleave block>