ObjFW  History of src/exceptions/common.h of 6f0ef1c5e1690ce6

History of file src/exceptions/common.h at check-in 6f0ef1c5e1690ce6

2015-02-16
08:39
Deleted: Explicitly pass errno to exceptions

The old behaviour where the exception would access errno directly on
creation of the exception was very fragile. The two main problems with
it were that sometimes it would pick up an errno even though none had
been set and in other cases that when the exception was created errno
had already been overridden.

This also greatly increases errno handling on Win32, especially in
conjunction with sockets. It can still be improved further, though. check-in: [62e2de30b9] user: js, branch: trunk, size: 0

2015-01-03
20:57
Update copyright file: [83d14795d1] check-in: [cfd374b906] user: js, branch: trunk, size: 1513 [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: [9631779c5c] check-in: [13ee56edf3] user: js, branch: trunk, size: 1507 [annotate] [blame] [check-ins using] [diff]

2014-04-26
01:04
Improve description for I/O related exceptions file: [b75cd971df] check-in: [e05bd4856e] user: js, branch: trunk, size: 1527 [annotate] [blame] [check-ins using] [diff]
2014-03-05
00:00
Include socket.h before socket_helpers.h file: [173fdc42a2] check-in: [f96fd9d551] user: js, branch: trunk, size: 1530 [annotate] [blame] [check-ins using] [diff]
2014-03-04
23:53
resolver.m: Fix locking

A lock for thread-unsafe getaddrinfo was missing and not all locks were
unlocked / all buffers free'd if an error occurred. file: [fcb5839156] check-in: [898f8c7072] user: js, branch: trunk, size: 1509 [annotate] [blame] [check-ins using] [diff]

2014-02-13
23:26
Use -std=c11 instead of -std=gnu11

Not using -std=gnu11 means _GNU_SOURCE does not get defined anymore,
therefore this commit also adds the required feature defines for glibc.

Additionally, this adds of_strdup in macros.h, as strdup is an
extension. file: [8eded04c5d] check-in: [2f5af58573] user: js, branch: trunk, size: 1531 [annotate] [blame] [check-ins using] [diff]

2014-01-04
00:24
Update copyright. file: [b809e736ac] check-in: [3b97fc3cd9] user: js, branch: trunk, size: 1519 [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: [adaa2c4822] check-in: [3d16a30f41] user: js, branch: trunk, size: 1513 [annotate] [blame] [check-ins using] [diff]

2013-05-22
18:42
Check for more socket-related headers / functions. file: [082aeff5c0] check-in: [896084c340] user: js, branch: trunk, size: 1511 [annotate] [blame] [check-ins using] [diff]
2013-04-26
19:42
Make it possible to disable sockets. file: [19aae6e6f7] check-in: [590c377d8a] user: js, branch: trunk, size: 1500 [annotate] [blame] [check-ins using] [diff]
2013-02-12
18:22
Prefix all ivars with an underscore. file: [258ae8e83b] check-in: [e40729d406] user: js, branch: trunk, size: 1364 [annotate] [blame] [check-ins using] [diff]
2013-01-09
22:24
Update copyright. file: [9a8f628a9b] check-in: [813c00ccf0] user: js, branch: trunk, size: 1356 [annotate] [blame] [check-ins using] [diff]
2012-10-03
15:41
Move definition of restricted to OFObject.h. file: [694e7d8b34] check-in: [7239333455] user: js, branch: trunk, size: 1350 [annotate] [blame] [check-ins using] [diff]
2012-01-05
00:56
Update copyright. file: [0e109eabd1] check-in: [ce70e17b38] user: js, branch: trunk, size: 1330 [annotate] [blame] [check-ins using] [diff]
2011-07-24
20:05
Add a few defines for runtime methods so they always have the same name. file: [20a947a4f0] check-in: [c7bc7b93d9] user: js, branch: trunk, size: 1324 [annotate] [blame] [check-ins using] [diff]
2011-03-29
23:32
Fix missing include in exceptions/common.h. file: [1a81af8861] check-in: [48c67b1444] user: js, branch: trunk, size: 1516 [annotate] [blame] [check-ins using] [diff]
2011-03-24
16:09
Added: Split OFExceptions.{h,m} into one file per exception. file: [4c4f654284] check-in: [e1eea29286] user: js, branch: trunk, size: 1429 [annotate] [blame] [check-ins using]