ObjFW  History of src/OFNumber.m of a3cc34b139c00fbe

History of file src/OFNumber.m at check-in a3cc34b139c00fbe

2024-04-03
02:16
Change license to LGPLv3 only file: [f7bfac6fc7] check-in: [7413a728a7] user: js, branch: trunk, size: 20471 [annotate] [blame] [check-ins using] [diff]
2024-01-14
13:00
Replace OFASN1Boolean with bool OFNumber file: [f54894ca09] check-in: [90ee6a8373] user: js, branch: asn1, size: 20652 [annotate] [blame] [check-ins using] [diff]
2024-01-02
17:17
Update copyright file: [e5b90c57f3] check-in: [26ddd2e4e4] user: js, branch: trunk, size: 20263 [annotate] [blame] [check-ins using] [diff]
2023-08-09
15:24
Make OFNumber a proper class cluster file: [b5f05b79e3] check-in: [c9115cce73] user: js, branch: trunk, size: 20263 [annotate] [blame] [check-ins using] [diff]
14:27
Make OFValue a proper class cluster file: [faf6429224] check-in: [12968f1d68] user: js, branch: trunk, size: 25721 [annotate] [blame] [check-ins using] [diff]
10:09
More consistency in naming of private classes file: [8fe1f42701] check-in: [281b494de4] user: js, branch: trunk, size: 25581 [annotate] [blame] [check-ins using] [diff]
09:08
Add OF_SINGLETON_METHODS file: [af557968cc] check-in: [36310f6263] user: js, branch: trunk, size: 25581 [annotate] [blame] [check-ins using] [diff]
2023-08-08
15:32
A few minor cleanups file: [c9137e7e6f] check-in: [a6f520157a] user: js, branch: trunk, size: 25706 [annotate] [blame] [check-ins using] [diff]
2023-04-10
19:22
Remove OFSerialization

While the idea sounds nice that the tag name is the class, this means the
serialization includes whether something is mutable or immutable. This means
doing as much as making something immutable changes the serialization, which
can then cause issues after being deserialized. file: [b9b4334494] check-in: [6ce0093f8d] user: js, branch: trunk, size: 25689 [annotate] [blame] [check-ins using] [diff]

2023-01-06
09:04
Update copyright file: [7ed514fdca] check-in: [8939cbdb52] user: js, branch: trunk, size: 28201 [annotate] [blame] [check-ins using] [diff]
2022-08-30
00:48
OFObject: Small API change file: [0d84e74204] check-in: [4ad0c363f3] user: js, branch: trunk, size: 28201 [annotate] [blame] [check-ins using] [diff]
2022-06-06
07:06
Always implement dummy for OF_UNAVAILABLE methods

GCC now supports the attribute, but still complains if the method is not
implemented, so always implement it with a method that throws. file: [fd08ff8e66] check-in: [e53c0160a8] user: js, branch: trunk, size: 28193 [annotate] [blame] [check-ins using] [diff]

2022-02-12
07:46
Update copyright file: [bc852126ea] check-in: [1a86b8175b] user: js, branch: trunk, size: 27470 [annotate] [blame] [check-ins using] [diff]
2021-04-25
19:58
Last round of renames (hopefully) file: [34d1acfa38] check-in: [6ae98c1dcf] user: js, branch: trunk, size: 27470 [annotate] [blame] [check-ins using] [diff]
2021-04-19
22:20
Rename all remaining enums file: [4fabc7778d] check-in: [e97b03815f] user: js, branch: new-naming-convention, size: 27470 [annotate] [blame] [check-ins using] [diff]
21:54
Rename a few more constants file: [3b421cd558] check-in: [458420998c] user: js, branch: new-naming-convention, size: 27554 [annotate] [blame] [check-ins using] [diff]
2021-04-18
21:12
OF_RETAIN_COUNT_MAX -> OFMaxRetainCount file: [10bbeb0e0f] check-in: [b06b86d6f9] user: js, branch: new-naming-convention, size: 27558 [annotate] [blame] [check-ins using] [diff]
15:55
Rename all functions in macros.h file: [2f62075a88] check-in: [7392685ffc] user: js, branch: new-naming-convention, size: 27561 [annotate] [blame] [check-ins using] [diff]
2021-04-17
17:49
Rename JSON representation options file: [74384103b7] check-in: [5ce8c7cca7] user: js, branch: new-naming-convention, size: 27573 [annotate] [blame] [check-ins using] [diff]
16:13
of_once_t -> OFOnceControl file: [fbce14e70c] check-in: [26aa88fc9b] user: js, branch: new-naming-convention, size: 27476 [annotate] [blame] [check-ins using] [diff]
00:14
of_comparison_result_t -> OFComparisonResult file: [abbcb2ae39] check-in: [61fc389aee] user: js, branch: new-naming-convention, size: 27098 [annotate] [blame] [check-ins using] [diff]
2021-04-07
22:20
Make GCC happy again file: [965d322b8e] check-in: [96ee4795ad] user: js, branch: trunk, size: 27120 [annotate] [blame] [check-ins using] [diff]
2021-03-07
20:25
*.m: Fold methods into one line where it fits file: [1b24e74726] check-in: [1b82d3bf4f] user: js, branch: trunk, size: 27181 [annotate] [blame] [check-ins using] [diff]
2021-01-02
22:04
Update copyright file: [92fb9ca7c6] check-in: [374e1a1bfa] user: js, branch: trunk, size: 27539 [annotate] [blame] [check-ins using] [diff]
2020-10-10
14:27
OFObject: Change type of -[hash] to unsigned long

The internal hash is still 32 bit in most places, but this way, it is at
least not baked into the API and ABI and can be upgraded later, should
that ever be necessary. file: [80a9f3f337] check-in: [aeb403a1ed] user: js, branch: trunk, size: 27628 [annotate] [blame] [check-ins using] [diff]

2020-09-27
00:57
Work around bugs in Apple GCC 4.2.1 file: [d23a5a6bf5] check-in: [cbc09c6e26] user: js, branch: trunk, size: 22258 [annotate] [blame] [check-ins using] [diff]
2020-09-04
18:03
OFNumber: Fix missing #ifdefs file: [eeab93bc59] check-in: [81469669ae] user: js, branch: tagged-pointers, size: 27623 [annotate] [blame] [check-ins using] [diff]
16:39
OFNumber: Add support for tagged pointers file: [ee11ae97a1] check-in: [8c32791836] user: js, branch: tagged-pointers, size: 27313 [annotate] [blame] [check-ins using] [diff]
2020-08-30
16:22
OFNumber: Never access ivars after init

This is a requirement for tagged pointer numbers, which cannot have
ivars. file: [b25cee6a5c] check-in: [bc9998913a] user: js, branch: tagged-pointers, size: 22577 [annotate] [blame] [check-ins using] [diff]

2020-08-25
00:11
OFNumber: Remove (u)int{8,16,32,64} methods

Since C guarantees minimum sizes for char, short, int, long and long
long, these can be used instead. file: [17a849254e] check-in: [25c985fec1] user: js, branch: trunk, size: 22251 [annotate] [blame] [check-ins using] [diff]

2020-08-22
18:39
OFNumber: Don't always use the smallest type

This is annoying as it changes the type encoding, and hence makes
-[getValue:size:] a pain. file: [f7c843c996] check-in: [9746cff094] user: js, branch: trunk, size: 28581 [annotate] [blame] [check-ins using] [diff]

2020-08-16
18:28
OFNumber: Remove ssize_t

It's a non-standard type that should only be used for matching POSIX
APIs. file: [c26097a3d6] check-in: [be8b442546] user: js, branch: trunk, size: 28506 [annotate] [blame] [check-ins using] [diff]

2020-08-12
20:56
Avoid using (u)intmax_t in methods

It is not guaranteed that a type encoding for it exists. file: [a978c1217d] check-in: [d74f244ab7] user: js, branch: trunk, size: 29075 [annotate] [blame] [check-ins using] [diff]

2020-08-11
19:45
OFString: Rework number parsing API

This solves the old signed vs. unsigned problem and allows for more
bases than just 8, 10 and 16, as well as auto-detection of the base (if
base is 0). file: [bbb46f4d11] check-in: [b6ee372b98] user: js, branch: trunk, size: 30224 [annotate] [blame] [check-ins using] [diff]

2020-07-19
16:12
OFNumber: Add singletons for 0, 1, 2, true & false file: [57186c2c7a] check-in: [d8123a1f26] user: js, branch: trunk, size: 30160 [annotate] [blame] [check-ins using] [diff]
14:16
Disable a Clang warning preventing limit checks file: [537e45b1d4] check-in: [bb73116ce2] user: js, branch: trunk, size: 29588 [annotate] [blame] [check-ins using] [diff]
11:49
OFNumber: Refactor to reduce code size file: [f930cc4476] check-in: [59e1c84d30] user: js, branch: trunk, size: 29258 [annotate] [blame] [check-ins using] [diff]
11:03
OFNumber: Always use the smallest type that fits file: [68a0381598] check-in: [5e8cca7678] user: js, branch: trunk, size: 37981 [annotate] [blame] [check-ins using] [diff]
09:06
OFNumber: Use a placeholder until init is called file: [fe840b486f] check-in: [025756f4e3] user: js, branch: trunk, size: 34528 [annotate] [blame] [check-ins using] [diff]
2020-04-19
14:52
Reduce usage of unions file: [f96cb2d4be] check-in: [e0459c419c] user: js, branch: trunk, size: 30756 [annotate] [blame] [check-ins using] [diff]
2020-01-02
01:51
Update copyright file: [5a67a624f2] check-in: [c7f0229795] user: js, branch: trunk, size: 30938 [annotate] [blame] [check-ins using] [diff]
2019-12-14
18:48
OFNumber: Add -[stringValue] file: [f90d5af790] check-in: [f5558d0919] user: js, branch: trunk, size: 30935 [annotate] [blame] [check-ins using] [diff]
2019-03-08
00:35
Use dot syntax file: [402455fc05] check-in: [bceb7ed4c9] user: js, branch: trunk, size: 30876 [annotate] [blame] [check-ins using] [diff]
2019-01-03
19:13
Update copyright file: [bef2101a40] check-in: [0509d7a844] user: js, branch: trunk, size: 30956 [annotate] [blame] [check-ins using] [diff]
2018-04-22
17:48
Make ObjFW compile for AmigaOS 3 file: [22aa4870ba] check-in: [0b07c8fcfa] user: js, branch: trunk, size: 30950 [annotate] [blame] [check-ins using] [diff]
2018-03-10
19:05
Add OFColor

This is useful so that multiple libraries using ObjFW can share the same
type for colors, similar to e.g. of_rectangle_t. file: [25c5c7f684] check-in: [f484fedee2] user: js, branch: trunk, size: 30972 [annotate] [blame] [check-ins using] [diff]

2018-02-11
12:15
Make OFNumber a subclass of OFValue file: [15e27ceca1] check-in: [612cd94090] user: js, branch: trunk, size: 30967 [annotate] [blame] [check-ins using] [diff]
2018-01-03
19:49
Update copyright notice file: [63e83c2f21] check-in: [7e5c81e186] user: js, branch: trunk, size: 24383 [annotate] [blame] [check-ins using] [diff]
2017-11-19
12:56
Fix compilation with GCC file: [266c1e5fc4] check-in: [615a9f2eba] user: js, branch: trunk, size: 24360 [annotate] [blame] [check-ins using] [diff]
12:05
Fix warnings introduced by OFComparing change

Since OFComparing no longer conforms to OFObject, OFObject needed to be
added at a few places. file: [64757a4f33] check-in: [11f24addd7] user: js, branch: trunk, size: 24366 [annotate] [blame] [check-ins using] [diff]

2017-11-11
23:27
Small optimization for -[isEqual:] file: [12ab796c0f] check-in: [526feacebc] user: js, branch: trunk, size: 24356 [annotate] [blame] [check-ins using] [diff]
2017-10-22
15:05
Make Apple GCC with -Wshadow happy file: [c650f7deea] check-in: [a06354b42a] user: js, branch: trunk, size: 24319 [annotate] [blame] [check-ins using] [diff]
14:09
Make Apple GCC with -Wshadow happy file: [3da26d55ba] check-in: [31c0f5b89e] user: js, branch: 0.90, size: 23895 [annotate] [blame] [check-ins using] [diff]
2017-10-17
00:33
Do not use implicit method return types

Instead, explicitly declare them, as OF_ASSUME_NONNULL_{BEGIN,END} does
not apply to implicit return types. This means that after this commit,
all init methods have a nonnull return type, as they should have. file: [2a910136b7] check-in: [2f4e0df8be] user: js, branch: trunk, size: 24319 [annotate] [blame] [check-ins using] [diff]

2017-07-22
20:50
Split OFDataArray into OFData and OFMutableData file: [3d97fc0b3e] check-in: [c8f7b90082] user: js, branch: trunk, size: 23895 [annotate] [blame] [check-ins using] [diff]
2017-05-21
21:28
Prefix private methods with of_ instead of OF_

This matches Apple's style. file: [30e08cc2cc] check-in: [6b77a5dd8b] user: js, branch: trunk, size: 23981 [annotate] [blame] [check-ins using] [diff]

2017-05-14
23:33
OFNumber: Handle int endianess != float endianess file: [4f64bc6461] check-in: [e29e71523e] user: js, branch: trunk, size: 23981 [annotate] [blame] [check-ins using] [diff]
2017-05-07
20:10
Small code style change

Casts are now written like types in variable declarations. file: [97313fd44a] check-in: [4af49a13c3] user: js, branch: trunk, size: 23791 [annotate] [blame] [check-ins using] [diff]

2017-01-09
17:36
Update copyright

Forgot to add 2017, even though I already did quite some changes in
2017. file: [5681aa0f6b] check-in: [44f45c2e35] user: js, branch: trunk, size: 23780 [annotate] [blame] [check-ins using] [diff]

2017-01-07
00:09
OFNumber: Make description locale-compatible file: [424f2af76e] check-in: [df5e33bec7] user: js, branch: trunk, size: 24226 [annotate] [blame] [check-ins using] [diff]
2017-01-06
23:42
Several minor style fixes file: [114905a94e] check-in: [ae340607fd] user: js, branch: trunk, size: 23774 [annotate] [blame] [check-ins using] [diff]
2016-10-09
01:06
Remove inttypes.h include from OFString.h

This fixes including a non-module header in a module. file: [39c49eaec8] check-in: [9c108208ef] user: js, branch: trunk, size: 23782 [annotate] [blame] [check-ins using] [diff]

2016-02-21
15:37
Make use of C99-style for loops file: [3586cf276f] check-in: [e0b9167693] user: js, branch: trunk, size: 23760 [annotate] [blame] [check-ins using] [diff]
2016-01-05
22:00
(u)int_fast*_t -> (u)int*_t

(U)INT_FAST*_MAX is broken on Android, which makes (u)int_fast*_t
dangerous to use while it does not provide any real speed benefit. file: [8f726b2505] check-in: [d3158d091f] user: js, branch: trunk, size: 23765 [annotate] [blame] [check-ins using] [diff]

2016-01-03
00:43
Update copyright

While at it, also update the mail address. file: [94ed5c68f9] check-in: [cec0f072f8] user: js, branch: 0.8, size: 23807 [annotate] [blame] [check-ins using] [diff]

00:41
Update copyright

While at it, also update the mail address. file: [9f35def2ab] check-in: [2a27cf3000] user: js, branch: trunk, size: 23770 [annotate] [blame] [check-ins using] [diff]

2015-11-29
14:23
Clean up class extensions

Now that we can require GCC >= 4.6, we no longer need to fall back to
using a category on old compilers. file: [a41a16b8f6] check-in: [2aca549d60] user: js, branch: trunk, size: 23766 [annotate] [blame] [check-ins using] [diff]

11:43
Make properties a requirement and clean up code

This increases the required GCC version from 4.0 to 4.6 (exception:
Apple GCC, which already supports this with >= 4.0 starting with OS X
10.5). Since even GCC 4.6 is really old by now, there is no point in
still supporting something even older and making the code ugly because
of that. While some hardware and OS support was dropped from GCC 4.6
compared to GCC 4.0, there is nothing in there that would be an
interesting target with the exception of BeOS maybe - but a port to BeOS
can also be achieved using the Haiku support. The other dropped OSes are
mostly old versions of OSes while newer ones are still being supported
(and those newer versions of those OSes still support the same
hardware). file: [6960976b0a] check-in: [48980f2297] user: js, branch: trunk, size: 23785 [annotate] [blame] [check-ins using] [diff]

2015-01-03
20:57
Update copyright file: [e5c84f2d31] check-in: [cfd374b906] user: js, branch: trunk, size: 23803 [annotate] [blame] [check-ins using] [diff]
2014-06-26
00:58
OFNumber: Remove methods for arithmetic

These methods encouraged doing arithmetic on objects rather than getting
the C type value, doing the arithmetic and creating a new object. They
didn't do anything else internally, and so doing this manually isn't
slower - it's even faster if you do multiple operations, as no temporary
objects are created then.

Another advantage of this is that there are no longer uncertainties
about types of different OFNumber objects when doing arithmetic, as the
user has to be explicit about the types when getting the C type value
and thus knows which types will be used for the arithmetic. file: [538455302e] check-in: [366681bebe] user: js, branch: trunk, size: 23797 [annotate] [blame] [check-ins using] [diff]

2014-06-25
16:08
OFNumber: OF_NUMBER_* -> OF_NUMBER_TYPE_* file: [57878896f8] check-in: [0de69c8952] user: js, branch: trunk, size: 37542 [annotate] [blame] [check-ins using] [diff]
2014-06-21
21:43
Move all macros from OFObject.h to macros.h

This means that OFObject.h imports macros.h now, making it unnecessary
to manually import macros.h in almost every file. And while at it, also
import autorelease.h in OFObject.h, so that this doesn't need to be
manually imported in almost every file as well. file: [f23f2bec10] check-in: [13ee56edf3] user: js, branch: trunk, size: 36376 [annotate] [blame] [check-ins using] [diff]

2014-02-28
00:41
Make MinGW32 and MinGW-w64 happy at the same time file: [27ec58b2db] check-in: [5ca844dd3b] user: js, branch: trunk, size: 36420 [annotate] [blame] [check-ins using] [diff]
2014-02-08
18:04
Add JSON5 output option file: [890ea8bb44] check-in: [e07fa89b44] user: js, branch: trunk, size: 36421 [annotate] [blame] [check-ins using] [diff]
09:26
Add -[JSONRepresentationWithOptions:]

This also adds OF_JSON_REPRESENTATION_PRETTY. file: [12ac22c22b] check-in: [eaa612ad50] user: js, branch: trunk, size: 36310 [annotate] [blame] [check-ins using] [diff]

2014-01-04
00:24
Update copyright. file: [0561641365] check-in: [3b97fc3cd9] user: js, branch: trunk, size: 35882 [annotate] [blame] [check-ins using] [diff]
2013-11-23
01:12
Add OF_INVALID_INIT_METHOD. file: [2dc38d355c] check-in: [35dafd5c57] user: js, branch: trunk, size: 35876 [annotate] [blame] [check-ins using] [diff]
2013-07-08
21:34
OFNumber: Correctly handle NAN. file: [ae2aab0b1f] check-in: [bc2f7c2124] user: js, branch: trunk, size: 35985 [annotate] [blame] [check-ins using] [diff]
2013-06-22
12:12
Rework exceptions.

This mostly removes the argument for the class in which the exception
occurred. As backtraces were recently added for all platforms, the
passed class does not give any extra information on where the exception
occurred anymore.

This also removes a few other arguments which were not too helpful. In
the past, the idea was to pass as many arguments as possible so that it
is easier to find the origin of the exception. However, as backtraces
are a much better way to find the origin, those are not useful anymore
and just make the exception more cumbersome to use. The rule is now to
only pass arguments that might help in recovering from the exception or
provide information that is otherwise not easily accessible. file: [779309786a] check-in: [3d16a30f41] user: js, branch: trunk, size: 35770 [annotate] [blame] [check-ins using] [diff]

2013-06-19
19:14
Implement the new MessagePack specification.

No support for extensions yet.

This obsoletes BinaryPack. file: [bc121f7ad1] check-in: [cba771824e] user: js, branch: trunk, size: 36336 [annotate] [blame] [check-ins using] [diff]

2013-03-04
17:20
Replace BOOL with bool.

The only places where BOOL is left are those where they are required by
the ABI. file: [c9cabca4f9] check-in: [c5ef582958] user: js, branch: trunk, size: 36335 [annotate] [blame] [check-ins using] [diff]

2013-02-26
18:40
OFNumber: Add long long. file: [c13a2ddb4a] check-in: [fd8c1728ea] user: js, branch: trunk, size: 37799 [annotate] [blame] [check-ins using] [diff]
2013-02-21
19:35
Add support for generating BinaryPack. file: [c8342b8a79] check-in: [23c798d4f1] user: js, branch: trunk, size: 35703 [annotate] [blame] [check-ins using] [diff]
2013-02-12
18:22
Prefix all ivars with an underscore. file: [df1e685381] check-in: [e40729d406] user: js, branch: trunk, size: 32119 [annotate] [blame] [check-ins using] [diff]
2013-02-05
22:24
Move abort() to make old GCCs happy. file: [ae195c0c97] check-in: [737a82e1a4] user: js, branch: trunk, size: 31885 [annotate] [blame] [check-ins using] [diff]
2013-01-28
21:12
JSON5: Update to new version of the spec.

This adds support for Infinity and leading + signs. file: [35e3a3658c] check-in: [f59977a0aa] user: js, branch: trunk, size: 31885 [annotate] [blame] [check-ins using] [diff]

2013-01-09
22:24
Update copyright. file: [35a9158982] check-in: [813c00ccf0] user: js, branch: trunk, size: 31720 [annotate] [blame] [check-ins using] [diff]
2012-12-22
15:37
Add -[doesNotRecognizeSelector:]. file: [ba1adda867] check-in: [917ce5754c] user: js, branch: trunk, size: 31714 [annotate] [blame] [check-ins using] [diff]
2012-12-06
00:14
Improve -[hash] of OFNumber and OFObject. file: [a189f6857c] check-in: [ac51f5f0cf] user: js, branch: trunk, size: 31713 [annotate] [blame] [check-ins using] [diff]
2012-10-13
21:06
of_bswap* -> OF_BSWAP*.

This makes it clear that multiple evaluation of parameters is possible. file: [2866f4968c] check-in: [1cb8fee5c3] user: js, branch: trunk, size: 31218 [annotate] [blame] [check-ins using] [diff]

2012-10-09
21:57
Remove wrong byte swaps. file: [c8526e23c4] check-in: [3f29426e99] user: js, branch: trunk, size: 31218 [annotate] [blame] [check-ins using] [diff]
15:07
Make use of instancetype. file: [8ca41e7471] check-in: [fb515e8e24] user: js, branch: trunk, size: 31308 [annotate] [blame] [check-ins using] [diff]
14:59
OFNumber: Make sure -[boolValue] is always a bool. file: [ff6f294978] check-in: [916ee17654] user: js, branch: trunk, size: 30944 [annotate] [blame] [check-ins using] [diff]
2012-09-20
00:05
Fix conflicting types. file: [13adfb2ee6] check-in: [6c16e03d93] user: js, branch: trunk, size: 29616 [annotate] [blame] [check-ins using] [diff]
2012-09-11
12:10
Add -[OFList removeAllObjects]. file: [5743167b4f] check-in: [2b5d03d8ea] user: js, branch: trunk, size: 29591 [annotate] [blame] [check-ins using] [diff]
2012-09-09
14:36
OFNumber: Implement OFComparing. file: [e4b0bb2ae2] check-in: [56df9c44de] user: js, branch: trunk, size: 29567 [annotate] [blame] [check-ins using] [diff]
14:14
Fix -[OFNumber isEqual:]. file: [494724f548] check-in: [b791e6fcc4] user: js, branch: trunk, size: 28547 [annotate] [blame] [check-ins using] [diff]
2012-08-10
20:08
Directly use the runtime's autorelease pools.

This greatly improves performance, as it gets rid of the overhead of
OFAutoreleasePool. file: [70f21d39ef] check-in: [1255f3a11a] user: js, branch: trunk, size: 29064 [annotate] [blame] [check-ins using] [diff]

2012-07-31
12:05
Slightly changed serialization format.

printf's %a was too fragile to serialize floats and doubles, as it was
behaving differently on different OSes and OS versions. Instead, a hex
representation of the float/double in big endian is used now. While this
is less readable, it is guaranteed to be accurate and always the same. file: [b7208d53f6] check-in: [a6ee2b2065] user: js, branch: trunk, size: 29087 [annotate] [blame] [check-ins using] [diff]

2012-07-12
01:28
Don't access isa directly. file: [b82d9f97c4] check-in: [8892ae9fcc] user: js, branch: trunk, size: 28702 [annotate] [blame] [check-ins using] [diff]
2012-06-11
11:08
Improve -[OFNumber description].

The %f conversion specifier does not include a decimal point if none is
required. In such cases, append ".0" to indicate that the number is of a
floating point type. file: [3bd254e0cf] check-in: [0db281bf03] user: js, branch: trunk, size: 28581 [annotate] [blame] [check-ins using] [diff]

2012-01-05
00:56
Update copyright. file: [f581497f4f] check-in: [ce70e17b38] user: js, branch: trunk, size: 28335 [annotate] [blame] [check-ins using] [diff]
2011-12-29
01:55
Fix -[OFNumber isEqual:] for booleans. file: [8d94506001] check-in: [f42b841347] user: js, branch: trunk, size: 28329 [annotate] [blame] [check-ins using] [diff]
2011-12-10
13:17
Add JSON encoding. file: [388be18efd] check-in: [243a96fc2d] user: js, branch: trunk, size: 28282 [annotate] [blame] [check-ins using] [diff]
2011-09-28
14:38
Various small bugfixes. file: [5cb0489783] check-in: [9e82f99f09] user: js, branch: trunk, size: 28142 [annotate] [blame] [check-ins using] [diff]
2011-09-22
23:25
Exceptions are now autoreleased.

This is safe as an "exception loop" can't happen, since if allocating
an exception fails, it throws an OFAllocFailedException which is
preallocated and can always be thrown.

So, the worst case would be that an autorelease of an exception fails,
triggering an OFOutOfMemoryException for which there is no memory,
resulting in an OFAllocFailedException to be thrown. file: [37c360709c] check-in: [e1e7ffa903] user: js, branch: trunk, size: 28115 [annotate] [blame] [check-ins using] [diff]

2011-09-17
18:58
Better format for serialization of floating point OFNumbers. file: [687e9eb918] check-in: [ef02147e8b] user: js, branch: trunk, size: 27967 [annotate] [blame] [check-ins using] [diff]
2011-09-09
13:35
[pool release] can never throw by convention now. file: [d6b1e87e08] check-in: [798d9e6320] user: js, branch: trunk, size: 28179 [annotate] [blame] [check-ins using] [diff]
2011-06-28
01:51
Change serialization format to be way more readable and shorter. file: [a3610e7d0e] check-in: [756bb26c98] user: js, branch: trunk, size: 28206 [annotate] [blame] [check-ins using] [diff]
2011-06-26
23:54
Add -[{decimal,hexadecimal,float,double}Value] to OFXMLAttribute. file: [a47eecf9ee] check-in: [0952a96827] user: js, branch: trunk, size: 28311 [annotate] [blame] [check-ins using] [diff]
2011-06-06
13:34
Fix float*/uint32_t* casts forgotten in the last commit. file: [b1a8643b2f] check-in: [b507c330f5] user: js, branch: trunk, size: 28339 [annotate] [blame] [check-ins using] [diff]
03:19
Always use unions to access a float as a uint32_t. file: [c6a0bb638e] check-in: [4b8e8836c8] user: js, branch: trunk, size: 28238 [annotate] [blame] [check-ins using] [diff]
2011-06-05
21:26
Serialize floats and doubles in a format that does not lose precision. file: [d98652159e] check-in: [ac2714dd86] user: js, branch: trunk, size: 28153 [annotate] [blame] [check-ins using] [diff]
19:27
Add OFNull class. file: [bbca96f8b9] check-in: [183825f113] user: js, branch: trunk, size: 27862 [annotate] [blame] [check-ins using] [diff]
18:13
Always hash floats and doubles in big endian. file: [6768b46f61] check-in: [4560e88c45] user: js, branch: trunk, size: 27861 [annotate] [blame] [check-ins using] [diff]
2011-06-04
18:01
Use %g instead of %f in -[OFNumber description]. file: [e2396474e9] check-in: [0ed2ea0df3] user: js, branch: trunk, size: 27799 [annotate] [blame] [check-ins using] [diff]
2011-06-03
15:14
Add deserialization. file: [d234546f66] check-in: [dca3061dfc] user: js, branch: trunk, size: 27799 [annotate] [blame] [check-ins using] [diff]
2011-05-14
12:26
Use XML for serialization.

This way, we don't need a new parser and don't use a new format. file: [01b0cb5868] check-in: [494dca4ae4] user: js, branch: trunk, size: 26127 [annotate] [blame] [check-ins using] [diff]

2011-05-08
19:55
Add support for serialization.
No deserialization yet.
file: [2324ed47e6] check-in: [b27b3aa3e3] user: js, branch: trunk, size: 27399 [annotate] [blame] [check-ins using] [diff]
18:32
OFNumber: Explicitly use signed and improve documentation. file: [1e1dcdb84b] check-in: [eb2402a77a] user: js, branch: trunk, size: 24589 [annotate] [blame] [check-ins using] [diff]
2011-04-22
22:46
More style improvements. file: [a59a183f51] check-in: [c9c78d86d3] user: js, branch: trunk, size: 24375 [annotate] [blame] [check-ins using] [diff]
2011-04-11
00:37
A few readability improvements. file: [eac6181c63] check-in: [e52ccc8d45] user: js, branch: trunk, size: 24375 [annotate] [blame] [check-ins using] [diff]
2011-03-24
19:42
Get rid of OFExceptions.h. file: [35729e2024] check-in: [cda44767f4] user: js, branch: trunk, size: 24426 [annotate] [blame] [check-ins using] [diff]
2011-01-15
18:17
Define enums as types. file: [8d4f8ec1f8] check-in: [b5ec30fa9d] user: js, branch: trunk, size: 24446 [annotate] [blame] [check-ins using] [diff]
2011-01-01
20:19
Change license. file: [9b41925c57] check-in: [da6b3d26cb] user: js, branch: trunk, size: 24449 [annotate] [blame] [check-ins using] [diff]
2010-12-06
13:24
Add -[description] to OFNumber. file: [e3d984f0cd] check-in: [b965dad5f8] user: js, branch: trunk, size: 24193 [annotate] [blame] [check-ins using] [diff]
2010-11-13
16:15
Add support for BOOL to OFNumber. file: [f20700cf69] check-in: [0ec87765f4] user: js, branch: trunk, size: 23060 [annotate] [blame] [check-ins using] [diff]
2010-10-19
19:38
Fix method signature being different in .h and .m file. file: [7d94808be1] check-in: [198e343d1f] user: js, branch: trunk, size: 22452 [annotate] [blame] [check-ins using] [diff]
2010-06-13
03:23
Add OFSocketObserver. file: [892bfa3920] check-in: [7390eb7270] user: js, branch: trunk, size: 22459 [annotate] [blame] [check-ins using] [diff]
2010-05-13
17:11
Add -[remainderOfDivisionWithNumber:] to OFNumber. file: [8047d2e395] check-in: [8fd09d2c59] user: js, branch: trunk, size: 22424 [annotate] [blame] [check-ins using] [diff]
2010-04-30
13:07
OFNumber API improvement. file: [5fe5542cc8] check-in: [e4344e3c5e] user: js, branch: trunk, size: 19721 [annotate] [blame] [check-ins using] [diff]
2010-04-23
12:34
Nicer API for OFNumber. file: [818b4fcf27] check-in: [03be48c518] user: js, branch: trunk, size: 19649 [annotate] [blame] [check-ins using] [diff]
2010-04-17
16:09
Give the methods in OFNumber better names. file: [1d85baa4c6] check-in: [2517f18272] user: js, branch: trunk, size: 19159 [annotate] [blame] [check-ins using] [diff]
15:46
Don't return self where not necessary, return void or something useful. file: [1856417314] check-in: [062a052b50] user: js, branch: trunk, size: 19037 [annotate] [blame] [check-ins using] [diff]
2010-03-15
01:38
Add uintptr_t to OFNumber. file: [c9d9078686] check-in: [3e2aa4cf61] user: js, branch: trunk, size: 18916 [annotate] [blame] [check-ins using] [diff]
2010-03-14
12:20
Remove 8782d412a4a6 from 0.2 branch as it would break the 0.2 API. file: [109bd47316] check-in: [d7233b1b30] user: js, branch: 0.2, size: 14376 [annotate] [blame] [check-ins using] [diff]
2010-03-13
22:27
Add -[{and,or,xor,shiftLeft,shiftRight}:] to OFNumber. file: [ff05eb19c1] check-in: [a57d46cb3b] user: js, branch: trunk, size: 18213 [annotate] [blame] [check-ins using] [diff]
2010-03-05
11:52
Merge a few changesets from the default branch into the 0.2 branch.

Changesets:
* b95fcaa6d694
* 804c68d222b4
* da8cd738da3d
* 1109d5ce3419
* d03f5c1ca95d
* 2a7017722165
* 4fccdc79eeb7
* d228149fbc04
* 8782d412a4a6 file: [ffc72bea33] check-in: [b91a8283fe] user: js, branch: 0.2, size: 15277 [annotate] [blame] [check-ins using] [diff]

03:21
Let operations on OFNumbers return a new one. file: [6467769256] check-in: [5e65237276] user: js, branch: trunk, size: 15275 [annotate] [blame] [check-ins using] [diff]
00:04
Improve -[hash] for OFNumbers with floats and doubles. file: [7ea4c5f34b] check-in: [5265f8d08b] user: js, branch: trunk, size: 14374 [annotate] [blame] [check-ins using] [diff]
2010-02-19
16:36
Update copyright. file: [b830cfbb1d] check-in: [42886185fd] user: js, branch: trunk, size: 13945 [annotate] [blame] [check-ins using] [diff]
2010-02-13
14:07
Fix a bug in all OFNumber operations using CALCULATE2. file: [de1f0fba0f] check-in: [d68c28b9de] user: js, branch: trunk, size: 13945 [annotate] [blame] [check-ins using] [diff]
2009-12-06
00:27
Remove two method implementations not used anymore. file: [7dc3a8f62d] check-in: [a0a5ecf01f] user: js, branch: trunk, size: 13949 [annotate] [blame] [check-ins using] [diff]
2009-12-02
20:02
Introduce some consistency when to use OFObject* and when to use id. file: [3600c71552] check-in: [c7ab3a46d1] user: js, branch: trunk, size: 14006 [annotate] [blame] [check-ins using] [diff]
2009-11-09
22:45
Rename libobjfw to ObjFW. file: [d440c31735] check-in: [a3cc34b139] user: js, branch: trunk, size: 13948 [annotate] [blame] [check-ins using] [diff]
2009-07-19
16:01
Prevent calling -[init] if parameters are required. file: [1760655c76] check-in: [42e16978dc] user: js, branch: trunk, size: 13951 [annotate] [blame] [check-ins using] [diff]
14:05
Rename andFoo: to foo: in all methods. file: [d35a23e51f] check-in: [4eae61a78f] user: js, branch: trunk, size: 13858 [annotate] [blame] [check-ins using] [diff]
2009-06-30
12:07
A few renames in OFObject, see details.

* +[conformsTo:] to +[conformsToProtocol:].
* -[isKindOf:] to -[isKindOfClass:].
* -[respondsTo:] to -[respondsToSelector:].
* -[conformsTo:] to -[conformsToProtocol:].
* -[methodFor:] to -[methodForSelector:]. file: [6fac52d2f8] check-in: [67bb344ba6] user: js, branch: trunk, size: 13858 [annotate] [blame] [check-ins using] [diff]

2009-05-29
09:28
Always use [self alloc]. file: [886273d0e1] check-in: [282aadb9df] user: js, branch: trunk, size: 13853 [annotate] [blame] [check-ins using] [diff]
2009-05-24
18:04
Always use #include "config.h" instead of #import "config.h". file: [0c2ce3eafa] check-in: [94ea6848a8] user: js, branch: trunk, size: 13949 [annotate] [blame] [check-ins using] [diff]
2009-04-22
22:43
gcc seems to accept a @throw instead of a return as well. file: [d4f0e2b26d] check-in: [8dbc052d49] user: js, branch: trunk, size: 13948 [annotate] [blame] [check-ins using] [diff]
2009-04-21
17:28
Add missing breaks in OFNumber. file: [d73afc0a37] check-in: [06c07468fb] user: js, branch: trunk, size: 14019 [annotate] [blame] [check-ins using] [diff]
17:16
The if ((self = [super init])) construct isn't needed anymore. file: [fe660d1678] check-in: [d87df02e8b] user: js, branch: trunk, size: 13247 [annotate] [blame] [check-ins using] [diff]
2009-04-19
23:19
More methods for OFNumber. file: [7eb8ab4a41] check-in: [1898ec5a4b] user: js, branch: trunk, size: 13535 [annotate] [blame] [check-ins using] [diff]
23:17
Remove long double from OFNumber as there's no type encoding for it. file: [1e5b23cc34] check-in: [8eb830d7c8] user: js, branch: trunk, size: 9967 [annotate] [blame] [check-ins using] [diff]
20:34
Use isa instead of [self class].

Since we don't use Object anymore and define isa in OFObject, we can
rely on it. file: [8e480899d7] check-in: [139591afe1] user: js, branch: trunk, size: 10364 [annotate] [blame] [check-ins using] [diff]

2009-04-17
16:45
Add - hash for OFNumber. file: [b19ce3cb16] check-in: [cd9bd80792] user: js, branch: trunk, size: 10740 [annotate] [blame] [check-ins using] [diff]
2009-03-15
16:54
Fix missing #import "config.h". file: [0f95863ba4] check-in: [c9b6747306] user: js, branch: trunk, size: 10693 [annotate] [blame] [check-ins using] [diff]
2009-02-15
16:40
Get rid of OFComparable and make it part of OFObject. file: [9764239f2d] check-in: [d9308adc2b] user: js, branch: trunk, size: 10673 [annotate] [blame] [check-ins using] [diff]
2009-02-14
20:15
Add intmax_t and uintmax_t to OFNumber. file: [5e2a173a69] check-in: [db131a629c] user: js, branch: trunk, size: 9699 [annotate] [blame] [check-ins using] [diff]
2009-01-24
20:28
[self alloc] isn't a good idea with the new API.
The reason is that a derived class, for example derived from OFArray,
would not return an OFArray when + arrayWithItemSize is called.
file: [5618431ef2] check-in: [7feac9e596] user: js, branch: trunk, size: 8947 [annotate] [blame] [check-ins using] [diff]
15:24
Adjust API to introduction of OFAutoreleasePool. file: [714973113c] check-in: [1496808b81] user: js, branch: trunk, size: 8855 [annotate] [blame] [check-ins using] [diff]
2009-01-05
00:59
Update copyright. file: [76fb7ad662] check-in: [f1b749d113] user: js, branch: trunk, size: 8464 [annotate] [blame] [check-ins using] [diff]
2009-01-04
01:40
Clean up exceptions. file: [03cd55c54a] check-in: [bb1fe89478] user: js, branch: trunk, size: 8457 [annotate] [blame] [check-ins using] [diff]
2008-12-30
14:42
Added: Add OFNumber. file: [f0e9fb484c] check-in: [555f28985f] user: js, branch: trunk, size: 8138 [annotate] [blame] [check-ins using]