Richard Frith-MacDonald
d5e55c0470
minor property list generation improvement
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39595 72102866-910b-0410-8b05-ffd578937521
2016-03-23 10:47:24 +00:00
Richard Frith-MacDonald
a0c97c1ddd
deprecate confusing extension in favour of simpler ARC-complient method
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39520 72102866-910b-0410-8b05-ffd578937521
2016-03-10 16:50:41 +00:00
Richard Frith-MacDonald
09f15d2b8d
Use defaults cleanups
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39373 72102866-910b-0410-8b05-ffd578937521
2016-02-15 10:10:39 +00:00
Fred Kiefer
7cef72282c
* Source/NSPropertyList.m (GSBinaryPLGenerator-storeCount:): Use
...
0x12 instead of 0x13 for integer count.
* Source/NSPropertyList.m (GSBinaryPLParser-readCountAt:):
* Handle
0x12 correctly. Use same code for 0x13 to read old incorrect
written data.
Based on change by Josh Freeman <pikopixel@twilightedge.com>
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39025 72102866-910b-0410-8b05-ffd578937521
2015-10-03 19:50:03 +00:00
Niels Grewe
bf6898262b
Fix a bug writing base64 data to a plist
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38973 72102866-910b-0410-8b05-ffd578937521
2015-09-08 07:13:54 +00:00
Richard Frith-MacDonald
3bbe9ff957
more tweaks ... move base64 encoding to shared private function
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38954 72102866-910b-0410-8b05-ffd578937521
2015-08-30 09:23:27 +00:00
Richard Frith-MacDonald
9aa5d4cd04
Use base64 in gnustep property lists
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38953 72102866-910b-0410-8b05-ffd578937521
2015-08-30 07:28:26 +00:00
Richard Frith-MacDonald
3f2fa9ddfe
gnustep ptext property list format improvements.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38952 72102866-910b-0410-8b05-ffd578937521
2015-08-30 06:59:34 +00:00
Niels Grewe
36c62c850c
Safety fix for parsing binary property lists
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38859 72102866-910b-0410-8b05-ffd578937521
2015-08-07 15:06:38 +00:00
Richard Frith-MacDonald
796c806c8e
Use up to date DTD
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38789 72102866-910b-0410-8b05-ffd578937521
2015-07-14 17:04:45 +00:00
Richard Frith-MacDonald
cf6cacf452
comment out debug logging line
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37212 72102866-910b-0410-8b05-ffd578937521
2013-10-09 17:24:12 +00:00
Richard Frith-MacDonald
ed09c55959
leak detection improvements
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37003 72102866-910b-0410-8b05-ffd578937521
2013-08-22 15:44:54 +00:00
Richard Frith-MacDonald
a18df9e51c
revert
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36899 72102866-910b-0410-8b05-ffd578937521
2013-07-16 19:55:14 +00:00
Richard Frith-MacDonald
667ca3b715
fix mutability errors and tiny leak
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36895 72102866-910b-0410-8b05-ffd578937521
2013-07-16 10:03:40 +00:00
Richard Frith-MacDonald
f7182588d0
more static analyser fixups
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36843 72102866-910b-0410-8b05-ffd578937521
2013-07-06 07:14:45 +00:00
Richard Frith-MacDonald
360e1f6ec6
some small fixups
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36616 72102866-910b-0410-8b05-ffd578937521
2013-05-13 07:09:41 +00:00
David Chisnall
8c44178520
Change the type of a buffer to reflect its use and silence an alignment
...
warning.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36602 72102866-910b-0410-8b05-ffd578937521
2013-05-08 10:44:01 +00:00
Richard Frith-MacDonald
82c51f73a4
Fix for bug #38017
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36007 72102866-910b-0410-8b05-ffd578937521
2013-01-21 10:15:17 +00:00
Richard Frith-MacDonald
66364a9465
avoid a few compiler warnings
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35867 72102866-910b-0410-8b05-ffd578937521
2012-12-08 22:16:20 +00:00
Richard Frith-MacDonald
f0fa7fbe28
TLS/SSL session credentials caching
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35860 72102866-910b-0410-8b05-ffd578937521
2012-12-06 09:40:11 +00:00
Richard Frith-MacDonald
e02ff90f23
make code more robust when there's no autorelease pool.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35706 72102866-910b-0410-8b05-ffd578937521
2012-10-17 13:47:11 +00:00
Eric Wasylishen
8b7f4c85c6
* Source/NSPropertyList.m (-[GSBinaryPLGenerator storeString:):
...
Write unicode strings in big-endian instead of little-endian.
The resulting plists now load properly on OS X. Thanks to
rdemet for bug report.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35697 72102866-910b-0410-8b05-ffd578937521
2012-10-16 02:55:13 +00:00
Richard Frith-MacDonald
d2972dd399
improve serialisation of booleans
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35557 72102866-910b-0410-8b05-ffd578937521
2012-09-10 10:27:59 +00:00
Wolfgang Lux
4e8258b232
Add missing variable declaration on big-endian systems.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35543 72102866-910b-0410-8b05-ffd578937521
2012-09-09 10:04:22 +00:00
Richard Frith-MacDonald
e798592eb8
forgot about turning off whitespace in plist element
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35534 72102866-910b-0410-8b05-ffd578937521
2012-09-06 15:06:12 +00:00
Richard Frith-MacDonald
e46b8d3567
tweak xml parsing to not ignore white space
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35533 72102866-910b-0410-8b05-ffd578937521
2012-09-06 12:58:25 +00:00
Richard Frith-MacDonald
0be505308d
simplification, including use of strtoull() everywhere
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35503 72102866-910b-0410-8b05-ffd578937521
2012-09-03 13:36:45 +00:00
Richard Frith-MacDonald
94add60875
property list deserialisation tweaks
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35395 72102866-910b-0410-8b05-ffd578937521
2012-08-10 19:09:44 +00:00
Richard Frith-MacDonald
897390797f
preparation for osx compatibility fix
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35390 72102866-910b-0410-8b05-ffd578937521
2012-08-10 08:36:09 +00:00
Richard Frith-MacDonald
cbbdf7a3df
fix bogus NSError generation when deserialising some property lists
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35382 72102866-910b-0410-8b05-ffd578937521
2012-08-09 12:58:01 +00:00
Richard Frith-MacDonald
7bef14a326
check for nil argument and raise as per apple documentation
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35193 72102866-910b-0410-8b05-ffd578937521
2012-06-12 05:39:31 +00:00
Richard Frith-MacDonald
3569303331
documentation cleanups
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34015 72102866-910b-0410-8b05-ffd578937521
2011-10-17 10:59:02 +00:00
Fred Kiefer
41298e5ec4
* Source/NSPropertyList.m (GSBinaryPLParser -objectAtIndex:):
...
Use long long for all integer types. Before we used signed types
which resulted wrong values for negative integers.
* Source/NSKeyedUnarchiver.m (-_decodeObject:): Handle the
string "$null" as nil all the times.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33934 72102866-910b-0410-8b05-ffd578937521
2011-10-03 19:48:30 +00:00
David Chisnall
d2ea054c26
Lots of little fixes to make -base compile with -Werror (now builds without warnings).
...
Richard: I'm unsure about three of these, which were fixes in memset() calls in:
- NSConcreteMapTable.m
- NSConcreteHashTable.m
- Additions/NSData+GNUstepBase.m
Please can you check them? I think they are intended to zero the entire object
(rather than the first word), but the lack of comments makes me unsure.
Most changes were just tweaks to variable types. I've also removed some dead code from NSInvocation. This was small group of things that were marked for internal use only, but not actually referenced in the code anywhere.
Other improvements:
- NSArray / NSDictionary fixed up to use the 10.7 (ARC-friendly) prototypes.
- getObjects:andKeys: implemented for NSDictionary (10.5 method)
- NSPointerArray and NSHashTable now properly support weak objects.
- Tests for weak objects in collections.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33621 72102866-910b-0410-8b05-ffd578937521
2011-07-24 13:09:22 +00:00
Richard Frith-MacDonald
9810a1ec9c
a few more static analyser tweaks
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32517 72102866-910b-0410-8b05-ffd578937521
2011-03-09 12:40:50 +00:00
Richard Frith-MacDonald
d18e29dde8
avoid compiler warnings
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32417 72102866-910b-0410-8b05-ffd578937521
2011-02-28 19:49:57 +00:00
Richard Frith-MacDonald
e06991ba39
Added patch by Jens Ayton to support parsing 64bit integers in XML plists.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32191 72102866-910b-0410-8b05-ffd578937521
2011-02-16 08:44:04 +00:00
Richard Frith-MacDonald
d3f23b5057
Recommit NSUnarchiver.m (now tested), revert recently broken NSPropertyList.m to working version again.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32081 72102866-910b-0410-8b05-ffd578937521
2011-02-11 15:43:43 +00:00
David Chisnall
511ac3219d
Ensure that an IMP in NSPropertyList is always initialised before it's called.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32079 72102866-910b-0410-8b05-ffd578937521
2011-02-11 15:12:13 +00:00
Richard Frith-MacDonald
51cf9b9cf9
Reapply some changes with modifications
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32074 72102866-910b-0410-8b05-ffd578937521
2011-02-11 14:07:49 +00:00
Richard Frith-MacDonald
336c7bf021
Revert back to working code!
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32072 72102866-910b-0410-8b05-ffd578937521
2011-02-11 13:53:54 +00:00
David Chisnall
ef600d4917
Make NSPropertyList.m use the temporary buffer macros, instead of reimplementing them.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32062 72102866-910b-0410-8b05-ffd578937521
2011-02-11 12:21:09 +00:00
Richard Frith-MacDonald
7deeb174a4
revert
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32047 72102866-910b-0410-8b05-ffd578937521
2011-02-11 07:22:23 +00:00
Richard Frith-MacDonald
bc34d0505f
Minor cleanups.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32031 72102866-910b-0410-8b05-ffd578937521
2011-02-10 10:52:54 +00:00
Richard Frith-MacDonald
8574a1d8de
apply patch to fix leaks.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31997 72102866-910b-0410-8b05-ffd578937521
2011-02-03 21:21:45 +00:00
Richard Frith-MacDonald
882abe8e74
Fix error handling whitespace in xml
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31910 72102866-910b-0410-8b05-ffd578937521
2011-01-19 09:21:23 +00:00
Richard Frith-MacDonald
73f29ccde0
OSX compatibility improvements
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31909 72102866-910b-0410-8b05-ffd578937521
2011-01-18 12:07:21 +00:00
Fred Kiefer
850c2fb314
Add a few OSX 10.6 methods for NSPropertyList.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31692 72102866-910b-0410-8b05-ffd578937521
2010-11-29 22:54:28 +00:00
Richard Frith-MacDonald
e4ef659b97
serialisation bugfix and correction to nil handling when making localisation.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31581 72102866-910b-0410-8b05-ffd578937521
2010-11-02 11:01:50 +00:00
Richard Frith-MacDonald
e92abc1edc
64bit cleanup
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@30755 72102866-910b-0410-8b05-ffd578937521
2010-06-16 06:59:19 +00:00