Commit graph

21 commits

Author SHA1 Message Date
rfm
7e1b80bb32 minor fixes for 64bit systems using collection with more than 2^32 items
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38295 72102866-910b-0410-8b05-ffd578937521
2015-01-16 15:25:50 +00:00
rfm
1483924463 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
rfm
022d588467 Changes for 64bit clean printf format strings.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36810 72102866-910b-0410-8b05-ffd578937521
2013-07-03 06:46:41 +00:00
rfm
811c14e55a initialise with null pointers
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35973 72102866-910b-0410-8b05-ffd578937521
2013-01-14 17:18:31 +00:00
rfm
9923323d24 fixup to compile again
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35881 72102866-910b-0410-8b05-ffd578937521
2012-12-12 13:51:07 +00:00
theraven
c727ab5333 Fix NSPointerArray so that it cleans up its array on dealloc. This is needed
to avoid memory leaks with strong references and heap corruption with weak
ones.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35878 72102866-910b-0410-8b05-ffd578937521
2012-12-11 18:29:49 +00:00
theraven
38c34ba6ea Add methods from 10.8 for using zeroing weak references in collections.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35877 72102866-910b-0410-8b05-ffd578937521
2012-12-11 17:49:28 +00:00
theraven
ceba92a265 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
theraven
0f262c600e Make NSPointerArray insert the correct read / write barriers in GC mode.
Add some helper functions to NSConcretePointerFunctions.h that make it easier
to do this in the other collections that need to support GC.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33180 72102866-910b-0410-8b05-ffd578937521
2011-05-28 18:05:29 +00:00
rfm
657443d651 Use memmove rather than memcpy
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32145 72102866-910b-0410-8b05-ffd578937521
2011-02-13 12:56:46 +00:00
rfm
53e8554a8c tweaks for clang static analyser warningS
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32048 72102866-910b-0410-8b05-ffd578937521
2011-02-11 09:02:33 +00:00
rfm
dc8136dbc5 implement missing method
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31984 72102866-910b-0410-8b05-ffd578937521
2011-02-01 13:51:32 +00:00
rfm
d605c6f7b5 Simplify header inclusion
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29669 72102866-910b-0410-8b05-ffd578937521
2010-02-19 08:12:46 +00:00
rfm
f13d56d8ec merge back reorganisation branch
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29615 72102866-910b-0410-8b05-ffd578937521
2010-02-14 10:48:10 +00:00
rfm
cb1ee03381 fixups in changes made to avoid compiler warnings.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29261 72102866-910b-0410-8b05-ffd578937521
2010-01-11 12:38:37 +00:00
rfm
072c124d08 Tweaks for building with clang
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29254 72102866-910b-0410-8b05-ffd578937521
2010-01-10 14:38:16 +00:00
rfm
7e2dfe453b more gc fixups
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@28228 72102866-910b-0410-8b05-ffd578937521
2009-04-17 08:12:52 +00:00
rfm
bfa9ad1901 fix a couple of bugs discovered in preliminary testing
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@27928 72102866-910b-0410-8b05-ffd578937521
2009-02-20 14:23:30 +00:00
rfm
5407104a7c initial implementation of NSPointerArray
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@27866 72102866-910b-0410-8b05-ffd578937521
2009-02-15 07:13:54 +00:00
rfm
5010ea5718 concrete pointer functions class added ... incomplete
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@27834 72102866-910b-0410-8b05-ffd578937521
2009-02-10 19:47:01 +00:00
rfm
ed994b6d46 add NSPointerArray
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@27660 72102866-910b-0410-8b05-ffd578937521
2009-01-23 17:49:37 +00:00