]> gitweb.factorcode.org Git - factor.git/commitdiff
Define intptr_t type
authorunknown <Administrator@.(none)>
Tue, 18 Nov 2008 00:42:10 +0000 (18:42 -0600)
committerunknown <Administrator@.(none)>
Tue, 18 Nov 2008 00:42:10 +0000 (18:42 -0600)
basis/alien/c-types/c-types.factor
basis/cpu/x86/64/winnt/winnt.factor

index b4e4d05f2e58ca6389e94ddce334ab6d73e3a607..543af8dee8ee605306fc0a62f06932d76f2b689a 100644 (file)
@@ -436,6 +436,6 @@ M: long-long-type box-return ( type -- )
     "double" define-primitive-type
 
     "long" "ptrdiff_t" typedef
-
+    "long" "intptr_t" typedef
     "ulong" "size_t" typedef
 ] with-compilation-unit
index 92560ef5e99c3d3f17e4e1bc38055493dd9014c1..9108c0e8f77b16a7d3fb55f40fba171bfd212861 100644 (file)
@@ -1,6 +1,6 @@
 ! Copyright (C) 2008 Slava Pestov.
 ! See http://factorcode.org/license.txt for BSD license.
-USING: kernel layouts system math alien.c-types
+USING: kernel layouts system math alien.c-types sequences
 compiler.cfg.registers cpu.architecture cpu.x86.assembler cpu.x86 ;
 IN: cpu.x86.64.winnt
 
@@ -22,6 +22,7 @@ M: x86.64 dummy-fp-params? t ;
 
 <<
 "longlong" "ptrdiff_t" typedef
+"longlong" "intptr_t" typedef
 "int" "long" typedef
 "uint" "ulong" typedef
 >>