]> gitweb.factorcode.org Git - factor.git/commitdiff
windows.com: split off prettyprinting into windows.com.prettyprint
authorSlava Pestov <slava@factorcode.org>
Sat, 5 Sep 2009 03:00:23 +0000 (22:00 -0500)
committerSlava Pestov <slava@factorcode.org>
Sat, 5 Sep 2009 03:00:23 +0000 (22:00 -0500)
basis/windows/com/prettyprint/prettyprint.factor [new file with mode: 0755]
basis/windows/com/syntax/syntax.factor
basis/windows/com/wrapper/wrapper.factor

diff --git a/basis/windows/com/prettyprint/prettyprint.factor b/basis/windows/com/prettyprint/prettyprint.factor
new file mode 100755 (executable)
index 0000000..c75f43f
--- /dev/null
@@ -0,0 +1,7 @@
+! Copyright (C) 2009 Slava Pestov.
+! See http://factorcode.org/license.txt for BSD license.
+USING: windows.com windows.kernel32 windows.ole32
+prettyprint.custom prettyprint.sections sequences ;
+IN: windows.com.prettyprint
+
+M: GUID pprint* guid>string "GUID: " prepend text ;
index d380b1ba83f12927bb40aa96bfa1ce63d17055dc..2100d6a2156f420d6abe3f044c8abc2b48401775 100755 (executable)
@@ -2,7 +2,7 @@ USING: alien alien.c-types alien.accessors effects kernel
 windows.ole32 parser lexer splitting grouping sequences
 namespaces assocs quotations generalizations accessors words
 macros alien.syntax fry arrays layouts math classes.struct
-windows.kernel32 prettyprint.custom prettyprint.sections ;
+windows.kernel32 ;
 IN: windows.com.syntax
 
 <PRIVATE
@@ -99,4 +99,8 @@ SYNTAX: COM-INTERFACE:
 
 SYNTAX: GUID: scan string>guid parsed ;
 
-M: GUID pprint* guid>string "GUID: " prepend text ;
+USING: vocabs vocabs.loader ;
+
+"prettyprint" vocab [
+    "windows.com.prettyprint" require
+] when
index 25b11a6a1d2cb6bdbbf263e31e0fca537e648147..2cf6b31cf5095891a6d545b27083e6f2afc709fb 100755 (executable)
@@ -3,8 +3,7 @@ init windows.com.syntax.private windows.com continuations kernel
 namespaces windows.ole32 libc vocabs assocs accessors arrays
 sequences quotations combinators math words compiler.units
 destructors fry math.parser generalizations sets
-specialized-arrays.alien specialized-arrays.direct.alien
-windows.kernel32 classes.struct ;
+specialized-arrays.alien windows.kernel32 classes.struct ;
 IN: windows.com.wrapper
 
 TUPLE: com-wrapper < disposable callbacks vtbls ;