factor/basis/core-foundation/core-foundation.factor

44 lines
953 B
Factor
Raw Normal View History

2008-02-12 03:21:47 -05:00
! Copyright (C) 2006, 2008 Slava Pestov
2007-09-20 18:09:08 -04:00
! See http://factorcode.org/license.txt for BSD license.
2011-09-26 16:42:32 -04:00
USING: alien.c-types alien.destructors alien.syntax
classes.struct ;
2007-09-20 18:09:08 -04:00
IN: core-foundation
TYPEDEF: void* CFTypeRef
TYPEDEF: void* CFAllocatorRef
CONSTANT: kCFAllocatorDefault f
TYPEDEF: bool Boolean
TYPEDEF: long CFIndex
TYPEDEF: uchar UInt8
TYPEDEF: ushort UInt16
TYPEDEF: uint UInt32
TYPEDEF: ulonglong UInt64
TYPEDEF: char SInt8
TYPEDEF: short SInt16
TYPEDEF: int SInt32
TYPEDEF: longlong SInt64
TYPEDEF: ulong CFTypeID
TYPEDEF: UInt32 CFOptionFlags
TYPEDEF: void* CFUUIDRef
TYPEDEF: SInt32 OSStatus
TYPEDEF: uchar[4] FourCharCode
TYPEDEF: FourCharCode OSType
STRUCT: FSRef
{ opaque uchar[80] } ;
2007-09-20 18:09:08 -04:00
STRUCT: CFRange
{ location CFIndex }
{ length CFIndex } ;
: <CFRange> ( location length -- range )
CFRange <struct-boa> ;
FUNCTION: CFTypeRef CFRetain ( CFTypeRef cf )
2007-09-20 18:09:08 -04:00
FUNCTION: void CFRelease ( CFTypeRef cf )
DESTRUCTOR: CFRelease