Modified buildsys.mk.in
from [c1236492e2]
to [0f6756deb9].
︙ | | | ︙ | |
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
|
${COMPILE_PLUGIN_STATUS}
if ${CC} ${PLUGIN_CFLAGS} ${CFLAGS} ${CPPFLAGS} -x c -c -o $@ $<; then \
${COMPILE_PLUGIN_OK}; \
else \
${COMPILE_PLUGIN_FAILED}; \
fi
install: ${SHARED_LIB} ${STATIC_LIB} ${STATIC_PIC_LIB} ${PLUGIN} ${PROG} install-extra
for i in ${SUBDIRS}; do \
${DIR_ENTER}; \
${MAKE} ${MFLAGS} install || exit $$?; \
${DIR_LEAVE}; \
done
for i in ${SHARED_LIB}; do \
|
|
|
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
|
${COMPILE_PLUGIN_STATUS}
if ${CC} ${PLUGIN_CFLAGS} ${CFLAGS} ${CPPFLAGS} -x c -c -o $@ $<; then \
${COMPILE_PLUGIN_OK}; \
else \
${COMPILE_PLUGIN_FAILED}; \
fi
install: all install-extra
for i in ${SUBDIRS}; do \
${DIR_ENTER}; \
${MAKE} ${MFLAGS} install || exit $$?; \
${DIR_LEAVE}; \
done
for i in ${SHARED_LIB}; do \
|
︙ | | | ︙ | |
Modified src/OFArray.h
from [1778f85d38]
to [bde628b396].
︙ | | | ︙ | |
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
|
* \brief Creates a new OFArray with the objects from the specified C array of
* the specified length.
*
* \param objects A C array of objects
* \param length The length of the C array
* \return A new autoreleased OFArray
*/
+ arrayWithObjects: (id*)objects
count: (size_t)count;
/**
* \brief Initializes an OFArray with the specified object.
*
* \param object An object
* \return An initialized OFArray
|
|
|
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
|
* \brief Creates a new OFArray with the objects from the specified C array of
* the specified length.
*
* \param objects A C array of objects
* \param length The length of the C array
* \return A new autoreleased OFArray
*/
+ arrayWithObjects: (id const*)objects
count: (size_t)count;
/**
* \brief Initializes an OFArray with the specified object.
*
* \param object An object
* \return An initialized OFArray
|
︙ | | | ︙ | |
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
|
* \brief Initializes an OFArray with the objects from the specified C array of
* the specified length.
*
* \param objects A C array of objects
* \param length The length of the C array
* \return An initialized OFArray
*/
- initWithObjects: (id*)objects
count: (size_t)count;
/**
* \brief Returns a specified object of the array.
*
* The returned object is <i>not</i> retained and autoreleased for performance
* reasons!
|
|
|
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
|
* \brief Initializes an OFArray with the objects from the specified C array of
* the specified length.
*
* \param objects A C array of objects
* \param length The length of the C array
* \return An initialized OFArray
*/
- initWithObjects: (id const*)objects
count: (size_t)count;
/**
* \brief Returns a specified object of the array.
*
* The returned object is <i>not</i> retained and autoreleased for performance
* reasons!
|
︙ | | | ︙ | |
Modified src/OFArray.m
from [652b854188]
to [006ecd6265].
︙ | | | ︙ | |
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
|
}
- initWithArray: (OFArray*)array
{
return (id)[[OFArray_adjacent alloc] initWithArray: array];
}
- initWithObjects: (id*)objects
count: (size_t)count
{
return (id)[[OFArray_adjacent alloc] initWithObjects: objects
count: count];
}
- initWithSerialization: (OFXMLElement*)element
|
|
|
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
|
}
- initWithArray: (OFArray*)array
{
return (id)[[OFArray_adjacent alloc] initWithArray: array];
}
- initWithObjects: (id const*)objects
count: (size_t)count
{
return (id)[[OFArray_adjacent alloc] initWithObjects: objects
count: count];
}
- initWithSerialization: (OFXMLElement*)element
|
︙ | | | ︙ | |
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
|
}
+ arrayWithArray: (OFArray*)array
{
return [[[self alloc] initWithArray: array] autorelease];
}
+ arrayWithObjects: (id*)objects
count: (size_t)count
{
return [[[self alloc] initWithObjects: objects
count: count] autorelease];
}
- init
|
|
|
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
|
}
+ arrayWithArray: (OFArray*)array
{
return [[[self alloc] initWithArray: array] autorelease];
}
+ arrayWithObjects: (id const*)objects
count: (size_t)count
{
return [[[self alloc] initWithObjects: objects
count: count] autorelease];
}
- init
|
︙ | | | ︙ | |
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
|
{
Class c = isa;
[self release];
@throw [OFNotImplementedException exceptionWithClass: c
selector: _cmd];
}
- initWithObjects: (id*)objects
count: (size_t)count
{
Class c = isa;
[self release];
@throw [OFNotImplementedException exceptionWithClass: c
selector: _cmd];
}
|
|
|
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
|
{
Class c = isa;
[self release];
@throw [OFNotImplementedException exceptionWithClass: c
selector: _cmd];
}
- initWithObjects: (id const*)objects
count: (size_t)count
{
Class c = isa;
[self release];
@throw [OFNotImplementedException exceptionWithClass: c
selector: _cmd];
}
|
︙ | | | ︙ | |
Modified src/OFArray_adjacent.m
from [0afb4e2882]
to [c8a1da4bf7].
︙ | | | ︙ | |
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
|
[self release];
@throw e;
}
return self;
}
- initWithObjects: (id*)objects
count: (size_t)count
{
self = [self init];
@try {
size_t i;
|
|
|
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
|
[self release];
@throw e;
}
return self;
}
- initWithObjects: (id const*)objects
count: (size_t)count
{
self = [self init];
@try {
size_t i;
|
︙ | | | ︙ | |
Modified src/OFCountedSet.m
from [45cb1d890f]
to [1ffb5da144].
︙ | | | ︙ | |
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
va_start(arguments, firstObject);
ret = [[OFCountedSet_hashtable alloc] initWithObject: firstObject
arguments: arguments];
va_end(arguments);
return ret;
}
- initWithObject: (id)firstObject
arguments: (va_list)arguments
{
return (id)[[OFCountedSet_hashtable alloc] initWithObject: firstObject
arguments: arguments];
}
|
>
>
>
>
>
>
>
|
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
|
va_start(arguments, firstObject);
ret = [[OFCountedSet_hashtable alloc] initWithObject: firstObject
arguments: arguments];
va_end(arguments);
return ret;
}
- initWithObjects: (id const*)objects
count: (size_t)count
{
return (id)[[OFCountedSet_hashtable alloc] initWithObjects: objects
count: count];
}
- initWithObject: (id)firstObject
arguments: (va_list)arguments
{
return (id)[[OFCountedSet_hashtable alloc] initWithObject: firstObject
arguments: arguments];
}
|
︙ | | | ︙ | |
Modified src/OFCountedSet_hashtable.m
from [fed71ad63c]
to [18146f1db1].
︙ | | | ︙ | |
79
80
81
82
83
84
85
86
87
88
89
90
91
92
|
- initWithArray: (OFArray*)array
{
self = [self init];
@try {
id *objects = [array objects];
size_t i, count = [array count];
for (i = 0; i < count; i++)
[self addObject: objects[i]];
} @catch (id e) {
[self release];
@throw e;
}
|
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
|
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
|
- initWithArray: (OFArray*)array
{
self = [self init];
@try {
id *objects = [array objects];
size_t i, count = [array count];
for (i = 0; i < count; i++)
[self addObject: objects[i]];
} @catch (id e) {
[self release];
@throw e;
}
return self;
}
- initWithObjects: (id const*)objects
count: (size_t)count
{
self = [self init];
@try {
size_t i;
for (i = 0; i < count; i++)
[self addObject: objects[i]];
} @catch (id e) {
[self release];
@throw e;
}
|
︙ | | | ︙ | |
Modified src/OFDictionary.h
from [03d734b6a0]
to [4adf9b615c].
︙ | | | ︙ | |
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
|
* \brief Creates a new OFDictionary with the specified keys and objects.
*
* \param keys An array of keys
* \param objects An array of objects
* \param count The number of objects in the arrays
* \return A new autoreleased OFDictionary
*/
+ dictionaryWithObjects: (id*)objects
forKeys: (id*)keys
count: (size_t)count;
/**
* \brief Creates a new OFDictionary with the specified keys objects.
*
* \param firstKey The first key
* \return A new autoreleased OFDictionary
|
|
|
|
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
|
* \brief Creates a new OFDictionary with the specified keys and objects.
*
* \param keys An array of keys
* \param objects An array of objects
* \param count The number of objects in the arrays
* \return A new autoreleased OFDictionary
*/
+ dictionaryWithObjects: (id const*)objects
forKeys: (id const*)keys
count: (size_t)count;
/**
* \brief Creates a new OFDictionary with the specified keys objects.
*
* \param firstKey The first key
* \return A new autoreleased OFDictionary
|
︙ | | | ︙ | |
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
|
* and objects.
*
* \param keys An array of keys
* \param objects An array of objects
* \param count The number of objects in the arrays
* \return A new initialized OFDictionary
*/
- initWithObjects: (id*)objects
forKeys: (id*)keys
count: (size_t)count;
/**
* \brief Initializes an already allocated OFDictionary with the specified keys
* and objects.
*
* \param firstKey The first key
|
|
|
|
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
|
* and objects.
*
* \param keys An array of keys
* \param objects An array of objects
* \param count The number of objects in the arrays
* \return A new initialized OFDictionary
*/
- initWithObjects: (id const*)objects
forKeys: (id const*)keys
count: (size_t)count;
/**
* \brief Initializes an already allocated OFDictionary with the specified keys
* and objects.
*
* \param firstKey The first key
|
︙ | | | ︙ | |
Modified src/OFDictionary.m
from [e60712dc03]
to [7004ce02ac].
︙ | | | ︙ | |
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
|
- initWithObjects: (OFArray*)objects
forKeys: (OFArray*)keys
{
return (id)[[OFDictionary_hashtable alloc] initWithObjects: objects
forKeys: keys];
}
- initWithObjects: (id*)objects
forKeys: (id*)keys
count: (size_t)count
{
return (id)[[OFDictionary_hashtable alloc] initWithObjects: objects
forKeys: keys
count: count];
}
|
|
|
|
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
|
- initWithObjects: (OFArray*)objects
forKeys: (OFArray*)keys
{
return (id)[[OFDictionary_hashtable alloc] initWithObjects: objects
forKeys: keys];
}
- initWithObjects: (id const*)objects
forKeys: (id const*)keys
count: (size_t)count
{
return (id)[[OFDictionary_hashtable alloc] initWithObjects: objects
forKeys: keys
count: count];
}
|
︙ | | | ︙ | |
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
|
+ dictionaryWithObjects: (OFArray*)objects
forKeys: (OFArray*)keys
{
return [[[self alloc] initWithObjects: objects
forKeys: keys] autorelease];
}
+ dictionaryWithObjects: (id*)objects
forKeys: (id*)keys
count: (size_t)count
{
return [[[self alloc] initWithObjects: objects
forKeys: keys
count: count] autorelease];
}
|
|
|
|
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
|
+ dictionaryWithObjects: (OFArray*)objects
forKeys: (OFArray*)keys
{
return [[[self alloc] initWithObjects: objects
forKeys: keys] autorelease];
}
+ dictionaryWithObjects: (id const*)objects
forKeys: (id const*)keys
count: (size_t)count
{
return [[[self alloc] initWithObjects: objects
forKeys: keys
count: count] autorelease];
}
|
︙ | | | ︙ | |
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
|
{
Class c = isa;
[self release];
@throw [OFNotImplementedException exceptionWithClass: c
selector: _cmd];
}
- initWithObjects: (id*)objects
forKeys: (id*)keys
count: (size_t)count
{
Class c = isa;
[self release];
@throw [OFNotImplementedException exceptionWithClass: c
selector: _cmd];
}
|
|
|
|
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
|
{
Class c = isa;
[self release];
@throw [OFNotImplementedException exceptionWithClass: c
selector: _cmd];
}
- initWithObjects: (id const*)objects
forKeys: (id const*)keys
count: (size_t)count
{
Class c = isa;
[self release];
@throw [OFNotImplementedException exceptionWithClass: c
selector: _cmd];
}
|
︙ | | | ︙ | |
Modified src/OFDictionary_hashtable.m
from [fd15d2ff3e]
to [2511a02b50].
︙ | | | ︙ | |
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
|
[self release];
@throw e;
}
return ret;
}
- initWithObjects: (id*)objects
forKeys: (id*)keys
count: (size_t)count_
{
self = [super init];
@try {
uint32_t i, j, newSize;
|
|
|
|
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
|
[self release];
@throw e;
}
return ret;
}
- initWithObjects: (id const*)objects
forKeys: (id const*)keys
count: (size_t)count_
{
self = [super init];
@try {
uint32_t i, j, newSize;
|
︙ | | | ︙ | |
Modified src/OFMutableArray.m
from [ef22d34f56]
to [833d3b17ca].
︙ | | | ︙ | |
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
|
}
- initWithArray: (OFArray*)array
{
return (id)[[OFMutableArray_adjacent alloc] initWithArray: array];
}
- initWithObjects: (id*)objects
count: (size_t)count
{
return (id)[[OFMutableArray_adjacent alloc] initWithObjects: objects
count: count];
}
- initWithSerialization: (OFXMLElement*)element
|
|
|
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
|
}
- initWithArray: (OFArray*)array
{
return (id)[[OFMutableArray_adjacent alloc] initWithArray: array];
}
- initWithObjects: (id const*)objects
count: (size_t)count
{
return (id)[[OFMutableArray_adjacent alloc] initWithObjects: objects
count: count];
}
- initWithSerialization: (OFXMLElement*)element
|
︙ | | | ︙ | |
Modified src/OFMutableDictionary.m
from [9331cf055e]
to [3637b5fc69].
︙ | | | ︙ | |
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
forKeys: (OFArray*)keys
{
return (id)[[OFMutableDictionary_hashtable alloc]
initWithObjects: objects
forKeys: keys];
}
- initWithObjects: (id*)objects
forKeys: (id*)keys
count: (size_t)count
{
return (id)[[OFMutableDictionary_hashtable alloc]
initWithObjects: objects
forKeys: keys
count: count];
}
|
|
|
|
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
forKeys: (OFArray*)keys
{
return (id)[[OFMutableDictionary_hashtable alloc]
initWithObjects: objects
forKeys: keys];
}
- initWithObjects: (id const*)objects
forKeys: (id const*)keys
count: (size_t)count
{
return (id)[[OFMutableDictionary_hashtable alloc]
initWithObjects: objects
forKeys: keys
count: count];
}
|
︙ | | | ︙ | |
Modified src/OFMutableSet.m
from [309a28b5d0]
to [112af5c677].
︙ | | | ︙ | |
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
va_start(arguments, firstObject);
ret = [[OFMutableSet_hashtable alloc] initWithObject: firstObject
arguments: arguments];
va_end(arguments);
return ret;
}
- initWithObject: (id)firstObject
arguments: (va_list)arguments
{
return (id)[[OFMutableSet_hashtable alloc] initWithObject: firstObject
arguments: arguments];
}
|
>
>
>
>
>
>
>
|
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
|
va_start(arguments, firstObject);
ret = [[OFMutableSet_hashtable alloc] initWithObject: firstObject
arguments: arguments];
va_end(arguments);
return ret;
}
- initWithObjects: (id const*)objects
count: (size_t)count
{
return (id)[[OFMutableSet_hashtable alloc] initWithObjects: objects
count: count];
}
- initWithObject: (id)firstObject
arguments: (va_list)arguments
{
return (id)[[OFMutableSet_hashtable alloc] initWithObject: firstObject
arguments: arguments];
}
|
︙ | | | ︙ | |
Modified src/OFSet.h
from [889864d837]
to [ec53fbdca5].
︙ | | | ︙ | |
66
67
68
69
70
71
72
73
74
75
76
77
78
79
|
* \brief Creates a new set with the specified objects.
*
* \param firstObject The first object for the set
* \return A new, autoreleased set with the specified objects
*/
+ setWithObjects: (id)firstObject, ...;
/**
* \brief Initializes an already allocated set with the specified set.
*
* \param set The set to initialize the set with
* \return An initialized set with the specified set
*/
- initWithSet: (OFSet*)set;
|
>
>
>
>
>
>
>
>
>
>
|
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
|
* \brief Creates a new set with the specified objects.
*
* \param firstObject The first object for the set
* \return A new, autoreleased set with the specified objects
*/
+ setWithObjects: (id)firstObject, ...;
/**
* \brief Creates a new set with the specified objects.
*
* \param objects An array of objects for the set
* \param count The number of objects in the specified array
* \return A new, autoreleased set with the specified objects
*/
+ setWithObjects: (id const*)objects
count: (size_t)count;
/**
* \brief Initializes an already allocated set with the specified set.
*
* \param set The set to initialize the set with
* \return An initialized set with the specified set
*/
- initWithSet: (OFSet*)set;
|
︙ | | | ︙ | |
90
91
92
93
94
95
96
97
98
99
100
101
102
103
|
* \brief Initializes an already allocated set with the specified objects.
*
* \param firstObject The first object for the set
* \return An initialized set with the specified objects
*/
- initWithObjects: (id)firstObject, ...;
/**
* \brief Initializes an already allocated set with the specified object and
* va_list.
*
* \param firstObject The first object for the set
* \param arguments A va_list with the other objects
* \return An initialized set with the specified object and va_list
|
>
>
>
>
>
>
>
>
>
>
|
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
|
* \brief Initializes an already allocated set with the specified objects.
*
* \param firstObject The first object for the set
* \return An initialized set with the specified objects
*/
- initWithObjects: (id)firstObject, ...;
/**
* \brief Initializes an already allocated set with the specified objects.
*
* \param objects An array of objects for the set
* \param count The number of objects in the specified array
* \return An initialized set with the specified objects
*/
- initWithObjects: (id const*)objects
count: (size_t)count;
/**
* \brief Initializes an already allocated set with the specified object and
* va_list.
*
* \param firstObject The first object for the set
* \param arguments A va_list with the other objects
* \return An initialized set with the specified object and va_list
|
︙ | | | ︙ | |
Modified src/OFSet.m
from [0733c68e31]
to [fdc2275c3d].
︙ | | | ︙ | |
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
va_start(arguments, firstObject);
ret = [[OFSet_hashtable alloc] initWithObject: firstObject
arguments: arguments];
va_end(arguments);
return ret;
}
- initWithObject: (id)firstObject
arguments: (va_list)arguments
{
return (id)[[OFSet_hashtable alloc] initWithObject: firstObject
arguments: arguments];
}
|
>
>
>
>
>
>
>
|
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
|
va_start(arguments, firstObject);
ret = [[OFSet_hashtable alloc] initWithObject: firstObject
arguments: arguments];
va_end(arguments);
return ret;
}
- initWithObjects: (id const*)objects
count: (size_t)count
{
return (id)[[OFSet_hashtable alloc] initWithObjects: objects
count: count];
}
- initWithObject: (id)firstObject
arguments: (va_list)arguments
{
return (id)[[OFSet_hashtable alloc] initWithObject: firstObject
arguments: arguments];
}
|
︙ | | | ︙ | |
132
133
134
135
136
137
138
139
140
141
142
143
144
145
|
va_start(arguments, firstObject);
ret = [[[self alloc] initWithObject: firstObject
arguments: arguments] autorelease];
va_end(arguments);
return ret;
}
- init
{
if (isa == [OFSet class]) {
Class c = isa;
[self release];
@throw [OFNotImplementedException exceptionWithClass: c
|
>
>
>
>
>
>
>
|
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
|
va_start(arguments, firstObject);
ret = [[[self alloc] initWithObject: firstObject
arguments: arguments] autorelease];
va_end(arguments);
return ret;
}
+ setWithObjects: (id const*)objects
count: (size_t)count
{
return [[[self alloc] initWithObjects: objects
count: count] autorelease];
}
- init
{
if (isa == [OFSet class]) {
Class c = isa;
[self release];
@throw [OFNotImplementedException exceptionWithClass: c
|
︙ | | | ︙ | |
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
|
{
Class c = isa;
[self release];
@throw [OFNotImplementedException exceptionWithClass: c
selector: _cmd];
}
- (id)initWithObjects:(id)firstObject, ...
{
id ret;
va_list arguments;
va_start(arguments, firstObject);
ret = [self initWithObject: firstObject
arguments: arguments];
va_end(arguments);
return ret;
}
- initWithObject: (id)firstObject
arguments: (va_list)arguments
{
Class c = isa;
[self release];
@throw [OFNotImplementedException exceptionWithClass: c
|
|
>
>
>
>
>
>
>
>
>
|
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
|
{
Class c = isa;
[self release];
@throw [OFNotImplementedException exceptionWithClass: c
selector: _cmd];
}
- (id)initWithObjects: (id)firstObject, ...
{
id ret;
va_list arguments;
va_start(arguments, firstObject);
ret = [self initWithObject: firstObject
arguments: arguments];
va_end(arguments);
return ret;
}
- initWithObjects: (id const*)objects
count: (size_t)count
{
Class c = isa;
[self release];
@throw [OFNotImplementedException exceptionWithClass: c
selector: _cmd];
}
- initWithObject: (id)firstObject
arguments: (va_list)arguments
{
Class c = isa;
[self release];
@throw [OFNotImplementedException exceptionWithClass: c
|
︙ | | | ︙ | |
Modified src/OFSet_hashtable.m
from [2beeed38e8]
to [bf071b8c76].
︙ | | | ︙ | |
78
79
80
81
82
83
84
85
86
87
88
89
90
91
|
self = [self init];
@try {
OFAutoreleasePool *pool = [[OFAutoreleasePool alloc] init];
OFNumber *one = [OFNumber numberWithSize: 1];
id *objects = [array objects];
size_t i, count = [array count];
for (i = 0; i < count; i++)
[dictionary _setObject: one
forKey: objects[i]
copyKey: NO];
[pool release];
|
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
|
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
|
self = [self init];
@try {
OFAutoreleasePool *pool = [[OFAutoreleasePool alloc] init];
OFNumber *one = [OFNumber numberWithSize: 1];
id *objects = [array objects];
size_t i, count = [array count];
for (i = 0; i < count; i++)
[dictionary _setObject: one
forKey: objects[i]
copyKey: NO];
[pool release];
} @catch (id e) {
[self release];
@throw e;
}
return self;
}
- initWithObjects: (id const*)objects
count: (size_t)count
{
self = [self init];
@try {
OFAutoreleasePool *pool = [[OFAutoreleasePool alloc] init];
OFNumber *one = [OFNumber numberWithSize: 1];
size_t i;
for (i = 0; i < count; i++)
[dictionary _setObject: one
forKey: objects[i]
copyKey: NO];
[pool release];
|
︙ | | | ︙ | |
Modified src/OFString_UTF8.h
from [f6988d5f2e]
to [716218f422].
︙ | | | ︙ | |
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
*/
#import "OFString.h"
@interface OFString_UTF8: OFString
{
@public
/*
* A pointer to the actual data.
*
* Since constant strings don't have s_store, they have to malloc it on
* the first access. Strings created at runtime just set the pointer to
* &s_store.
*/
struct of_string_utf8_ivars {
|
|
|
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
*/
#import "OFString.h"
@interface OFString_UTF8: OFString
{
@public
/**
* A pointer to the actual data.
*
* Since constant strings don't have s_store, they have to malloc it on
* the first access. Strings created at runtime just set the pointer to
* &s_store.
*/
struct of_string_utf8_ivars {
|
︙ | | | ︙ | |
Modified src/OFThreadPool.m
from [70e4fc157b]
to [7cccc445b9].
︙ | | | ︙ | |
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
|
[super dealloc];
}
- (void)perform
{
#ifdef OF_HAVE_BLOCKS
if (block != nil)
block(object);
else
#endif
[object performSelector: selector
withObject: object];
}
@end
|
|
|
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
|
[super dealloc];
}
- (void)perform
{
#ifdef OF_HAVE_BLOCKS
if (block != NULL)
block(object);
else
#endif
[object performSelector: selector
withObject: object];
}
@end
|
︙ | | | ︙ | |
Modified src/of_asprintf.m
from [72b4dbe204]
to [2b51c08162].
︙ | | | ︙ | |
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
* LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this
* file.
*/
#include "config.h"
#define _GNU_SOURCE
#include <stdlib.h>
#include <string.h>
#include <stdarg.h>
#include <stdbool.h>
#include <wchar.h>
#include <sys/types.h>
|
>
|
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
* LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this
* file.
*/
#include "config.h"
#define _GNU_SOURCE
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdarg.h>
#include <stdbool.h>
#include <wchar.h>
#include <sys/types.h>
|
︙ | | | ︙ | |
Modified utils/objfw-config.in
from [cfdb4a0db9]
to [d12bc5060e].
︙ | | | ︙ | |
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
CPPFLAGS="-I@includedir@"
CXXFLAGS=""
OBJC="@OBJC@"
OBJCFLAGS="@GNU_RUNTIME@ -fexceptions -fobjc-exceptions"
OBJCFLAGS="$OBJCFLAGS -fconstant-string-class=OFConstantString"
OBJCFLAGS="$OBJCFLAGS @NO_CONST_CFSTRINGS@ @BLOCKS_FLAGS@ @NO_WARN_UNUSED@"
LIB_CFLAGS="@LIB_CFLAGS@"
LIB_LDFLAGS='@LIB_LDFLAGS@'
LIB_PREFIX="@LIB_PREFIX@"
LIB_SUFFIX="@LIB_SUFFIX@"
LDFLAGS=""
LDFLAGS_REEXPORT="@LDFLAGS_REEXPORT@"
LDFLAGS_RPATH="@LDFLAGS_RPATH@"
LIBS="-L${libdir} -lobjfw @LIBS@"
PLUGIN_CFLAGS="@PLUGIN_CFLAGS@"
|
|
|
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
CPPFLAGS="-I@includedir@"
CXXFLAGS=""
OBJC="@OBJC@"
OBJCFLAGS="@GNU_RUNTIME@ -fexceptions -fobjc-exceptions"
OBJCFLAGS="$OBJCFLAGS -fconstant-string-class=OFConstantString"
OBJCFLAGS="$OBJCFLAGS @NO_CONST_CFSTRINGS@ @BLOCKS_FLAGS@ @NO_WARN_UNUSED@"
LIB_CFLAGS="@LIB_CFLAGS@"
LIB_LDFLAGS="@LIB_LDFLAGS@"
LIB_PREFIX="@LIB_PREFIX@"
LIB_SUFFIX="@LIB_SUFFIX@"
LDFLAGS=""
LDFLAGS_REEXPORT="@LDFLAGS_REEXPORT@"
LDFLAGS_RPATH="@LDFLAGS_RPATH@"
LIBS="-L${libdir} -lobjfw @LIBS@"
PLUGIN_CFLAGS="@PLUGIN_CFLAGS@"
|
︙ | | | ︙ | |
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
|
if test x"$SHARED_LIB" = x"" -o x"$LIB_MAJOR" = x"" \
-o x"$LIB_MINOR" = x""; then
printf "SHARED_LIB, LIB_MAJOR and " 2>&1
echo "and LIB_MINOR to be set!" 1>&2
exit 1
fi
eval "printf '%s' \"$(echo $LIB_LDFLAGS | \
sed 's/\$\$/$/g')\""
;;
--lib-prefix)
if test x"$LIB_MAJOR" = x"" -o x"$LIB_MINOR" = x""; then
echo "LIB_MAJOR and LIB_MINOR need to be set!" \
1>&2
exit 1
fi
|
|
<
|
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
|
if test x"$SHARED_LIB" = x"" -o x"$LIB_MAJOR" = x"" \
-o x"$LIB_MINOR" = x""; then
printf "SHARED_LIB, LIB_MAJOR and " 2>&1
echo "and LIB_MINOR to be set!" 1>&2
exit 1
fi
printf "%s" "$LIB_LDFLAGS"
;;
--lib-prefix)
if test x"$LIB_MAJOR" = x"" -o x"$LIB_MINOR" = x""; then
echo "LIB_MAJOR and LIB_MINOR need to be set!" \
1>&2
exit 1
fi
|
︙ | | | ︙ | |