ObjFW  Diff

Differences From Artifact [6c0dda2992]:

To Artifact [434b0d067a]:


14
15
16
17
18
19
20

21
22
23
24
25
26
27
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"

/**
 * \brief The type of a number.
 */
typedef enum of_number_type_t {
	OF_NUMBER_BOOL,
	OF_NUMBER_CHAR,
50
51
52
53
54
55
56
57

58
59
60
61
62
63
64
51
52
53
54
55
56
57

58
59
60
61
62
63
64
65







-
+







	OF_NUMBER_FLOAT,
	OF_NUMBER_DOUBLE,
} of_number_type_t;

/**
 * \brief Provides a way to store a number in an object.
 */
@interface OFNumber: OFObject <OFCopying, OFSerialization>
@interface OFNumber: OFObject <OFCopying, OFSerialization, OFJSON>
{
	union of_number_value {
		BOOL	       bool_;
		signed char    char_;
		signed short   short_;
		signed int     int_;
		signed long    long_;