My favorites | Sign in
Project Home Downloads Wiki Issues Source
Repository:
Checkout   Browse   Changes   Clones  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
/* Copyright (c) 2008-2009 Christopher J. W. Lloyd

Permission is hereby granted,free of charge,to any person obtaining a copy of this software and associated documentation files (the "Software"),to deal in the Software without restriction,including without limitation the rights to use,copy,modify,merge,publish,distribute,sublicense,and/or sell copies of the Software,and to permit persons to whom the Software is furnished to do so,subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS",WITHOUT WARRANTY OF ANY KIND,EXPRESS OR IMPLIED,INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,DAMAGES OR OTHER LIABILITY,WHETHER IN AN ACTION OF CONTRACT,TORT OR OTHERWISE,ARISING FROM,OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */

#import <CoreFoundation/CFBase.h>

typedef const struct __CFBoolean *CFBooleanRef;

COREFOUNDATION_EXPORT const CFBooleanRef kCFBooleanTrue;
COREFOUNDATION_EXPORT const CFBooleanRef kCFBooleanFalse;

COREFOUNDATION_EXPORT CFTypeID CFBooleanGetTypeID(void);

COREFOUNDATION_EXPORT Boolean CFBooleanGetValue(CFBooleanRef boolean);

typedef const struct __NSNumber *CFNumberRef;

typedef enum {
kCFNumberSInt8Type =1,
kCFNumberSInt16Type =2,
kCFNumberSInt32Type =3,
kCFNumberSInt64Type =4,
kCFNumberFloat32Type =5,
kCFNumberFloat64Type =6,
kCFNumberCharType =7,
kCFNumberShortType =8,
kCFNumberIntType =9,
kCFNumberLongType =10,
kCFNumberLongLongType =11,
kCFNumberFloatType =12,
kCFNumberDoubleType =13,
kCFNumberCFIndexType =14,
kCFNumberNSIntegerType=15,
kCFNumberCGFloatType =16,
kCFNumberMaxType =kCFNumberCGFloatType,
} CFNumberType;

COREFOUNDATION_EXPORT const CFNumberRef kCFNumberPositiveInfinity;
COREFOUNDATION_EXPORT const CFNumberRef kCFNumberNegativeInfinity;
COREFOUNDATION_EXPORT const CFNumberRef kCFNumberNaN;

COREFOUNDATION_EXPORT CFTypeID CFNumberGetTypeID(void);

COREFOUNDATION_EXPORT CFNumberRef CFNumberCreate(CFAllocatorRef allocator,CFNumberType type,const void *valuep);

COREFOUNDATION_EXPORT CFComparisonResult CFNumberCompare(CFNumberRef self,CFNumberRef other,void *context);
COREFOUNDATION_EXPORT CFIndex CFNumberGetByteSize(CFNumberRef self);
COREFOUNDATION_EXPORT CFNumberType CFNumberGetType(CFNumberRef self);
COREFOUNDATION_EXPORT Boolean CFNumberGetValue(CFNumberRef self,CFNumberType type,void *valuep);
COREFOUNDATION_EXPORT Boolean CFNumberIsFloatType(CFNumberRef self);

Change log

ee4dcf955615 by cjwlloyd on Mar 5, 2010   Diff
CFBase, CFString, CFNumber, CFData fixes
CFDateFormatter constants
__CFArray implementation
Concrete NSMutableDictionary_CF supports
CF callbacks, doesn't use NSMapTable
CFDictionary fixes
Go to: 
Project members, sign in to write a code review

Older revisions

00d615b0c21a by cocotron on Nov 23, 2009   Diff
added missing _EXPORT's to CF, fixed
CFSTR macro
8617ec94dce7 by jens.ayton on Oct 22, 2009   Diff
For CoreFoundation semantic
compatibility, certain NSNumber values
are now compile-time constants.
e9b4a77ac15a by cocotron on Jun 10, 2009   Diff
updating CoreFoundation/ from CF
branch
All revisions of this file

File info

Size: 2824 bytes, 54 lines
Powered by Google Project Hosting