Overview
Context
Changes
Modified src/Makefile
from [beed6c9c08]
to [fcce85d9ef].
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
|
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
|
+
-
-
+
|
include ../extra.mk
SUBDIRS = exceptions
LIB = ${OBJFW_SHARED_LIB}
LIB_MAJOR = ${OBJFW_LIB_MAJOR}
LIB_MINOR = ${OBJFW_LIB_MINOR}
STATIC_LIB = ${OBJFW_STATIC_LIB}
SRCS = OFApplication.m \
OFArray.m \
OFArray_adjacent.m \
OFAutoreleasePool.m \
OFBlock.m \
OFCArray.m \
OFConstantString.m \
OFCountedSet.m \
OFDataArray.m \
OFDataArray+Hashing.m \
OFDate.m \
OFDictionary.m \
OFDoubleMatrix.m \
OFDoubleVector.m \
OFEnumerator.m \
OFFile.m \
OFFloatMatrix.m \
OFFloatVector.m \
OFHash.m \
OFHTTPRequest.m \
OFIntrospection.m \
OFList.m \
OFMD5Hash.m \
OFMutableArray.m \
OFMutableCArray.m \
OFMutableArray_adjacent.m \
OFMutableDictionary.m \
OFMutableSet.m \
OFMutableString.m \
OFNull.m \
OFNumber.m \
OFObject.m \
OFObject+Serialization.m \
|
︙ | | |
Modified src/OFArray.m
from [da553bca16]
to [2988c16d4d].
︙ | | |
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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
|
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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
|
-
+
-
+
-
+
-
-
+
+
-
-
+
+
-
+
-
+
-
-
+
+
-
+
|
*/
#include "config.h"
#include <stdarg.h>
#import "OFArray.h"
#import "OFCArray.h"
#import "OFArray_adjacent.h"
#import "OFString.h"
#import "OFXMLElement.h"
#import "OFAutoreleasePool.h"
#import "OFEnumerationMutationException.h"
#import "OFInvalidArgumentException.h"
#import "OFNotImplementedException.h"
#import "OFOutOfRangeException.h"
#import "macros.h"
static struct {
Class isa;
} placeholder;
@implementation OFArrayPlaceholder
- init
{
return (id)[[OFCArray alloc] init];
return (id)[[OFArray_adjacent alloc] init];
}
- initWithObject: (id)object
{
return (id)[[OFCArray alloc] initWithObject: object];
return (id)[[OFArray_adjacent alloc] initWithObject: object];
}
- initWithObjects: (id)firstObject, ...
{
id ret;
va_list arguments;
va_start(arguments, firstObject);
ret = [[OFCArray alloc] initWithObject: firstObject
arguments: arguments];
ret = [[OFArray_adjacent alloc] initWithObject: firstObject
arguments: arguments];
va_end(arguments);
return ret;
}
- initWithObject: (id)firstObject
arguments: (va_list)arguments
{
return (id)[[OFCArray alloc] initWithObject: firstObject
arguments: arguments];
return (id)[[OFArray_adjacent alloc] initWithObject: firstObject
arguments: arguments];
}
- initWithArray: (OFArray*)array
{
return (id)[[OFCArray alloc] initWithArray: array];
return (id)[[OFArray_adjacent alloc] initWithArray: array];
}
- initWithCArray: (id*)objects
{
return (id)[[OFCArray alloc] initWithCArray: objects];
return (id)[[OFArray_adjacent alloc] initWithCArray: objects];
}
- initWithCArray: (id*)objects
length: (size_t)length
{
return (id)[[OFCArray alloc] initWithCArray: objects
length: length];
return (id)[[OFArray_adjacent alloc] initWithCArray: objects
length: length];
}
- initWithSerialization: (OFXMLElement*)element
{
return (id)[[OFCArray alloc] initWithSerialization: element];
return (id)[[OFArray_adjacent alloc] initWithSerialization: element];
}
- retain
{
return self;
}
|
︙ | | |
Added src/OFArray_adjacent.h version [0519520f07].
|
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
|
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
|
/*
* Copyright (c) 2008, 2009, 2010, 2011
* Jonathan Schleifer <js@webkeks.org>
*
* All rights reserved.
*
* This file is part of ObjFW. It may be distributed under the terms of the
* Q Public License 1.0, which can be found in the file LICENSE.QPL included in
* the packaging of this file.
*
* Alternatively, it may be distributed under the terms of the GNU General
* Public License, either version 2 or 3, which can be found in the file
* LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this
* file.
*/
#import "OFArray.h"
@class OFDataArray;
/**
* \brief A class for storing objects in an array.
*/
@interface OFArray_adjacent: OFArray
{
OFDataArray *array;
}
@end
|
| | | | | | | | | | | | | | | | | | | | | | | | | | |
Added src/OFArray_adjacent.m version [f4dc3297f2].