blob: 1f4d8a7be9d023c83090861be295652520a19d18 (
plain)
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
|
{ Parsed from Foundation.framework NSEnumerator.h }
{$ifdef TYPES}
{$ifndef NSENUMERATOR_PAS_T}
{$define NSENUMERATOR_PAS_T}
{$endif}
{$endif}
{$ifdef RECORDS}
{$ifndef NSENUMERATOR_PAS_R}
{$define NSENUMERATOR_PAS_R}
{ Records }
type
NSFastEnumerationState = record
state: culong;
itemsPtr: idPtr;
mutationsPtr: pculong;
extra: array[0..(5)-1] of culong;
end;
NSFastEnumerationStatePtr = ^NSFastEnumerationState;
{$endif}
{$endif}
{$ifdef FUNCTIONS}
{$ifndef NSENUMERATOR_PAS_F}
{$define NSENUMERATOR_PAS_F}
{$endif}
{$endif}
{$ifdef EXTERNAL_SYMBOLS}
{$ifndef NSENUMERATOR_PAS_S}
{$define NSENUMERATOR_PAS_S}
{$endif}
{$endif}
{$ifdef FORWARD}
NSFastEnumerationProtocol = objcprotocol;
NSEnumerator = objcclass;
NSEnumeratorPointer = ^NSEnumerator;
NSEnumeratorPtr = NSEnumeratorPointer;
{$endif}
{$ifdef CLASSES}
{$ifndef NSENUMERATOR_PAS_C}
{$define NSENUMERATOR_PAS_C}
{ NSEnumerator }
NSEnumerator = objcclass external (NSObject, NSFastEnumerationProtocol)
public
function nextObject: id; message 'nextObject';
{ Adopted Protocols }
function countByEnumeratingWithState_objects_count(state: NSFastEnumerationStatePtr; stackbuf: idPtr; len: NSUInteger): NSUInteger;
end;
{ NSExtendedEnumeratorCategory }
NSExtendedEnumeratorCategory = objccategory external (NSEnumerator)
function allObjects: NSArray; message 'allObjects';
end;
{$endif}
{$endif}
{$ifdef PROTOCOLS}
{$ifndef NSENUMERATOR_PAS_P}
{$define NSENUMERATOR_PAS_P}
{ NSFastEnumeration Protocol }
NSFastEnumerationProtocol = objcprotocol external name 'NSFastEnumeration'
function countByEnumeratingWithState_objects_count(state: NSFastEnumerationStatePtr; stackbuf: idPtr; len: NSUInteger): NSUInteger; message 'countByEnumeratingWithState:objects:count:';
end;
{$endif}
{$endif}
|