ObjFW  Diff

Differences From Artifact [76fb7ad662]:

To Artifact [714973113c]:


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
96

97
98

99
100
101

102
103

104
105
106

107
108

109
110
111

112
113

114
115
116

117
118

119
120
121

122
123

124
125
126

127
128

129
130
131

132
133

134
135
136

137
138

139
140
141

142
143

144
145
146

147
148

149
150
151

152
153

154
155
156

157
158

159
160
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
187
188
189
190
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

96
97

98
99
100

101
102

103
104
105

106
107

108
109
110

111
112

113
114
115

116
117

118
119
120

121
122

123
124
125

126
127

128
129
130

131
132

133
134
135

136
137

138
139
140

141
142

143
144
145

146
147

148
149
150

151
152

153
154
155

156
157

158
159
160

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
187
188
189
190







-
+

-
+


-
+

-
+


-
+

-
+


-
+

-
+


-
+

-
+


-
+

-
+


-
+

-
+


-
+

-
+


-
+

-
+


-
+

-
+


-
+

-
+


-
+

-
+


-
+

-
+


-
+

-
+


-
+

-
+


-
+

-
+


-
+

-
+


-
+

-
+


-
+

-
+


-
+

-
+


-
+

-
+


-
+

-
+


-
+

-
+







		@throw [OFInvalidFormatException newWithClass: [self class]]; \
									      \
		/* Make gcc happy */					      \
		return 0;						      \
	}

@implementation OFNumber
+ newWithChar: (char)char_
+ numberWithChar: (char)char_
{
	return [[self alloc] initWithChar: char_];
	return [[[self alloc] initWithChar: char_] autorelease];
}

+ newWithShort: (short)short_
+ numberWithShort: (short)short_
{
	return [[self alloc] initWithShort: short_];
	return [[[self alloc] initWithShort: short_] autorelease];
}

+ newWithInt: (int)int_
+ numberWithInt: (int)int_
{
	return [[self alloc] initWithInt: int_];
	return [[[self alloc] initWithInt: int_] autorelease];
}

+ newWithLong: (long)long_
+ numberWithLong: (long)long_
{
	return [[self alloc] initWithLong: long_];
	return [[[self alloc] initWithLong: long_] autorelease];
}

+ newWithUChar: (unsigned char)uchar
+ numberWithUChar: (unsigned char)uchar
{
	return [[self alloc] initWithUChar: uchar];
	return [[[self alloc] initWithUChar: uchar] autorelease];
}

+ newWithUShort: (unsigned short)ushort
+ numberWithUShort: (unsigned short)ushort
{
	return [[self alloc] initWithUShort: ushort];
	return [[[self alloc] initWithUShort: ushort] autorelease];
}

+ newWithUInt: (unsigned int)uint
+ numberWithUInt: (unsigned int)uint
{
	return [[self alloc] initWithUInt: uint];
	return [[[self alloc] initWithUInt: uint] autorelease];
}

+ newWithULong: (unsigned long)ulong
+ numberWithULong: (unsigned long)ulong
{
	return [[self alloc] initWithULong: ulong];
	return [[[self alloc] initWithULong: ulong] autorelease];
}

+ newWithInt8: (int8_t)int8
+ numberWithInt8: (int8_t)int8
{
	return [[self alloc] initWithInt8: int8];
	return [[[self alloc] initWithInt8: int8] autorelease];
}

+ newWithInt16: (int16_t)int16
+ numberWithInt16: (int16_t)int16
{
	return [[self alloc] initWithInt16: int16];
	return [[[self alloc] initWithInt16: int16] autorelease];
}

+ newWithInt32: (int32_t)int32
+ numberWithInt32: (int32_t)int32
{
	return [[self alloc] initWithInt32: int32];
	return [[[self alloc] initWithInt32: int32] autorelease];
}

+ newWithInt64: (int64_t)int64
+ numberWithInt64: (int64_t)int64
{
	return [[self alloc] initWithInt64: int64];
	return [[[self alloc] initWithInt64: int64] autorelease];
}

+ newWithUInt8: (uint8_t)uint8
+ numberWithUInt8: (uint8_t)uint8
{
	return [[self alloc] initWithUInt8: uint8];
	return [[[self alloc] initWithUInt8: uint8] autorelease];
}

+ newWithUInt16: (uint16_t)uint16
+ numberWithUInt16: (uint16_t)uint16
{
	return [[self alloc] initWithUInt16: uint16];
	return [[[self alloc] initWithUInt16: uint16] autorelease];
}

+ newWithUInt32: (uint32_t)uint32
+ numberWithUInt32: (uint32_t)uint32
{
	return [[self alloc] initWithUInt32: uint32];
	return [[[self alloc] initWithUInt32: uint32] autorelease];
}

+ newWithUInt64: (uint64_t)uint64
+ numberWithUInt64: (uint64_t)uint64
{
	return [[self alloc] initWithUInt64: uint64];
	return [[[self alloc] initWithUInt64: uint64] autorelease];
}

+ newWithSize: (size_t)size
+ numberWithSize: (size_t)size
{
	return [[self alloc] initWithSize: size];
	return [[[self alloc] initWithSize: size] autorelease];
}

+ newWithSSize: (ssize_t)ssize
+ numberWithSSize: (ssize_t)ssize
{
	return [[self alloc] initWithSSize: ssize];
	return [[[self alloc] initWithSSize: ssize] autorelease];
}

+ newWithPtrDiff: (ptrdiff_t)ptrdiff
+ numberWithPtrDiff: (ptrdiff_t)ptrdiff
{
	return [[self alloc] initWithPtrDiff: ptrdiff];
	return [[[self alloc] initWithPtrDiff: ptrdiff] autorelease];
}

+ newWithIntPtr: (intptr_t)intptr
+ numberWithIntPtr: (intptr_t)intptr
{
	return [[self alloc] initWithIntPtr: intptr];
	return [[[self alloc] initWithIntPtr: intptr] autorelease];
}

+ newWithFloat: (float)float_
+ numberWithFloat: (float)float_
{
	return [[self alloc] initWithFloat: float_];
	return [[[self alloc] initWithFloat: float_] autorelease];
}

+ newWithDouble: (double)double_
+ numberWithDouble: (double)double_
{
	return [[self alloc] initWithDouble: double_];
	return [[[self alloc] initWithDouble: double_] autorelease];
}

+ newWithLongDouble: (long double)longdouble
+ numberWithLongDouble: (long double)longdouble
{
	return [[self alloc] initWithLongDouble: longdouble];
	return [[[self alloc] initWithLongDouble: longdouble] autorelease];
}

- initWithChar: (char)char_
{
	if ((self = [super init])) {
		value.char_ = char_;
		type = OF_NUMBER_CHAR;