]> gitweb.factorcode.org Git - factor.git/blobdiff - basis/windows/directx/dinput/constants/constants.factor
Slices over specialized arrays can now be passed to C functions, written to binary...
[factor.git] / basis / windows / directx / dinput / constants / constants.factor
index 26f9da00ec3390f306a74bcee25285eb0da32609..ba4d750174ddb7a1a63dd62509fd67bb76352063 100644 (file)
@@ -72,10 +72,7 @@ M: array array-base-type first ;
     call swap set-global ; inline
 
 : (malloc-guid-symbol) ( symbol guid -- )
-    '[
-        _ execute( -- value )
-        [ byte-length malloc ] [ over byte-array>memory ] bi
-    ] initialize ;
+    '[ _ execute( -- value ) malloc-byte-array ] initialize ;
 
 : define-guid-constants ( -- )
     {