]> gitweb.factorcode.org Git - factor.git/commitdiff
NSNotFound for both 32 bit and 64 bit environments
authorkusumotonorio <47816570+kusumotonorio@users.noreply.github.com>
Sun, 8 Sep 2019 06:22:55 +0000 (15:22 +0900)
committerJohn Benediktsson <mrjbq7@gmail.com>
Sun, 8 Sep 2019 18:15:49 +0000 (11:15 -0700)
basis/cocoa/types/types.factor
basis/ui/backend/cocoa/views/views.factor

index 87533c4fbcde5185bc79d96cff960faac060598b..9c3058ab358776569ec2bf526a76c39664f52e08 100644 (file)
@@ -1,9 +1,11 @@
 ! Copyright (C) 2006, 2009 Slava Pestov
 ! See http://factorcode.org/license.txt for BSD license.
 USING: alien.c-types alien.syntax classes.struct cocoa.runtime
-core-graphics.types ;
+core-graphics.types kernel literals layouts ;
 IN: cocoa.types
 
+CONSTANT: NSNotFound $[ 32bit? 0x7fffffff 0x7fffffffffffffff ? ]
+
 TYPEDEF: long NSInteger
 TYPEDEF: ulong NSUInteger
 
index 09cc68424d0c00ccaba6cf9eb91c2e638e750e12..eaa09b33519e2c444ac20eb3235a9b4abb804a09 100644 (file)
@@ -187,8 +187,6 @@ M: send-touchbar-command send-queued-gesture
         yield
     ] [ 3drop ] if ;
 
-CONSTANT: NSNotFound 9223372036854775807 inline
-
 IMPORT: NSAttributedString
 
 <PRIVATE