Overview
Context
Changes
Modified src/Makefile
from [270710a3f5]
to [25c91a581f].
︙ | | |
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
|
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
|
-
+
|
base64.m \
of_asprintf.m \
of_strptime.m \
unicode.m
INCLUDES := ${SRCS:.m=.h} \
OFCollection.h \
OFJSON.h \
OFJSONEncoding.h \
OFSerialization.h \
ObjFW.h \
asprintf.h \
${ATOMIC_H} \
macros.h \
objfw-defs.h \
${THREADING_H}
|
︙ | | |
Modified src/OFArray.h
from [7771b2d583]
to [d843b1e6a0].
︙ | | |
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
-
+
|
#include <stdarg.h>
#import "OFObject.h"
#import "OFCollection.h"
#import "OFEnumerator.h"
#import "OFSerialization.h"
#import "OFJSON.h"
#import "OFJSONEncoding.h"
@class OFString;
#ifdef OF_HAVE_BLOCKS
typedef void (^of_array_enumeration_block_t)(id object, size_t index,
BOOL *stop);
typedef BOOL (^of_array_filter_block_t)(id odject, size_t index);
|
︙ | | |
Modified src/OFDictionary.h
from [944558101d]
to [2c4a7cb429].
︙ | | |
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
-
+
|
#include <stdarg.h>
#import "OFObject.h"
#import "OFCollection.h"
#import "OFEnumerator.h"
#import "OFSerialization.h"
#import "OFJSON.h"
#import "OFJSONEncoding.h"
@class OFArray;
#ifdef OF_HAVE_BLOCKS
typedef void (^of_dictionary_enumeration_block_t)(id key, id object,
BOOL *stop);
typedef BOOL (^of_dictionary_filter_block_t)(id key, id object);
|
︙ | | |
Deleted src/OFJSON.h version [ec0c31fdfa].
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
|
|
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
|
/*
* 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.
*/
@class OFString;
/**
* \brief A category implemented by classes that support a JSON representation.
*/
@protocol OFJSON
/**
* \brief Returns the JSON representation of the object as a string.
*
* \return The JSON representation of the object as a string.
*/
- (OFString*)JSONRepresentation;
@end
|
Added src/OFJSONEncoding.h version [0f5eb56dd1].
|
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
|
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
|
/*
* 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.
*/
@class OFString;
/**
* \brief A category implemented by classes that support encoding to a JSON
* representation.
*
* \warning Although this method can be called directly on classes other than
* OFArray and OFDictionary, this will generate invalid JSON, as JSON
* requires all data to be encapsulated in an array or a dictionary!
*/
@protocol OFJSON
/**
* \brief Returns the JSON representation of the object as a string.
*
* \return The JSON representation of the object as a string.
*/
- (OFString*)JSONRepresentation;
@end
|
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Modified src/OFNull.h
from [b87e070d6d]
to [9edd54e269].
︙ | | |
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
-
+
|
* 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 "OFObject.h"
#import "OFSerialization.h"
#import "OFJSON.h"
#import "OFJSONEncoding.h"
/**
* \brief A class for representing null values in collections.
*/
@interface OFNull: OFObject <OFCopying, OFSerialization, OFJSON>
/**
* \brief Returns an OFNull singleton.
*
* \return An OFNull singleton
*/
+ null;
@end
|
Modified src/OFNumber.h
from [434b0d067a]
to [a16d8529e4].
︙ | | |
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
-
+
|
* file.
*/
#include <sys/types.h>
#import "OFObject.h"
#import "OFSerialization.h"
#import "OFJSON.h"
#import "OFJSONEncoding.h"
/**
* \brief The type of a number.
*/
typedef enum of_number_type_t {
OF_NUMBER_BOOL,
OF_NUMBER_CHAR,
|
︙ | | |
Modified src/OFString.h
from [0ad45bcf47]
to [e5361dfca6].
︙ | | |
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
-
+
|
#include <stdio.h>
#include <stdarg.h>
#include <inttypes.h>
#import "OFObject.h"
#import "OFSerialization.h"
#import "OFJSON.h"
#import "OFJSONEncoding.h"
#import "macros.h"
@class OFConstantString;
typedef uint32_t of_unichar_t;
|
︙ | | |