95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
|
/* In case the last bucket is already used */
if (i >= size)
for (i = 0; i < size && data[i].key != nil; i++);
if (i >= size)
@throw [OFOutOfRangeException newWithClass: isa];
data[i].key = [key copy];
data[i].object = [obj retain];
data[i].hash = hash;
count++;
return self;
}
[obj retain];
|
>
>
>
>
>
>
>
>
|
|
|
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
|
/* In case the last bucket is already used */
if (i >= size)
for (i = 0; i < size && data[i].key != nil; i++);
if (i >= size)
@throw [OFOutOfRangeException newWithClass: isa];
key = [key copy];
@try {
[obj retain];
} @catch (OFException *e) {
[key release];
@throw e;
}
data[i].key = key;
data[i].object = obj;
data[i].hash = hash;
count++;
return self;
}
[obj retain];
|