Commit graph

7164 commits

Author SHA1 Message Date
Richard Frith-MacDonald
af09204ffb typdef for refcount when no atimics available
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40225 72102866-910b-0410-8b05-ffd578937521
2016-11-18 06:49:16 +00:00
Richard Frith-MacDonald
07e0609e42 Additions ot last change
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40209 72102866-910b-0410-8b05-ffd578937521
2016-11-10 11:31:33 +00:00
Richard Frith-MacDonald
f5b4336181 Fix for error decoding archives made on machine with different word size
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40208 72102866-910b-0410-8b05-ffd578937521
2016-11-10 10:23:14 +00:00
Richard Frith-MacDonald
e0267770ef fix crash and other memory management tweaks
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40196 72102866-910b-0410-8b05-ffd578937521
2016-11-08 10:21:00 +00:00
Richard Frith-MacDonald
5c3acb5693 Fail quietly when asked to read non-existent file
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40188 72102866-910b-0410-8b05-ffd578937521
2016-11-01 21:02:31 +00:00
Niels Grewe
fe155240e7 Re-enable fast-ARC mode when possible.
Define _ARCCompliantRetainRelease on 32bit platforms and when
we have copmiler intrinsics for atomic operations that allow us
to extend the refcount field to match libobjc2.

The effective maximum reference count is still 2^24 - 1 in either
case.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40183 72102866-910b-0410-8b05-ffd578937521
2016-10-28 08:30:16 +00:00
Wolfgang Lux
4cdf4004e8 Don't tell a lie. The retain count representation of gnustep-base and
libobjc2 differs, so we cannot use the ARC retain/release implementation
for now.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40181 72102866-910b-0410-8b05-ffd578937521
2016-10-27 15:00:17 +00:00
Richard Frith-MacDonald
1ab80b3f58 Fixes for problems spotted by Wolfgang
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40171 72102866-910b-0410-8b05-ffd578937521
2016-10-24 10:22:43 +00:00
Richard Frith-MacDonald
3d9ffaf168 Misc tidyuups
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40165 72102866-910b-0410-8b05-ffd578937521
2016-10-21 15:32:31 +00:00
Richard Frith-MacDonald
57c16fcd8a Fix a few places to use NSUInteger
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40153 72102866-910b-0410-8b05-ffd578937521
2016-10-18 08:45:26 +00:00
Richard Frith-MacDonald
6b68c9a1ca gnutls memory management fixup
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40148 72102866-910b-0410-8b05-ffd578937521
2016-10-14 07:57:57 +00:00
Niels Grewe
6509aeb2de Fix handling of incorrect replacement patterns.
The error code from trying to apply a replacement pattern was not checked,
resulting in a crash inside libicu. This also fixes a few memory leaks
(replacement string objects not correctly autoreleased before returning them
 to the caller).


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40142 72102866-910b-0410-8b05-ffd578937521
2016-10-12 13:43:32 +00:00
Niels Grewe
f9540e172e Improve support for loading encrypted private keys
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40139 72102866-910b-0410-8b05-ffd578937521
2016-10-11 11:59:04 +00:00
Richard Frith-MacDonald
28de617ef6 Check for file modification during copy
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40137 72102866-910b-0410-8b05-ffd578937521
2016-10-08 07:02:06 +00:00
Richard Frith-MacDonald
0fe344d12a Partial fix/update for noncharacter codepoints,
also check for task exit more consistently


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40125 72102866-910b-0410-8b05-ffd578937521
2016-10-05 17:44:00 +00:00
Niels Grewe
b1c979898d Fix detection of the charset in XML data
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40090 72102866-910b-0410-8b05-ffd578937521
2016-09-19 15:56:51 +00:00
Wolfgang Lux
ef5fd8a497 Add missing checks to avoid calling caseInsensitiveCompare: with nil
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40086 72102866-910b-0410-8b05-ffd578937521
2016-09-16 12:28:05 +00:00
Niels Grewe
e6cef4a7f9 Fix a problem removing certificate data mapped to file names.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40085 72102866-910b-0410-8b05-ffd578937521
2016-09-16 07:56:48 +00:00
Richard Frith-MacDonald
85b02833b1 scanHexLongLong inspider by Abbas Raza
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40070 72102866-910b-0410-8b05-ffd578937521
2016-09-06 07:57:17 +00:00
Richard Frith-MacDonald
4a3058fd5b omit some diagnostic on older versions
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40069 72102866-910b-0410-8b05-ffd578937521
2016-09-05 09:57:02 +00:00
Richard Frith-MacDonald
efdf2a674f improve certificate debug output
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40068 72102866-910b-0410-8b05-ffd578937521
2016-09-02 08:56:09 +00:00
Richard Frith-MacDonald
e5f00ce4cc Add diagnostic code
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40067 72102866-910b-0410-8b05-ffd578937521
2016-09-02 07:59:08 +00:00
Richard Frith-MacDonald
08f141ad80 patch by <abbas.raza.1707@gmail.com>
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40066 72102866-910b-0410-8b05-ffd578937521
2016-08-30 13:20:34 +00:00
Richard Frith-MacDonald
ead1505a3c Fix typo causing preamature termination of long headers
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40065 72102866-910b-0410-8b05-ffd578937521
2016-08-28 09:53:38 +00:00
Niels Grewe
1c5b12c8fe Fix bug #48882
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40063 72102866-910b-0410-8b05-ffd578937521
2016-08-24 13:05:43 +00:00
Richard Frith-MacDonald
33ed35331b Various configure/build tweaks
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40062 72102866-910b-0410-8b05-ffd578937521
2016-08-19 12:20:24 +00:00
Richard Frith-MacDonald
116e5f8211 add some more debug
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40058 72102866-910b-0410-8b05-ffd578937521
2016-08-10 13:44:13 +00:00
Richard Frith-MacDonald
a6bce78c64 First attempt at GSMimeSerializer for more controlled serialisation of
documents so we can choose between a form suitable for old SMTP MTAs, or
for modern binary-safe transports.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40049 72102866-910b-0410-8b05-ffd578937521
2016-08-03 09:24:53 +00:00
Richard Frith-MacDonald
06669a434a add --GNU-Debug=RMC to log remote method call handling
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40046 72102866-910b-0410-8b05-ffd578937521
2016-08-01 11:10:38 +00:00
Richard Frith-MacDonald
945ca4abfb use fairStart to get a fairer distribution of I/O across multiple handles
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40045 72102866-910b-0410-8b05-ffd578937521
2016-08-01 07:40:36 +00:00
Richard Frith-MacDonald
6f890a5095 added diagnostics
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40043 72102866-910b-0410-8b05-ffd578937521
2016-07-29 13:48:00 +00:00
Richard Frith-MacDonald
32eff75b6a fix stupid typo
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40042 72102866-910b-0410-8b05-ffd578937521
2016-07-28 10:25:18 +00:00
Richard Frith-MacDonald
de3e9739ab A case insensitive compare with self is always NSOrderedSame
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40041 72102866-910b-0410-8b05-ffd578937521
2016-07-28 05:21:01 +00:00
Niels Grewe
3e654a6b09 Fix warnings for compilers without blocks support.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40039 72102866-910b-0410-8b05-ffd578937521
2016-07-27 12:39:59 +00:00
Niels Grewe
2e18a14485 Avoid reallocating objects post-hoc based on the initializer used.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40038 72102866-910b-0410-8b05-ffd578937521
2016-07-27 07:02:42 +00:00
Niels Grewe
1b82abd967 Don't leak the deallocator block
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40037 72102866-910b-0410-8b05-ffd578937521
2016-07-26 23:52:53 +00:00
Niels Grewe
ad428b99d5 Fix -getObjects:andKeys:
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40036 72102866-910b-0410-8b05-ffd578937521
2016-07-26 23:24:56 +00:00
Niels Grewe
c2be055c3e Add [NSData initWithBytesNoCopy:length:deallocator:]
This new initializer allows customising the deallocation behaviour
through user-supplied blocks. 


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40035 72102866-910b-0410-8b05-ffd578937521
2016-07-26 23:01:11 +00:00
Richard Frith-MacDonald
525d467e18 Fixups for file descriptor leak
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40034 72102866-910b-0410-8b05-ffd578937521
2016-07-26 09:56:22 +00:00
Richard Frith-MacDonald
205f26ec86 Thread deadlock fixup
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40033 72102866-910b-0410-8b05-ffd578937521
2016-07-26 08:20:09 +00:00
Richard Frith-MacDonald
eb497bf67e tweak
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40013 72102866-910b-0410-8b05-ffd578937521
2016-07-19 12:23:40 +00:00
Richard Frith-MacDonald
27899e4d66 patch by Larry Campbell plus removal of some garbage collection vestiges
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40008 72102866-910b-0410-8b05-ffd578937521
2016-07-18 10:50:28 +00:00
Richard Frith-MacDonald
9188a050ef fix for bug #47926
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40007 72102866-910b-0410-8b05-ffd578937521
2016-07-18 09:51:35 +00:00
Richard Frith-MacDonald
9f0d813aef remove unused ivar
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40001 72102866-910b-0410-8b05-ffd578937521
2016-07-16 08:27:21 +00:00
Richard Frith-MacDonald
f8f4bb51e3 fix bad return value when polling for windows messages
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40000 72102866-910b-0410-8b05-ffd578937521
2016-07-16 08:25:24 +00:00
Richard Frith-MacDonald
39cc09e2ca Sort algorithms should always be built, and be selectable at runtime
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39998 72102866-910b-0410-8b05-ffd578937521
2016-07-15 11:30:07 +00:00
Richard Frith-MacDonald
f56e1bdd0c tidy
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39997 72102866-910b-0410-8b05-ffd578937521
2016-07-15 10:07:50 +00:00
Richard Frith-MacDonald
25df4a6efb fix logic error in case where we have a nil date supplied
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39996 72102866-910b-0410-8b05-ffd578937521
2016-07-13 10:51:29 +00:00
Richard Frith-MacDonald
4f05189210 More OSX compatibility changes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39995 72102866-910b-0410-8b05-ffd578937521
2016-07-13 08:58:23 +00:00
Niels Grewe
c9e0bddfd3 Fixup breakage introduced by r39762 and r39764, which apparently were never attempted to compile
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39990 72102866-910b-0410-8b05-ffd578937521
2016-07-12 21:41:27 +00:00