Commit graph

2690 commits

Author SHA1 Message Date
Daniel Ferreira
47ecf6a90b FoundationErrors: add "no file exists" error
Create a no-file-exists error to the FoundationErrors enums. No function
is yet implemented to throw this error, but it has been added for
compatibility with applications that handle it.
2017-06-29 21:18:16 +01:00
Daniel Ferreira
1e8c1d3855 headers: define GS_HAS_DECLARED_PROPERTIES macro
To keep compatibility with compilers prior to Objective-C 2.0 support
(added in the GCC 4.6 series), we are unable to always declare @property
attributes in classes. However, compatibility with dot-syntax
applications require us to define properties if we can.

We already had some checks for the GS_HAS_DECLARED_PROPERTIES macro to
see whether we could or could not declare properties (or whether we
should fall back to manual getter/setter defining). However, it seems
this macro never got defined.

This commit adds this macro, checking whether we possess either GCC >=
4.6 or Clang.
2017-06-29 21:18:16 +01:00
Richard Frith-Macdonald
9b8f8a8444 Replace lost edit spotted by Fred. 2017-06-19 07:07:13 +01:00
Richard Frith-Macdonald
c494785630 Fix GSI_MAP_NODE_IS_EMPTY macros as suggested
by Daniel Ferreira <bnmvco@gmail.com>
2017-06-17 07:13:55 +01:00
Richard Frith-MacDonald
9400f9105d Make TLS client certificate issuer/owner names available
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40508 72102866-910b-0410-8b05-ffd578937521
2017-05-19 11:38:48 +00:00
Richard Frith-MacDonald
073fb54804 apply bug #49021
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40461 72102866-910b-0410-8b05-ffd578937521
2017-04-09 09:56:55 +00:00
Wolfgang Lux
6df2b6f4c9 Add missing class declaration for new methods in NSStream.h
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40445 72102866-910b-0410-8b05-ffd578937521
2017-04-04 07:44:00 +00:00
Richard Frith-MacDonald
71d1d5c42b implement methods to create a stream to read from a URL
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40420 72102866-910b-0410-8b05-ffd578937521
2017-03-27 09:44:13 +00:00
Richard Frith-MacDonald
7c9d7acafa Update NSComparisonResult to use NS_ENUM
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40418 72102866-910b-0410-8b05-ffd578937521
2017-03-27 09:00:35 +00:00
Richard Frith-MacDonald
5e2d923b78 improve comment
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40179 72102866-910b-0410-8b05-ffd578937521
2016-10-26 11:34:11 +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
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
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
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
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
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
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
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
Niels Grewe
4b9f685eb9 Add NS_DESIGNATED_INITIALIZER macro
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39986 72102866-910b-0410-8b05-ffd578937521
2016-07-12 14:30:21 +00:00
Richard Frith-MacDonald
6f1ac918fa msys2/64bit fixes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39942 72102866-910b-0410-8b05-ffd578937521
2016-06-28 14:01:55 +00:00
Richard Frith-MacDonald
2dbc4d0d20 msys2 64bit tweaks
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39930 72102866-910b-0410-8b05-ffd578937521
2016-06-27 16:38:51 +00:00
Richard Frith-MacDonald
04406427e3 Add newere method
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39924 72102866-910b-0410-8b05-ffd578937521
2016-06-26 05:56:10 +00:00
Richard Frith-MacDonald
1b63746799 Thread-safety fixes.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39902 72102866-910b-0410-8b05-ffd578937521
2016-06-22 09:09:29 +00:00
Niels Grewe
0d98f56eca Implement resource limits for regular expression evaluation. Tweaked
to roughly match the Cocoa behaviour, but can be changed through 
the GSRegularExpressionWorkLimit user default.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39872 72102866-910b-0410-8b05-ffd578937521
2016-06-17 09:04:04 +00:00
Richard Frith-MacDonald
0adeacda9a Improve API for making doc 7bit safe
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39841 72102866-910b-0410-8b05-ffd578937521
2016-06-06 21:16:30 +00:00
Richard Frith-MacDonald
7622a2618e fix spelling errors / typos (patch by heintzmann.eric@free.fr)
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39774 72102866-910b-0410-8b05-ffd578937521
2016-05-18 06:11:00 +00:00
Richard Frith-MacDonald
f5288bdf6b Simplify bfd code
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39763 72102866-910b-0410-8b05-ffd578937521
2016-05-14 14:47:43 +00:00
Richard Frith-MacDonald
71941dd24d cleanup changes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39762 72102866-910b-0410-8b05-ffd578937521
2016-05-14 09:34:01 +00:00
Gregory John Casamento
a4200029bd Add containsString: implementation
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39731 72102866-910b-0410-8b05-ffd578937521
2016-05-06 22:04:07 +00:00
Niels Grewe
c0282c4073 If libdispatch provides integration hooks for the main queue
(i.e. nickhutchinson/libdispatch), use these to drain the main
queue using the main run loop.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39617 72102866-910b-0410-8b05-ffd578937521
2016-04-04 08:17:08 +00:00
Richard Frith-MacDonald
29d4e2981e More GC removal updates
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39611 72102866-910b-0410-8b05-ffd578937521
2016-03-26 05:10:00 +00:00
Richard Frith-MacDonald
d40d219015 removal of garbage collection
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39608 72102866-910b-0410-8b05-ffd578937521
2016-03-25 11:15:28 +00:00
Richard Frith-MacDonald
2162c52990 Stuff for new release
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39569 72102866-910b-0410-8b05-ffd578937521
2016-03-20 13:54:19 +00:00
Richard Frith-MacDonald
67e4c0581d standardise -setDebug: extension
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39554 72102866-910b-0410-8b05-ffd578937521
2016-03-17 08:12:45 +00:00
Richard Frith-MacDonald
cd3f29f2ea Regenerate
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39530 72102866-910b-0410-8b05-ffd578937521
2016-03-11 16:52:21 +00:00
Richard Frith-MacDonald
6e18501b77 stack trace tweaks
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39529 72102866-910b-0410-8b05-ffd578937521
2016-03-11 16:48:31 +00:00
Niels Grewe
8616cbf474 Include NSString.h
So that code including the NSPredicate header will know
about NSString confirming to NSCopying.

Reported by Bertrand Dekoninck 


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39527 72102866-910b-0410-8b05-ffd578937521
2016-03-11 11:29:43 +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
Wolfgang Lux
afc8ff1c47 Add method +[NSLocale localeWithLocaleIdentifier:], which was
introduced in OS X 10.6.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39516 72102866-910b-0410-8b05-ffd578937521
2016-03-10 08:48:40 +00:00
Riccardo Mottola
0c0cc7aedc fix typo
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39509 72102866-910b-0410-8b05-ffd578937521
2016-03-09 17:25:03 +00:00
Riccardo Mottola
e5ef35a150 Add some new path values
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39508 72102866-910b-0410-8b05-ffd578937521
2016-03-09 17:22:31 +00:00
Niels Grewe
fcbbe0431f Implement -evaluateWithObject:substitutionVariables: (OS X 10.5 method),
and mark one of the GSBlockPredicate tests as hopeful on OS X.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39506 72102866-910b-0410-8b05-ffd578937521
2016-03-09 15:38:32 +00:00
Niels Grewe
6e6ee05a80 Implement [NSPredicate predicateWithBlock:].
Fixes https://savannah.gnu.org/bugs/?46418


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39493 72102866-910b-0410-8b05-ffd578937521
2016-03-09 13:19:35 +00:00
Richard Frith-MacDonald
4f9d5c0982 use compiler conventions to tell if we are on mswindows
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39453 72102866-910b-0410-8b05-ffd578937521
2016-03-04 15:02:07 +00:00
Richard Frith-MacDonald
84613dbfde fix 64bit issue
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39452 72102866-910b-0410-8b05-ffd578937521
2016-03-04 14:58:01 +00:00
Richard Frith-MacDonald
e9539579c3 fixed missing change in last revert
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39435 72102866-910b-0410-8b05-ffd578937521
2016-03-02 09:40:56 +00:00
Richard Frith-MacDonald
276e557f9c tweaks
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39433 72102866-910b-0410-8b05-ffd578937521
2016-03-01 11:43:36 +00:00
Richard Frith-MacDonald
8352d4a919 tweaks for win64 by Seong Gu Lee <sgleehd@gmail.com>
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39432 72102866-910b-0410-8b05-ffd578937521
2016-03-01 10:41:33 +00:00
Niels Grewe
5850d0aa38 Declare a FOUNDATION_EXPORT macro as an alias for GS_EXPORT.
Improves Cocoa compatibility


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39418 72102866-910b-0410-8b05-ffd578937521
2016-02-26 12:52:31 +00:00
Richard Frith-MacDonald
a51249a65d Apply patch by Patrick Laurent and tidy a bit.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39411 72102866-910b-0410-8b05-ffd578937521
2016-02-24 07:41:20 +00:00
Niels Grewe
28c824a78a Modify the interfaces of all collection classes to be compatible with the
new lightweight generics implemenation. (Newer MacOS X/iOS code assuming 
the presence of the generics annotations can otherwise not be compiled with
GNUstep). This should be well-behaved under clang and gcc both. 

Fix NSCache which was copying the cache keys when it really shouldn't
have. Added a few test cases for eviction behaviour.

Few smaller tweaks to avoid compiler warnings.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39406 72102866-910b-0410-8b05-ffd578937521
2016-02-22 21:04:18 +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
Niels Grewe
472e941dbe Add macros for non-null assumed sections
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39361 72102866-910b-0410-8b05-ffd578937521
2016-02-12 09:00:10 +00:00
Niels Grewe
cd9dfc915e Implement -components:fromDate:toDate:options:
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39202 72102866-910b-0410-8b05-ffd578937521
2015-11-30 10:06:04 +00:00
Richard Frith-MacDonald
1451a8181c add __has_extension
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39151 72102866-910b-0410-8b05-ffd578937521
2015-11-04 17:55:05 +00:00
Niels Grewe
ad05ac2351 Implement the NS_ENUM AND NS_OPTIONS macros to (hopefully) work both on gcc
and clang.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39029 72102866-910b-0410-8b05-ffd578937521
2015-10-05 18:43:44 +00:00
Richard Frith-MacDonald
0c5d96eebd changes intended to allow use of _Bool throughout
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39010 72102866-910b-0410-8b05-ffd578937521
2015-09-22 09:46:10 +00:00
Riccardo Mottola
1d6a599be7 Do not enable weak on mingw, because it works only with ELF
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39009 72102866-910b-0410-8b05-ffd578937521
2015-09-22 08:26:10 +00:00
Riccardo Mottola
2cef7c362d Add some 10.6 URL errors
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38994 72102866-910b-0410-8b05-ffd578937521
2015-09-18 07:36:13 +00:00
Riccardo Mottola
bb36c3f5a5 define type more traditional GS way or gcc didn't like it
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38988 72102866-910b-0410-8b05-ffd578937521
2015-09-16 07:41:49 +00:00
Riccardo Mottola
4f1e798805 Add simple (files only and no keys handling) implementation of 10.6 method contentsOfDirectoryAtURL
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38987 72102866-910b-0410-8b05-ffd578937521
2015-09-16 00:53:30 +00:00
Richard Frith-MacDonald
574c83e0bf Safer debug logging for http request/response
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38946 72102866-910b-0410-8b05-ffd578937521
2015-08-29 20:12:33 +00:00
Richard Frith-MacDonald
d91dd0b821 File handle deallocation fix suggested by David
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38937 72102866-910b-0410-8b05-ffd578937521
2015-08-28 09:21:45 +00:00
Richard Frith-MacDonald
f1522b69aa try to fix include order to avoid BOOL problem on msys2
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38925 72102866-910b-0410-8b05-ffd578937521
2015-08-24 13:03:01 +00:00
Richard Frith-MacDonald
226220f77a gzip support
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38899 72102866-910b-0410-8b05-ffd578937521
2015-08-17 16:18:00 +00:00
Richard Frith-MacDonald
14d22790b6 Another attempt to work with non-fragile abi
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38838 72102866-910b-0410-8b05-ffd578937521
2015-07-24 19:59:05 +00:00
Richard Frith-MacDonald
3b02814665 more updates
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38803 72102866-910b-0410-8b05-ffd578937521
2015-07-16 08:44:15 +00:00
Niels Grewe
46d97b3be0 Implement +addObjectsFromArray: on NSHashTable
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38802 72102866-910b-0410-8b05-ffd578937521
2015-07-16 07:38:14 +00:00
Richard Frith-MacDonald
841ddf78e0 memory usage interrogation
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38799 72102866-910b-0410-8b05-ffd578937521
2015-07-15 14:14:21 +00:00
Richard Frith-MacDonald
d87aacee2f fdix minor buglet
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38774 72102866-910b-0410-8b05-ffd578937521
2015-07-09 11:44:20 +00:00
Richard Frith-MacDonald
999fda788a Thread diagnositc changes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38768 72102866-910b-0410-8b05-ffd578937521
2015-07-08 12:54:15 +00:00
Riccardo Mottola
dffcd0bb1c On NetBSD, undefine the system __weak first
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38767 72102866-910b-0410-8b05-ffd578937521
2015-07-08 09:08:03 +00:00
Richard Frith-MacDonald
ec04844484 Diagnostic for deadlocked threads
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38722 72102866-910b-0410-8b05-ffd578937521
2015-06-30 08:43:28 +00:00
Richard Frith-MacDonald
8c07ae4a05 Tidy to match conding conventions
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38721 72102866-910b-0410-8b05-ffd578937521
2015-06-30 08:41:38 +00:00
Richard Frith-MacDonald
869d6ad439 configuration updates
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38720 72102866-910b-0410-8b05-ffd578937521
2015-06-30 08:28:00 +00:00
Richard Frith-MacDonald
4e57947e71 minor tweaks for Yosemite
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38667 72102866-910b-0410-8b05-ffd578937521
2015-06-22 09:33:37 +00:00
Riccardo Mottola
c5dc2d494d base64EncodedDataWithOptions, base64EncodedStringWithOptions: first implementation
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38634 72102866-910b-0410-8b05-ffd578937521
2015-06-14 16:17:17 +00:00
Richard Frith-MacDonald
4bce4d2978 Various updates
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38599 72102866-910b-0410-8b05-ffd578937521
2015-06-04 09:18:52 +00:00
Riccardo Mottola
9eac37b9c8 Add firstObject: method existing since 10.6
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38595 72102866-910b-0410-8b05-ffd578937521
2015-06-01 17:43:37 +00:00
Richard Frith-MacDonald
a79dd60102 Impement test for main thread on linux
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38443 72102866-910b-0410-8b05-ffd578937521
2015-03-31 09:45:40 +00:00
Richard Frith-MacDonald
8a265fe615 Improve thread ID and name code to match OSX. Add some initial getaddrinfo code
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38442 72102866-910b-0410-8b05-ffd578937521
2015-03-31 09:14:01 +00:00
Richard Frith-MacDonald
0af68219d1 define DLog() and ALog() if not already defined
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38377 72102866-910b-0410-8b05-ffd578937521
2015-03-04 06:07:09 +00:00
Richard Frith-MacDonald
022c5be3eb NSLog updates for consistency with latest OSX
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38370 72102866-910b-0410-8b05-ffd578937521
2015-03-01 19:37:28 +00:00
Marcus Müller
dd75f89d22 exposed NSUUID.h in Foundation.h, similar to OSX's Foundation
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38290 72102866-910b-0410-8b05-ffd578937521
2015-01-13 20:46:32 +00:00
Richard Frith-MacDonald
e6ed085192 integrate patch from johannes@brilliantservice.co.jp
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38212 72102866-910b-0410-8b05-ffd578937521
2014-11-28 18:38:24 +00:00
Marcus Müller
a10e77eab6 added UNAVAILABLE_ATTRIBUTE macro (OSX compatibility)
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38113 72102866-910b-0410-8b05-ffd578937521
2014-10-11 12:44:05 +00:00
Wolfgang Lux
f4de232166 Add test for grantpt function to configure.ac.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38048 72102866-910b-0410-8b05-ffd578937521
2014-08-19 11:45:36 +00:00
Richard Frith-MacDonald
7d9d513a12 Fix file missed from previous commit
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38014 72102866-910b-0410-8b05-ffd578937521
2014-07-25 11:39:15 +00:00
Riccardo Mottola
828b9a3d5f Substitute #import with #include so that the header can be used in a pure C file without gcc warnings.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37964 72102866-910b-0410-8b05-ffd578937521
2014-06-26 21:42:44 +00:00
Richard Frith-MacDonald
43f07926da reinstate deleted code (bug #42405)
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37904 72102866-910b-0410-8b05-ffd578937521
2014-05-22 16:55:18 +00:00
Richard Frith-MacDonald
7f37b6668d Improve memory management debug functionality
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37873 72102866-910b-0410-8b05-ffd578937521
2014-05-09 08:04:58 +00:00
Richard Frith-MacDonald
a278dc8990 added -localizedName
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37801 72102866-910b-0410-8b05-ffd578937521
2014-04-18 20:03:31 +00:00
Richard Frith-MacDonald
3df1043cea Mimic OSX handling of what appears to be an ICU bug
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37793 72102866-910b-0410-8b05-ffd578937521
2014-04-12 04:38:13 +00:00
Fred Kiefer
be29047e59 * Headers/Foundation/NSXMLNodeOptions.h: Add new 10.7 options.
* Source/NSXMLDocument.m: Use XML_PARSE_NONET as the default
        option for xmlReadMemory. Add XML_PARSE_NOENT when
        NSXMLNodeLoadExternalEntitiesNever is set.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37792 72102866-910b-0410-8b05-ffd578937521
2014-04-11 21:43:14 +00:00
Richard Frith-MacDonald
5244db9446 fix for bug #41626
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37757 72102866-910b-0410-8b05-ffd578937521
2014-03-19 08:26:48 +00:00
Quentin Mathe
e51bd0979d Added -addObserverForName:selector:queue:usingBlock: to NSNotificationCenter
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37691 72102866-910b-0410-8b05-ffd578937521
2014-02-14 14:23:09 +00:00
Quentin Mathe
0e7e0d1818 Fixed missing paragraph markup in documentation for NSSortDescriptor methods just added
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37690 72102866-910b-0410-8b05-ffd578937521
2014-02-14 14:18:14 +00:00
Quentin Mathe
bb9c1ea364 Added missing Mac OS X 10.6 methods related to NSSortDescriptor
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37689 72102866-910b-0410-8b05-ffd578937521
2014-02-14 13:02:41 +00:00
Richard Frith-MacDonald
5f03a0bfa2 fixup for whitespace between encoded words
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37672 72102866-910b-0410-8b05-ffd578937521
2014-02-03 08:25:33 +00:00
Richard Frith-MacDonald
ede8af3da2 regenerate
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37670 72102866-910b-0410-8b05-ffd578937521
2014-02-02 08:57:42 +00:00
Richard Frith-MacDonald
c3e2e00811 more doc tweaks
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37669 72102866-910b-0410-8b05-ffd578937521
2014-02-02 08:44:18 +00:00
Marcus Müller
79c0e271b3 added NSUserNotification.h to Foundation.h
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37655 72102866-910b-0410-8b05-ffd578937521
2014-01-31 14:29:04 +00:00
Richard Frith-MacDonald
5a5946dfce fix whitespace/indentatrion issues
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37647 72102866-910b-0410-8b05-ffd578937521
2014-01-30 14:58:20 +00:00
Marcus Müller
28cac03e05 Added NSUserNotification (new in OSX 10.8) and infrastructure. It's currently only available for compilers which support autosynthesis (clang >= 3.2) and the default implementation of NSUserNotificationCenter doesn't do much. However, there's a bundle loading mechanism embedded which makes it easy to provide a concrete implementation. I've provided a DBusKit based implementation as part of DBusKit which already works.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37645 72102866-910b-0410-8b05-ffd578937521
2014-01-30 14:23:18 +00:00
Fred Kiefer
e384821ba8 * Headers/Foundation/NSKeyValueObserving.h,
* Source/NSKeyValueObserving.m: Add method
        -keyPathsForValuesAffectingValueForKey:.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37636 72102866-910b-0410-8b05-ffd578937521
2014-01-26 13:22:38 +00:00
Richard Frith-MacDonald
37acb000fd consistency tweaks and simplify documentation flags in make files by automatically adding most work map entries.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37629 72102866-910b-0410-8b05-ffd578937521
2014-01-23 09:36:37 +00:00
Luboš Doležel
80f925978a * Source/NSBundle.m:
* Headers/Foundation/NSBundle.h: add -resourceURL



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37602 72102866-910b-0410-8b05-ffd578937521
2014-01-14 14:13:31 +00:00
Richard Frith-MacDonald
5960e99013 move executable extensions code out to NSTask+GNUstepBase.m to avoid duplication
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37590 72102866-910b-0410-8b05-ffd578937521
2014-01-13 12:08:04 +00:00
Richard Frith-MacDonald
376afc9144 comment about path portability
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37577 72102866-910b-0410-8b05-ffd578937521
2014-01-12 06:34:57 +00:00
Richard Frith-MacDonald
cc4ee79a3e alter NSDeveloperDirectory to give the path to the installed development system (the gnustep package on windows)
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37573 72102866-910b-0410-8b05-ffd578937521
2014-01-11 08:58:57 +00:00
Quentin Mathe
f89c8939a4 Fixed +[NSValueTransformer valueTransformerForName:] to automatically register
any available NSValueTransformer subclass that matches  the given name and is 
not yet registered. This behavior is described in the Cocoa API documentation.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37565 72102866-910b-0410-8b05-ffd578937521
2014-01-09 10:21:55 +00:00
Richard Frith-MacDonald
99517dd9b1 move random data generation out to category for easier use
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37558 72102866-910b-0410-8b05-ffd578937521
2014-01-08 11:14:53 +00:00
Marcus Müller
83cf4ab39f NSMetadataQueryDelegate uses new GS_PROTOCOLS_HAVE_OPTIONAL macro now (and
minor tweaks)


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37528 72102866-910b-0410-8b05-ffd578937521
2013-12-31 13:14:11 +00:00
Marcus Müller
64d6268f40 several macros added to properly support protocols containing @optional
also on GCC >= 4.6


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37525 72102866-910b-0410-8b05-ffd578937521
2013-12-30 13:37:40 +00:00
Marcus Müller
6dd4f6fba1 NSNetServiceListenForConnections option implemented for GSAvahiNetService
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37521 72102866-910b-0410-8b05-ffd578937521
2013-12-26 23:16:36 +00:00
Marcus Müller
adc50bb90f fixed typo in Headers/Foundation/NSStream.h which prevented formal
protocol specification to be picked up by clang


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37520 72102866-910b-0410-8b05-ffd578937521
2013-12-26 23:02:49 +00:00
Richard Frith-MacDonald
ee8b3b987c fixes for task notification
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37484 72102866-910b-0410-8b05-ffd578937521
2013-12-20 13:32:29 +00:00
Richard Frith-MacDonald
263e81a85c improve build on windows
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37483 72102866-910b-0410-8b05-ffd578937521
2013-12-20 13:28:45 +00:00
Richard Frith-MacDonald
1aeea18a33 tweaks to build on windows
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37482 72102866-910b-0410-8b05-ffd578937521
2013-12-20 12:51:52 +00:00
Richard Frith-MacDonald
9b99122b0f iUUID for unix by leeg
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37480 72102866-910b-0410-8b05-ffd578937521
2013-12-20 12:26:22 +00:00
Richard Frith-MacDonald
65039c3531 changes from bug #40930
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37478 72102866-910b-0410-8b05-ffd578937521
2013-12-20 10:18:12 +00:00
Richard Frith-MacDonald
9fd1bf4218 fix from #40931
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37477 72102866-910b-0410-8b05-ffd578937521
2013-12-20 10:05:10 +00:00
Richard Frith-MacDonald
0805c455d0 compatibility tweak from #40925
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37476 72102866-910b-0410-8b05-ffd578937521
2013-12-20 10:01:16 +00:00
Fred Kiefer
32a9c4c1dd * Headers/Foundation/NSArray.h,
* Source/NSArray.m: Move -setValue:forKey: from NSMutableArray
  to NSArray.
Patch by Marcian Lytwyn <marcian.lytwyn@advcsi.com>.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37464 72102866-910b-0410-8b05-ffd578937521
2013-12-13 21:01:22 +00:00
Quentin Mathe
52fa3a2c07 Changed keys argument type to (const id <NSCopying>[]) in
-[NSDictionary initWithObjects:forKeys:count:] and 
+dictionaryWithObjects:forKeys:count:, to follow the current Cocoa API.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37431 72102866-910b-0410-8b05-ffd578937521
2013-12-05 13:16:36 +00:00
Riccardo Mottola
27bc2a3cf3 Insert some kludge for PTR stuff on systems with fake C99 compatible headers.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37419 72102866-910b-0410-8b05-ffd578937521
2013-11-29 17:42:44 +00:00
Riccardo Mottola
ce7b612350 include inttypes.h before undefining/defining
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37416 72102866-910b-0410-8b05-ffd578937521
2013-11-27 00:06:54 +00:00
Riccardo Mottola
7f332cc704 fix trivial error
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37415 72102866-910b-0410-8b05-ffd578937521
2013-11-26 23:22:49 +00:00
Riccardo Mottola
961344bc89 Detect broken PTR limits (notably solaris 8) and provide replacements
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37414 72102866-910b-0410-8b05-ffd578937521
2013-11-26 22:55:47 +00:00
Richard Frith-MacDonald
0e287d4440 Make ICU and other libraries used by base available for gui etc. Also fix for windows build
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37409 72102866-910b-0410-8b05-ffd578937521
2013-11-25 08:54:08 +00:00
Richard Frith-MacDonald
3e72da99e5 add -isoYear
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37377 72102866-910b-0410-8b05-ffd578937521
2013-11-18 15:19:23 +00:00
Richard Frith-MacDonald
ff8fb085de remove solaris10 kludge
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37329 72102866-910b-0410-8b05-ffd578937521
2013-10-30 04:44:11 +00:00
Richard Frith-MacDonald
6b04d159b4 try to integerate Riccardo's inttypes patch
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37313 72102866-910b-0410-8b05-ffd578937521
2013-10-29 09:14:45 +00:00
Eric Wasylishen
f1cf2f888f * Source/NSException.m:
* Headers/Foundation/NSThread.h: Add trivial implementation of
+[NSThread callStackSymbols] that uses GSStackTrace.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37249 72102866-910b-0410-8b05-ffd578937521
2013-10-18 02:00:54 +00:00
Fred Kiefer
bc968c5a9f Add 10.6 class method dateWithTimeInterval:sinceDate:
Patch by Marcian Lytwyn <marcian.lytwyn@advcsi.com>


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37230 72102866-910b-0410-8b05-ffd578937521
2013-10-14 22:30:33 +00:00
Richard Frith-MacDonald
3809634e47 Fix for bug #40047 by Larry Campbell
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37108 72102866-910b-0410-8b05-ffd578937521
2013-09-18 17:43:42 +00:00
Richard Frith-MacDonald
2e99b562d8 SSL/TLS certificate enhancements.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37103 72102866-910b-0410-8b05-ffd578937521
2013-09-18 12:49:07 +00:00
Richard Frith-MacDonald
6adc307bfa another attempt to improve characterset detection
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37059 72102866-910b-0410-8b05-ffd578937521
2013-09-10 07:24:29 +00:00
Fred Kiefer
b7ea982477 * Headers/GNUstepBase/GSVersionMacros.h: Fix usage of __APPLE__ macro.
Patch by Graham Lee <iamleeg@gmail.com>


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37028 72102866-910b-0410-8b05-ffd578937521
2013-08-30 20:24:08 +00:00
Luboš Doležel
8ea74f67d7 More fixes in GSBlocks.h
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36980 72102866-910b-0410-8b05-ffd578937521
2013-08-15 11:04:06 +00:00
Luboš Doležel
5302e0903c Fixing GCC compile problem
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36977 72102866-910b-0410-8b05-ffd578937521
2013-08-15 07:09:09 +00:00
Luboš Doležel
13fd35dd29 Added missing GCC_VERSION macro declaration into GSBLocks.h
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36976 72102866-910b-0410-8b05-ffd578937521
2013-08-14 21:38:07 +00:00
Luboš Doležel
f932a9ddb4 * Headers/GNUstepBase/GSBlocks.h: Fixed the DEFINE_BLOCK_TYPE macro
for certain GCC versions


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36975 72102866-910b-0410-8b05-ffd578937521
2013-08-14 21:34:31 +00:00
Luboš Doležel
cac2ee2d7e * Source/NSBundle.m: add NSBundle pathForAuxiliaryExecutable: and -privateFrameworksPath and their URL counterparts
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36973 72102866-910b-0410-8b05-ffd578937521
2013-08-14 21:10:35 +00:00
Richard Frith-MacDonald
e50bb2e496 added OSX convenience method
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36966 72102866-910b-0410-8b05-ffd578937521
2013-08-12 08:56:18 +00:00
Luboš Doležel
351c6d8b54 Added NSBundle executableURL and builtInPlugInsURL
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36959 72102866-910b-0410-8b05-ffd578937521
2013-08-10 13:31:46 +00:00
Luboš Doležel
c08c16568d Added -[NSBundle bundleURL]
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36958 72102866-910b-0410-8b05-ffd578937521
2013-08-10 13:15:29 +00:00
Wolfgang Lux
15ebc62649 Fix definition of GS_OSX_ADJUST, which got things backward.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36874 72102866-910b-0410-8b05-ffd578937521
2013-07-11 22:03:17 +00:00
Richard Frith-MacDonald
498b8300c3 add new class from Graham Lee <iamleeg@gmail.com>
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36860 72102866-910b-0410-8b05-ffd578937521
2013-07-09 18:59:38 +00:00
Richard Frith-MacDonald
58ab45113f re-add MAC_OS_X_VERSION_MAX_ALLOWED
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36857 72102866-910b-0410-8b05-ffd578937521
2013-07-09 04:35:54 +00:00
Fred Kiefer
64932aad00 Include objc.h otherwise __GNU_LIBOBJC__ isn't defined.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36838 72102866-910b-0410-8b05-ffd578937521
2013-07-05 13:55:10 +00:00
Richard Frith-MacDonald
4a39c51ca9 reverse logic in OSX test
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36833 72102866-910b-0410-8b05-ffd578937521
2013-07-04 06:30:35 +00:00
Richard Frith-MacDonald
f5818799fe fix incorrect use of OSX specific versioning
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36832 72102866-910b-0410-8b05-ffd578937521
2013-07-04 06:29:06 +00:00
Richard Frith-MacDonald
5d9651ff89 document version macros for OSX
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36830 72102866-910b-0410-8b05-ffd578937521
2013-07-04 06:19:49 +00:00
Richard Frith-MacDonald
f3b8c69161 add missing API file and xcode project from Ibadinov Marat <ibadinov@me.com>
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36816 72102866-910b-0410-8b05-ffd578937521
2013-07-03 09:39:16 +00:00
Richard Frith-MacDonald
a517ff2804 fix typo
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36814 72102866-910b-0410-8b05-ffd578937521
2013-07-03 08:18:10 +00:00
Richard Frith-MacDonald
38ea0d2b27 Add new type encoding parser by Ibadinov Marat, modified to build on gnu/linux
without warnings, using gcc.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36813 72102866-910b-0410-8b05-ffd578937521
2013-07-03 07:55:48 +00:00
Richard Frith-MacDonald
b2d5fd280c 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
Richard Frith-MacDonald
1a38078395 fix error in osx compatibility version macro ... just use MAX_ALLOWED if given.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36808 72102866-910b-0410-8b05-ffd578937521
2013-07-03 04:59:40 +00:00
Richard Frith-MacDonald
a2e1553dbe Temporarily disable format for gcc
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36801 72102866-910b-0410-8b05-ffd578937521
2013-07-02 16:17:54 +00:00
Richard Frith-MacDonald
9a93be8534 add format checking to NSLog/NSException
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36800 72102866-910b-0410-8b05-ffd578937521
2013-07-02 15:53:46 +00:00
Richard Frith-MacDonald
adb11a2b12 fix typo
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36784 72102866-910b-0410-8b05-ffd578937521
2013-07-01 08:12:22 +00:00
Richard Frith-MacDonald
d5b121c182 iversion correction by wolfgang
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36783 72102866-910b-0410-8b05-ffd578937521
2013-07-01 07:51:55 +00:00
Richard Frith-MacDonald
f6d743629f update documentation generation for new versions.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36782 72102866-910b-0410-8b05-ffd578937521
2013-07-01 07:46:48 +00:00
Richard Frith-MacDonald
19bec3c0c9 A few string methods and OSX version compatibility tweaks.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36781 72102866-910b-0410-8b05-ffd578937521
2013-07-01 07:08:55 +00:00
Luboš Doležel
d29e2005e9 Fixing a compile issue
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36736 72102866-910b-0410-8b05-ffd578937521
2013-06-21 07:33:58 +00:00
Luboš Doležel
26c0b8b274 * Headers/GSBlocks.h: weakly import _Block_copy and _Block_release
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36735 72102866-910b-0410-8b05-ffd578937521
2013-06-20 22:04:14 +00:00
Sebastian Reitenbach
3fafe05f0c * Source/Additions/Unicode.m
Headers/Foundation/NSString.h
          revert my change from 2013-05-29
          breaks decoding of .gorm files in NSString for me on amd64



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36701 72102866-910b-0410-8b05-ffd578937521
2013-06-06 10:11:27 +00:00
Sebastian Reitenbach
5c58cc793a * Headers/Foundation/NSString.h
make NSStringEncoding enum typdef to NSUInteger
        * Source/Additions/Unicode.m     
          fix format string to print out NSStringEncoding

OK Richard



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36678 72102866-910b-0410-8b05-ffd578937521
2013-05-29 16:05:41 +00:00
Fred Kiefer
276d411340 * Tests/base/NSArchiver/stringEncoding.m: Use PASS_EQUAL instead
of PASS.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36617 72102866-910b-0410-8b05-ffd578937521
2013-05-13 20:55:37 +00:00
David Chisnall
c3a9c60b14 Fix GNUstep.h in ObjC++11 mode.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36600 72102866-910b-0410-8b05-ffd578937521
2013-05-08 09:50:52 +00:00
Richard Frith-MacDonald
8398b7e156 fixups to avoid future ABI breakage
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36538 72102866-910b-0410-8b05-ffd578937521
2013-04-15 09:07:19 +00:00
Richard Frith-MacDonald
53a553fb47 fix minor error in last NSData edit, some other minor issues,
and avoid more false positives.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36536 72102866-910b-0410-8b05-ffd578937521
2013-04-15 07:00:42 +00:00
Richard Frith-MacDonald
f371df09b6 more static analyser fixups
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36532 72102866-910b-0410-8b05-ffd578937521
2013-04-14 18:49:23 +00:00
Richard Frith-MacDonald
97cecc058e tweaks to keep static analyzer happy
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36527 72102866-910b-0410-8b05-ffd578937521
2013-04-14 16:25:27 +00:00
Richard Frith-MacDonald
00b20340b4 NSInteger/NSUInter tweak plus improve documentation.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36516 72102866-910b-0410-8b05-ffd578937521
2013-04-13 09:10:01 +00:00
Richard Frith-MacDonald
1fc503029f prepare documentation for release
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36443 72102866-910b-0410-8b05-ffd578937521
2013-03-28 08:10:03 +00:00
Richard Frith-MacDonald
9447e1d6d2 header version macro fix pointed out by lubos dolezel
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36441 72102866-910b-0410-8b05-ffd578937521
2013-03-26 22:36:24 +00:00
Richard Frith-MacDonald
d087429b96 restructuring and bugfixing
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36434 72102866-910b-0410-8b05-ffd578937521
2013-03-26 09:27:49 +00:00
Richard Frith-MacDonald
ec5d649b45 new methods supplied by Lubos Dolezel
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36391 72102866-910b-0410-8b05-ffd578937521
2013-03-20 17:37:16 +00:00
Richard Frith-MacDonald
50e7207673 fix bogus ifdef
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36386 72102866-910b-0410-8b05-ffd578937521
2013-03-20 08:16:38 +00:00
Richard Frith-MacDonald
ac3e413d7c update/correct OSX versions of methods
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36385 72102866-910b-0410-8b05-ffd578937521
2013-03-20 07:21:15 +00:00
Richard Frith-MacDonald
7847a7dd4d changes for build on Androd by Emmanuel Maillard
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36364 72102866-910b-0410-8b05-ffd578937521
2013-03-16 05:25:49 +00:00
Richard Frith-MacDonald
e15c981429 a few new methods
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36311 72102866-910b-0410-8b05-ffd578937521
2013-03-08 14:07:34 +00:00
Richard Frith-MacDonald
75f5788037 Apply patch by Sebastian Reitenbach <sebastia@l00-bugdead-prods.de>
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36272 72102866-910b-0410-8b05-ffd578937521
2013-03-05 12:27:20 +00:00
Richard Frith-MacDonald
c787ce0957 add gcc version checks for attribute macros
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36257 72102866-910b-0410-8b05-ffd578937521
2013-03-04 10:02:46 +00:00
Richard Frith-MacDonald
7ca6e56d39 prep for release
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36208 72102866-910b-0410-8b05-ffd578937521
2013-02-28 16:50:37 +00:00
Fred Kiefer
c34d31015d * Headers/Foundation/NSDistributedNotificationCenter.h,
* Source/NSDistributedNotificationCenter.m: Correct the return
  types of the factory methods.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35960 72102866-910b-0410-8b05-ffd578937521
2013-01-13 16:59:49 +00:00
Richard Frith-MacDonald
7dc7161748 fix range error in last substring creation change
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35940 72102866-910b-0410-8b05-ffd578937521
2013-01-08 21:59:38 +00:00
Gregory John Casamento
feb7c308aa * Headers/Foundation/NSMetadata.h: Add _ to delegate.
* Source/GNUmakefile: Remove reference to NSMetadata.m
	* Source/NSMetadata.m: Remove from here and add OS specific
	implementations.
	* Source/unix/GNUmakefile: Add new file...
	* Source/unix/NSMetadata.m: UNIX implementation...
	* Source/win32/GNUmakefile: Add new file..
	* Source/win32/NSMetadata.m: Windows implementation.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35932 72102866-910b-0410-8b05-ffd578937521
2013-01-05 05:50:21 +00:00
David Chisnall
18b53c8777 Calloc nodes in GSIMap instead of mallocing them. This ensures that their initial value is always zero and so can be released safely.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35924 72102866-910b-0410-8b05-ffd578937521
2012-12-27 12:42:56 +00:00
David Chisnall
69d4344a0a 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
Richard Frith-MacDonald
01dded102c add methods to control line folding
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35826 72102866-910b-0410-8b05-ffd578937521
2012-11-27 16:13:25 +00:00
Gregory John Casamento
5e24b65085 * Headers/Foundation/NSMetadata.h
* Source/NSMetadata.m: Add NSMetadataQueryAttributeValueTuple and
	NSMetadataQueryResultGroup classes.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35820 72102866-910b-0410-8b05-ffd578937521
2012-11-25 19:40:10 +00:00
Gregory John Casamento
faf804b536 * Headers/Foundation/NSMetadata.h: Add ivars.
* Source/NSMetadata.m: Cleanup compilation error.
	
2012-11-20 12:50-EST Gregory John Casamento <greg.casamento@gmail.com>



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35812 72102866-910b-0410-8b05-ffd578937521
2012-11-21 17:11:08 +00:00
Gregory John Casamento
7e905d5069 * Headers/Foundation/NSMetadata.h: Declaratioins for constants and
NSMetadataItem.
	* Source/NSMetadata.m: Implementation of NSMetadataItem and definition
	of constants.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35809 72102866-910b-0410-8b05-ffd578937521
2012-11-20 17:58:34 +00:00
Gregory John Casamento
97589d82d2 Correct compilation error
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35805 72102866-910b-0410-8b05-ffd578937521
2012-11-19 03:15:09 +00:00
Gregory John Casamento
65d3018c68 * Headers/Foundation/NSMetadataQuery.h: Remove old file.
* Source/GNUmakefile: Change name to NSMetadata.[hm].
	* Source/NSMetadata.m: Add new file with correct name.
	* Source/NSMetadataQuery.m: Remove old file.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35804 72102866-910b-0410-8b05-ffd578937521
2012-11-18 16:54:08 +00:00
Gregory John Casamento
f6656b4051 * Headers/Foundation/Foundation.h: Add NSMetadataQuery.h to
include list.
	* Headers/Foundation/NSMetadataQuery.h: New header for class.
	* Source/GNUmakefile: Add NSMetadataQuery.[hm] to makefile.
	* Source/NSMetadataQuery.m: Abstract implementation for
	NSMetdataQuery.  The idea is much like NSFileStream and other
	classes which have operating system specific implementations.
	On linux this will, most likely, interface with locate/slocate.
	I'm not certain what it will talk to on Win32.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35803 72102866-910b-0410-8b05-ffd578937521
2012-11-18 16:37:57 +00:00
Wolfgang Lux
c67e228f86 Use dedicated code for glibc specific variant of strerror_r based on
an autoconf test instead of trying to tweak feature test macros to use
the POSIX version.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35774 72102866-910b-0410-8b05-ffd578937521
2012-11-02 13:44:30 +00:00
Richard Frith-MacDonald
710f96dbb6 correct declared return type
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35765 72102866-910b-0410-8b05-ffd578937521
2012-10-30 14:05:12 +00:00
Richard Frith-MacDonald
45dc918955 fix rectangle intersection bug for empty rectangles
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35754 72102866-910b-0410-8b05-ffd578937521
2012-10-28 06:46:05 +00:00
Quentin Mathe
7c88cff675 Prevent redefinition warnings for ObjC++ related macros
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35738 72102866-910b-0410-8b05-ffd578937521
2012-10-25 14:37:12 +00:00
Richard Frith-MacDonald
8eb0bdb33c Davie added objectsPassingTest:
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35731 72102866-910b-0410-8b05-ffd578937521
2012-10-22 04:38:47 +00:00
Richard Frith-MacDonald
9eb4770f5a Remove stupid OSX compatibility hack ... no longer needed.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35692 72102866-910b-0410-8b05-ffd578937521
2012-10-15 14:37:31 +00:00
Richard Frith-MacDonald
e9d41fe2db Fix logging for prettier display of class/method names.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35670 72102866-910b-0410-8b05-ffd578937521
2012-10-12 07:00:17 +00:00
Richard Frith-MacDonald
f4eb5e2726 More SSL/TLS options support
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35618 72102866-910b-0410-8b05-ffd578937521
2012-09-30 10:14:00 +00:00
Richard Frith-MacDonald
7771aba9e1 add priority settings.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35616 72102866-910b-0410-8b05-ffd578937521
2012-09-28 16:08:19 +00:00
Richard Frith-MacDonald
db9c84ff4e more tls reorganisation
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35605 72102866-910b-0410-8b05-ffd578937521
2012-09-26 15:23:24 +00:00
Richard Frith-MacDonald
a7171ab9be restructure for maintainability
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35598 72102866-910b-0410-8b05-ffd578937521
2012-09-24 09:07:55 +00:00
Richard Frith-MacDonald
2539f6207c Extend use of gnutls to older APIs so we don't need both gnutls and openssl
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35595 72102866-910b-0410-8b05-ffd578937521
2012-09-23 12:26:28 +00:00
Niels Grewe
2927b474b5 Fix compilation with the non-fragile ABI and restore a line in
GSVersionMacros.h that seems to have been left commented out accidentally.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35594 72102866-910b-0410-8b05-ffd578937521
2012-09-23 08:29:17 +00:00
Richard Frith-MacDonald
55149fdc40 Memory management nad documentation fixes.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35584 72102866-910b-0410-8b05-ffd578937521
2012-09-21 10:27:05 +00:00
Richard Frith-MacDonald
a4140c8f51 Changes to restore sorting functiionality
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35579 72102866-910b-0410-8b05-ffd578937521
2012-09-20 09:32:00 +00:00
Niels Grewe
f8fd11f3fd Completely overhaul how we do sorting in -base. GSSorting.h now defines an
interface that can be used for all sorting tasks in the library. The actual sort
algorithms to use are now plugable. Timsort is the new default sorting
algorithm, the existing algorithms, shellsort and quicksort, can still be
selected using a configure switch.

Also implement the new NSComparator (blocks) based sorting and insertion index
searching methods for NSMutableArray and NSArray.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35573 72102866-910b-0410-8b05-ffd578937521
2012-09-19 13:31:09 +00:00
Gregory John Casamento
e26964a166 * Headers/Foundation/Foundation.h
* Headers/Foundation/NSScriptWhoseTests.h
	* Source/GNUmakefile
	* Source/NSObject+NSComparisonMethods.m: Move the
	comparison methods to the header for NSScriptWhoseTests.h,
	but don't define the abstract class since we don't support
	Apple script.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35570 72102866-910b-0410-8b05-ffd578937521
2012-09-17 16:05:06 +00:00
Richard Frith-MacDonald
4985cf3413 OSX compatibility tweaks inspiered by testplant
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35555 72102866-910b-0410-8b05-ffd578937521
2012-09-10 05:18:09 +00:00
Niels Grewe
ee4052bf6d Compatibility improvements for QNX.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35451 72102866-910b-0410-8b05-ffd578937521
2012-08-26 08:55:49 +00:00
Niels Grewe
868d8a6922 Add support for logging to the QNX slog via NSLog().
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35450 72102866-910b-0410-8b05-ffd578937521
2012-08-25 23:55:51 +00:00
David Chisnall
98d6f0baa3 Define macros to expose things in C headers that we need (e.g. INTPTR_MAX) that aren't exposed by default when compiling Objective-C++.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35433 72102866-910b-0410-8b05-ffd578937521
2012-08-20 15:51:30 +00:00
Niels Grewe
383d5ccec2 Changes to support clang's __attribute__((objc_root_class)).
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35412 72102866-910b-0410-8b05-ffd578937521
2012-08-16 12:31:16 +00:00
David Chisnall
c257d44725 Remove spurious commas in enums.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35308 72102866-910b-0410-8b05-ffd578937521
2012-07-20 12:39:35 +00:00
David Chisnall
e447a91b60 If the user is compiling with a compiler in native exceptions mode, and they are not specifying the exception model, assume that they want the ones that their compiler will use.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35307 72102866-910b-0410-8b05-ffd578937521
2012-07-20 12:39:13 +00:00
Richard Frith-MacDonald
186f17482a fix for bug #36824
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35283 72102866-910b-0410-8b05-ffd578937521
2012-07-11 04:51:42 +00:00
Richard Frith-MacDonald
224d210918 tweak comments
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35282 72102866-910b-0410-8b05-ffd578937521
2012-07-10 06:58:54 +00:00
Richard Frith-MacDonald
cd3225d8c9 fix for bug #36650
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35265 72102866-910b-0410-8b05-ffd578937521
2012-07-08 15:00:21 +00:00
David Chisnall
3cb1b08b26 Support for collection subscripting (NSArray and NSDictionary).
Yes, the syntax is ugly, but no doubt people will start using it in June...



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35033 72102866-910b-0410-8b05-ffd578937521
2012-04-06 12:23:10 +00:00
David Chisnall
b1449b2cba Ensure that the limits declarations that we use are actually exposed when compiling ObjC++.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35030 72102866-910b-0410-8b05-ffd578937521
2012-04-06 12:01:34 +00:00
Fred Kiefer
a490907e32 * Headers/Foundation/NSObject.h (-error:): Declare return type.
Patch by Benoît Garrigues <bgarrigues@gmail.com>


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35013 72102866-910b-0410-8b05-ffd578937521
2012-03-27 21:47:10 +00:00
Niels Grewe
fa47f6da10 Detect the presence of libdispatch and, if available, use it for collection
enumeration methods that take blocks as arguments. This allows us to implement
the NSEnumerationConcurrent option of those methods with minimal effort.

The searching methods on NSIndexSet and all the sorting methods are still
missing.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35010 72102866-910b-0410-8b05-ffd578937521
2012-03-27 17:05:19 +00:00
Richard Frith-MacDonald
cd57095d65 get code to compile/link again
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35004 72102866-910b-0410-8b05-ffd578937521
2012-03-27 10:03:40 +00:00
Niels Grewe
abb5a4dd3e Attempt to fix block definitions for blocks without arguments in GCC
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35003 72102866-910b-0410-8b05-ffd578937521
2012-03-27 09:30:12 +00:00
Niels Grewe
132de12a73 Add completion block support to NSOperation.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34996 72102866-910b-0410-8b05-ffd578937521
2012-03-26 14:47:07 +00:00
Richard Frith-MacDonald
c86e143298 tidy a little
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34981 72102866-910b-0410-8b05-ffd578937521
2012-03-22 20:58:27 +00:00
Niels Grewe
c6df5dc455 Implement a few blocks related enumeration methods on NSDictionary (with
unit tests).


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34965 72102866-910b-0410-8b05-ffd578937521
2012-03-20 20:17:45 +00:00
Richard Frith-MacDonald
548e2ae5da Fred says that his compiler treats #error differently ... tyr using double quotes to prevent problems.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34962 72102866-910b-0410-8b05-ffd578937521
2012-03-20 17:35:04 +00:00
Niels Grewe
0f6803451e Define NS_REQUIRES_NIL_TERMINATION macro.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34960 72102866-910b-0410-8b05-ffd578937521
2012-03-20 16:28:59 +00:00
Richard Frith-MacDonald
4f81bfd607 Attempt at more helpful error message.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34959 72102866-910b-0410-8b05-ffd578937521
2012-03-20 15:09:42 +00:00
Richard Frith-MacDonald
6908b4724d Use NSLog consistently for debug output
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34920 72102866-910b-0410-8b05-ffd578937521
2012-03-11 11:00:08 +00:00
Richard Frith-MacDonald
1a55779dd7 Apply patch by Jens Alfke with minor changes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34902 72102866-910b-0410-8b05-ffd578937521
2012-03-07 08:37:54 +00:00
Eric Wasylishen
89016e2e63 * Headers/Foundation/NSString.h (-compare:options:range:locale:):
Rename locale parameter from "dict" to "locale".
* Source/NSString.m (-compare:options:range:locale:): If locale
paramater is not nil and not an NSLocale instance, substitute
+[NSLocale currentLocale].
* Source/NSString.m: Clarify some locale related documentation.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34882 72102866-910b-0410-8b05-ffd578937521
2012-03-06 02:08:47 +00:00
Richard Frith-MacDonald
a207342ff5 add some comments
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34862 72102866-910b-0410-8b05-ffd578937521
2012-03-02 09:09:15 +00:00
Richard Frith-MacDonald
fc0a0e782f fixups for ICU changes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34858 72102866-910b-0410-8b05-ffd578937521
2012-03-02 07:31:47 +00:00
Eric Wasylishen
5393256ae6 * Source/NSString.m: Implement a codepath using ICU for
-compare:options:range:locale: and
-rangeOfString:options:range:locale: when a non-nil locale
is provided.
* Headers/Foundation/NSString.h (-compare:options:range:locale:):
Change type of locale parameter to id; it can be NSDictionary or
NSLocale.
* configure.ac: add some ICU headers used in NSString change
* configure: regenerate


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34856 72102866-910b-0410-8b05-ffd578937521
2012-03-02 06:53:16 +00:00
Richard Frith-MacDonald
26ffe755bb Apply fixes for a couple of bug reports.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34855 72102866-910b-0410-8b05-ffd578937521
2012-03-01 19:39:20 +00:00
Eric Wasylishen
4db79e6fef * Source/GSLocale.m:
- Deprecate GSSetLocale and GSSetLocaleC; they now do nothing
   but print a warning.
 - Introduce GSDefaultLanguageLocale(), which is a
   substitute for GSSetLocale(LC_MESSAGES, nil), which just returns the
   current setting of LC_MESSAGES.
* Source/NSObject.m (+initialize): Remove GSSetLocaleC call,
which was changing the libc locale.
* Source/NSUserDefaults.m: Use GSDefaultLanguageLocale() instead of
GSSetLocale(LC_MESSAGES, nil)


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34841 72102866-910b-0410-8b05-ffd578937521
2012-02-28 06:20:53 +00:00
Richard Frith-MacDonald
cd676ece36 moe consistent use of white space to match coding standard etc
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34809 72102866-910b-0410-8b05-ffd578937521
2012-02-23 17:57:50 +00:00
Richard Frith-MacDonald
e7d7505a8d Fixup version
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34721 72102866-910b-0410-8b05-ffd578937521
2012-02-04 13:33:03 +00:00
Richard Frith-MacDonald
e7edb88bde Comment about obsolete RETAIN/RELEASE/AUTORELEASE etc being deprecated
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34697 72102866-910b-0410-8b05-ffd578937521
2012-02-02 16:10:22 +00:00
Richard Frith-MacDonald
d3b4830a65 try to work round selinux restrictions on invocations
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34660 72102866-910b-0410-8b05-ffd578937521
2012-01-29 16:57:06 +00:00
David Chisnall
874875cc71 Tweak the exception mismatch handling so that if base is using native
exceptions and the user doesn't specify an exception mode then we just don't
define the NS_ macros, so code that uses @try etc. compiles without requiring
every cc line to specify a long -D flag just to be allowed to #import
Foundation.h.




git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34501 72102866-910b-0410-8b05-ffd578937521
2012-01-12 10:10:33 +00:00
Richard Frith-MacDonald
ff7ce0ea8e tweak for older compilers
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34495 72102866-910b-0410-8b05-ffd578937521
2012-01-11 13:29:46 +00:00
Richard Frith-MacDonald
ee93c60ae5 Remove duplicated methods
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34494 72102866-910b-0410-8b05-ffd578937521
2012-01-11 09:19:16 +00:00
Richard Frith-MacDonald
5e74b70bff Try to tidy/simplify objc2 header support.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34459 72102866-910b-0410-8b05-ffd578937521
2012-01-08 14:25:56 +00:00
Richard Frith-MacDonald
42f0192c2c Rewrite hierarchy handling to match OSX
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34441 72102866-910b-0410-8b05-ffd578937521
2012-01-06 12:22:30 +00:00
Richard Frith-MacDonald
997222976b Little tweak to ease debugging ... get compiler to know the class of the
_internal pointer and generate information so gdb can access the internal
cass without needing a cast.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34425 72102866-910b-0410-8b05-ffd578937521
2012-01-05 20:40:12 +00:00
Richard Frith-MacDonald
ded72b8e75 Fix NSXML ABI breakage
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34412 72102866-910b-0410-8b05-ffd578937521
2012-01-04 12:41:45 +00:00
Richard Frith-MacDonald
7b7faac752 Revert ABI breakage
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34410 72102866-910b-0410-8b05-ffd578937521
2012-01-04 09:20:32 +00:00
Fred Kiefer
cbf50c0e7e Comment out duplicate declaration of ivars to get base to compile again.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34409 72102866-910b-0410-8b05-ffd578937521
2012-01-04 08:29:56 +00:00
Gregory John Casamento
6cbe121535 * Headers/Foundation/NSXMLDocument.h
* Headers/Foundation/NSXMLElement.h
	* Headers/Foundation/NSXMLNode.h: Move declarations.
	* Source/NSXMLDocument.m: Correct parsing issues.
	* Source/NSXMLElement.m: Remove local declaration of _children
	* Source/NSXMLNode.m: Remove internal.  Move all declarations here
	directly.
	
2012-01-03 14:22-EST Gregory John Casamento <greg.casamento@gmail.com>



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34408 72102866-910b-0410-8b05-ffd578937521
2012-01-03 21:42:33 +00:00
Gregory John Casamento
c7088ba09c * Headers/Foundation/NSXMLElement.h
* Headers/Foundation/NSXMLNode.h
	* Source/NSXMLElement.m
	* Source/NSXMLNode.m: Move _URI to NSXMLNode.
	change dealloc accordingly.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34406 72102866-910b-0410-8b05-ffd578937521
2012-01-03 18:10:45 +00:00
Gregory John Casamento
15fee4d787 * Headers/Foundation/NSXMLNode.h: Add _stringValue
* Source/NSXMLNode.m: Change stringValue and setStringValue:
	resolvingEntities: to assign to _stringValue instead of _objectValue.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34404 72102866-910b-0410-8b05-ffd578937521
2012-01-03 17:23:44 +00:00
Gregory John Casamento
fa4435dec6 * Headers/Foundation/NSXMLElement.h: Change _attributes to be
a NSMutableDictionary instead of an NSMutableArray.
	* Source/NSXMLElement.m: Change implementation of some methods
	to use an NSMutableDictionary instead of arrays.  Initialize
	ivars in initializer.
	* Source/NSXMLPrivate.h: Remove redundant method.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34394 72102866-910b-0410-8b05-ffd578937521
2012-01-03 03:28:25 +00:00
Fred Kiefer
24d2c077d6 Remove duplicate declaration of ivar _name to get base to compile again.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34377 72102866-910b-0410-8b05-ffd578937521
2012-01-01 17:06:00 +00:00
Gregory John Casamento
7b7b2a6f9d First cut at NSXMLDocument changes.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34371 72102866-910b-0410-8b05-ffd578937521
2011-12-30 21:40:12 +00:00
Wolfgang Lux
3b65abba77 Implement NSTextCheckingResult -resultByAdjustingRangesWithOffset:
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34350 72102866-910b-0410-8b05-ffd578937521
2011-12-23 16:49:23 +00:00
Wolfgang Lux
4e79a89139 Various fixes in NSTextCheckingResult class.
Add copyright notice to header and implementation files.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34349 72102866-910b-0410-8b05-ffd578937521
2011-12-23 16:09:49 +00:00
Richard Frith-MacDonald
32fc733268 changes to support alternative header locations
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34290 72102866-910b-0410-8b05-ffd578937521
2011-12-15 09:42:39 +00:00
Richard Frith-MacDonald
016c110ec8 OSX compatibility tweaks ... NSNotFound defined as NSIntegerMax
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34289 72102866-910b-0410-8b05-ffd578937521
2011-12-15 09:09:59 +00:00
Eric Wasylishen
a54d3f2bdd * Source/NSFileManager.m:
* Headers/Foundation/NSFileManager.h: Add removeItemAtPath:error:
method, as a simple wrapper around removeFileAtPath:handler: with
no handler.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34251 72102866-910b-0410-8b05-ffd578937521
2011-12-06 06:21:33 +00:00
Richard Frith-MacDonald
430a7eea99 Rewrite to store defaults in multiple files (one per persistent domain).
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34201 72102866-910b-0410-8b05-ffd578937521
2011-11-21 11:24:26 +00:00
Fred Kiefer
8bbb8d2ade Make the new protocol optional for clang by protecting the definition
the same way as in NSNetServices.h


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34134 72102866-910b-0410-8b05-ffd578937521
2011-11-07 19:01:27 +00:00
Fred Kiefer
b39cd43a32 Turn the NSXMLParserDelegateEventAdditions informal protocol into the
protocol NSXMLParserDelegate.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34133 72102866-910b-0410-8b05-ffd578937521
2011-11-07 15:54:43 +00:00
Richard Frith-MacDonald
a59695c097 Implement optimisations suggested by Fred's vcachegrind profiling.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34093 72102866-910b-0410-8b05-ffd578937521
2011-10-31 08:12:26 +00:00
Richard Frith-MacDonald
704a39c91b fixes for gnutls detection and objc library detection
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34030 72102866-910b-0410-8b05-ffd578937521
2011-10-19 16:53:39 +00:00
Richard Frith-MacDonald
37f430d9d9 tidyup private api
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34029 72102866-910b-0410-8b05-ffd578937521
2011-10-19 15:25:38 +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
Quentin Mathe
32bdf04b26 Fixed NSXMLNode compilation when using the "pure" non-fragile ABI
(--disable-mixedabi was passed to Base configure).


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34013 72102866-910b-0410-8b05-ffd578937521
2011-10-17 10:24:07 +00:00
Richard Frith-MacDonald
aae4782eb3 Make the use of nil for a file URL path raise an invalid argument exception
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33939 72102866-910b-0410-8b05-ffd578937521
2011-10-04 05:40:29 +00:00
Richard Frith-MacDonald
afc6974925 Provisional IPv6 support added.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33933 72102866-910b-0410-8b05-ffd578937521
2011-10-03 16:03:19 +00:00
Richard Frith-MacDonald
cbf54ac301 Add a few OSX compatibility methods
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33929 72102866-910b-0410-8b05-ffd578937521
2011-10-02 11:17:49 +00:00
Eric Wasylishen
7d457ce4cc * Source/NSUserDefaults.m:
- Refactoring of the code to read the system language list
  into a separate function, systemLanguages().
- Add support for the LANGUAGE environment variable, a GNU extension.
  It holds a colon-separated list of locales, and is intended to let
  the user specify a list of their preferred languages in order.
  For example, the language settings GUI in Ubuntu modifies the
  LANGUAGE variable.

  More info here:
  http://www.gnu.org/software/gettext/manual/gettext.html#The-LANGUAGE-variable
- When populating NSLanguages, "expand" locales into a list of
  related variants, formed by stripping off region suffixes. This
  ensures that if a user's environment is set to a regional version
  of a language (say CanadaFrench) but an application is only
  traslated into French, the plain French translation will still be used.

  e.g. if the system locales are {fr_CA, en_CA}, expand the list to
  {fr_CA, fr, en_CA, en}.
* Headers/GNUstepBase/GSLocale.h:
* Source/GSLocale.m:
New functions GSLocaleVariants and GSLanguagesFromLocale


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33910 72102866-910b-0410-8b05-ffd578937521
2011-09-29 19:00:46 +00:00
Richard Frith-MacDonald
35e02db554 tweaks for apple compiler
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33790 72102866-910b-0410-8b05-ffd578937521
2011-08-26 11:15:35 +00:00
Riccardo Mottola
ff93804152 Additional cast to void* to keep OpenBSD compiler happy.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33757 72102866-910b-0410-8b05-ffd578937521
2011-08-16 22:14:36 +00:00
David Chisnall
4cdea64975 Make -base compile almost without warnings again. Fixes:
- Using the correct format specifier
- Remove substringFromRange: (GNUstep extension) from NSString.h and use the non-deprecated version in -base.
- Delete definitions of methods that are the same in both a class and a category on that class (NSArray and NSObject).

Two files still have warnings:

- The GNUTLS stuff is using a load of deprecated APIs.
- xmlparse.m replaces a method using a category.  This method seems to always return nil.  Not sure what it's meant to do, or why it isn't a delegate of some kind.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33756 72102866-910b-0410-8b05-ffd578937521
2011-08-16 16:04:43 +00:00
David Chisnall
92f5b363ed Remove a reference to a nonexistent header.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33699 72102866-910b-0410-8b05-ffd578937521
2011-08-07 08:24:59 +00:00
David Chisnall
fa6f119996 Clean up NSRegularExpression, so that it compiles without warnings with or without ICU, but we don't pretend that we support things that we don't and silently return nonsense results to make debugging difficult for GNUstep users.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33688 72102866-910b-0410-8b05-ffd578937521
2011-08-03 12:04:27 +00:00
Fred Kiefer
00c8832228 Remove some of the compiler warnings on system without clang or ICU.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33680 72102866-910b-0410-8b05-ffd578937521
2011-08-02 08:33:33 +00:00
David Chisnall
a5b1427e87 Add some out qualifiers to NSError** parameters, matching the OS X 10.7 API diffs. They seem to have missed a lot - this change should have been made on every NSError ** to stop ARC from using the complicated copy-and-writeback semantics, but only a small number of changes are documented. It's possible that this is just an error in the docs, so someone with 10.7 should check.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33668 72102866-910b-0410-8b05-ffd578937521
2011-07-31 19:12:01 +00:00
David Chisnall
dbe026608e Ooops, should have been -> const id[].
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33667 72102866-910b-0410-8b05-ffd578937521
2011-07-31 18:37:12 +00:00
David Chisnall
8713e21d91 More ARC fixups: id* -> const id* in NSSet
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33666 72102866-910b-0410-8b05-ffd578937521
2011-07-31 18:34:40 +00:00
David Chisnall
aafdf366ea Remove the duplicate definition of the NSObject protocol methods in the
NSObject class (redundant since they are implicitly added by the class adopting
the protocol, and stupid because there was already one copy-and-paste error
where they differed slightly).  Also replaced all of the references to
nonexistent documentation with actual documentation.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33662 72102866-910b-0410-8b05-ffd578937521
2011-07-31 16:19:21 +00:00
David Chisnall
b85364de7e Cleanup:
- (void)release;
to
- (oneway void)release;
so everything implementing -release actually implements the one declared in the NSObject protocol.

Start marking things that are unavailable in ARC mode as unavailable in ARC mode.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33660 72102866-910b-0410-8b05-ffd578937521
2011-07-31 15:31:39 +00:00
David Chisnall
12745b6fde Don't export functions that use id if we're not in Objective-C mode. I'm not entirely sure what this gs_consume stuff does, since it's not documented, but it looks a lot like it might be nonsense - it's almost certainly broken in ARC mode, where this static inline function will be emitted as objc_release() and will free the object.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33652 72102866-910b-0410-8b05-ffd578937521
2011-07-27 18:03:22 +00:00
Quentin Mathe
9cb22639d9 Fixed missing oneway qualifier on -release return type.
Recent Clang trunk versions complain about it.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33634 72102866-910b-0410-8b05-ffd578937521
2011-07-26 10:47:16 +00:00
David Chisnall
c1cca9a336 Added NSJSONSerialization (10.7) implementation. The code path reading from an NSInputStream is not well tested - please try and break it!
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33631 72102866-910b-0410-8b05-ffd578937521
2011-07-25 15:50:51 +00:00
Fred Kiefer
716586a5cc Fix small bug introduced when switching to Macros.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33627 72102866-910b-0410-8b05-ffd578937521
2011-07-25 10:58:38 +00:00
Fred Kiefer
254aa22792 Try to clean up after last commit.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33625 72102866-910b-0410-8b05-ffd578937521
2011-07-24 20:47:36 +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
David Chisnall
bc37adfb0c Add support (and test) for weak keys and values in NSMapTable. This support should work in GC mode. It also works if the runtime supports ARC, even if the compiler does not use this support.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33617 72102866-910b-0410-8b05-ffd578937521
2011-07-23 16:16:01 +00:00
David Chisnall
3e3d12b661 Added read / write barrier support to GSIMap.h. These define macros for reading and writing keys and writing values.
These are currently unused - the next commit will make NSMapTable use them.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33612 72102866-910b-0410-8b05-ffd578937521
2011-07-23 13:14:20 +00:00
David Chisnall
d323a291d8 Change id* -> id[] for OS X 10.7 compatibility in NSArray. This change is required for ARC: now, id* means pointer to a single object, id[] means array.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33607 72102866-910b-0410-8b05-ffd578937521
2011-07-22 16:07:23 +00:00
David Chisnall
d9fda65728 Added NSRegularExpressionSearch (10.7) support to NSString.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33600 72102866-910b-0410-8b05-ffd578937521
2011-07-21 13:17:27 +00:00
Richard Frith-MacDonald
4a5cb96bef For the avoidance of confusion, remove references to obsolete header.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33562 72102866-910b-0410-8b05-ffd578937521
2011-07-15 13:53:45 +00:00
Richard Frith-MacDonald
497cb2af93 ssh handshake improvements and consmetic tweaks
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33535 72102866-910b-0410-8b05-ffd578937521
2011-07-12 11:40:15 +00:00
Fred Kiefer
c0fac74ded * Headers/GNUstepBase/GNUstep.h: Define the __has_feature macro,
as this file may be used without preface.h being included first.
Fixes bug #33708. Patch by Tim Kack <timkack@gmail.com>.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33461 72102866-910b-0410-8b05-ffd578937521
2011-07-05 08:20:10 +00:00
David Chisnall
56a002dae7 Rewrote NSProxy's -retain / -release to be the same as NSObject, not its own ad-hoc thing.
Added declaration of __bridge for use in non-ARC mode.

Tweaked arrayWithObjects:count: to take a const id* parameter, to avoid ARC
treating it as a write-back parameter.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33425 72102866-910b-0410-8b05-ffd578937521
2011-06-30 14:44:58 +00:00
David Chisnall
9d06beffdd ASSIGN() / RETAIN() and so on macros break the ARC migration tool (it won't rewrite expressions in macros from external headers), so just make them expand to the same thing in ARC mode as in GC mode.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33413 72102866-910b-0410-8b05-ffd578937521
2011-06-29 15:29:40 +00:00
David Chisnall
276046a76c More ARC fixes. We don't want to be using __strong void* in ARC mode (it only makes sense in GC mode and is invalid in ARC mode).
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33411 72102866-910b-0410-8b05-ffd578937521
2011-06-29 15:21:02 +00:00
David Chisnall
3f4dc9a72b ARC-compatibility tweaks in the headers. ARC will not track objects inside structures and rejects code that uses object types that are not __unsafe_unretained qualified inside structures.
This quick fix just added this type qualifier on all such structures.  Several of these should probably not be in headers at all.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33403 72102866-910b-0410-8b05-ffd578937521
2011-06-29 11:50:26 +00:00
Richard Frith-MacDonald
861d46e8db remove non-portable includes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33391 72102866-910b-0410-8b05-ffd578937521
2011-06-27 06:04:47 +00:00
Fred Kiefer
dbd9d19e8f Add a few 10.6 NSURL methods to NSBundle.
Based on patch by julian.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33367 72102866-910b-0410-8b05-ffd578937521
2011-06-22 23:01:01 +00:00
Richard Frith-MacDonald
bbc480f958 patch by Sebastian
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33359 72102866-910b-0410-8b05-ffd578937521
2011-06-20 12:46:42 +00:00
Richard Frith-MacDonald
e84d049078 Add some flexibility
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33355 72102866-910b-0410-8b05-ffd578937521
2011-06-20 07:33:27 +00:00
Richard Frith-MacDonald
523366101e more leak cleanup stuff
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33349 72102866-910b-0410-8b05-ffd578937521
2011-06-19 13:34:17 +00:00
Richard Frith-MacDonald
9831216043 Start stuff for handling cleanup on process exit.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33344 72102866-910b-0410-8b05-ffd578937521
2011-06-19 09:26:03 +00:00
Richard Frith-MacDonald
c1d5647bb6 10.6 sompatibility (some)
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33337 72102866-910b-0410-8b05-ffd578937521
2011-06-18 07:09:28 +00:00
Richard Frith-MacDonald
9212d01480 Fix xml parse error
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33327 72102866-910b-0410-8b05-ffd578937521
2011-06-17 13:47:24 +00:00
Richard Frith-MacDonald
3ea06f1379 Add some requests 10.6 methods ... untested.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33326 72102866-910b-0410-8b05-ffd578937521
2011-06-17 11:45:28 +00:00
Fred Kiefer
586d1786f9 Add [NSURL -checkResourceIsReachableAndReturnError:].
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33245 72102866-910b-0410-8b05-ffd578937521
2011-06-04 15:08:37 +00:00
Richard Frith-MacDonald
8ccabb5ee6 apply Wolfgangs fix
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33238 72102866-910b-0410-8b05-ffd578937521
2011-06-03 06:02:18 +00:00
Richard Frith-MacDonald
20cde83f84 improve documentation
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33221 72102866-910b-0410-8b05-ffd578937521
2011-06-01 14:45:52 +00:00
Richard Frith-MacDonald
a69b7c2466 always create autorelease pools for mixed GC mode support
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33212 72102866-910b-0410-8b05-ffd578937521
2011-05-31 07:55:06 +00:00
Richard Frith-MacDonald
ba24ce0841 minor map/hash table compatibility tweaks and simplify notification center
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33210 72102866-910b-0410-8b05-ffd578937521
2011-05-31 06:46:17 +00:00
David Chisnall
668081efb2 Use correct test macro for __weak.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33162 72102866-910b-0410-8b05-ffd578937521
2011-05-27 23:36:28 +00:00
Niels Grewe
410ab087fa Attempt to detect the flags needed to enable compiler intrinsics for atomic
operations.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33134 72102866-910b-0410-8b05-ffd578937521
2011-05-26 18:37:58 +00:00
David Chisnall
de2fd8df6e More GC fixes. Most notably, mark the thread object as not collectable, since it's hidden away in TLS where the GC can't find it.
GC now works well enough for LanguageKit to run.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33123 72102866-910b-0410-8b05-ffd578937521
2011-05-26 13:24:13 +00:00
David Chisnall
b08b2d0f34 More tweaks for garbage collection mode, including making NSNotificationCenter use weak pointers (things are never removed if it uses strong pointers because they remove themselves in the -dealloc method, which is never called, and can't remove themselves in the -finalize method because the -finalize method would not be called until after they have been removed - this is consistent with Apple behaviour).
Gorm now works correctly when built with GC enabled.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33109 72102866-910b-0410-8b05-ffd578937521
2011-05-25 11:15:08 +00:00
Eric Wasylishen
8a890d9926 * Headers/Foundation/NSObjCRuntime.h: Add CGFLOAT_MIN and CGFLOAT_MAX
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32929 72102866-910b-0410-8b05-ffd578937521
2011-04-26 23:43:05 +00:00
David Chisnall
5d5b46a135 Added NSInteger range constants (OS X compat).
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32918 72102866-910b-0410-8b05-ffd578937521
2011-04-21 11:06:18 +00:00
Richard Frith-MacDonald
9f32aeb525 remove unused directory and obsolete comments
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32795 72102866-910b-0410-8b05-ffd578937521
2011-04-07 07:32:00 +00:00
Richard Frith-MacDonald
7aee0158bc Cleanup and fix to build additipns library on apple systems.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32737 72102866-910b-0410-8b05-ffd578937521
2011-03-29 11:18:10 +00:00
Richard Frith-MacDonald
c0979f8d17 64bit safety fixes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32731 72102866-910b-0410-8b05-ffd578937521
2011-03-29 08:16:02 +00:00
Riccardo Mottola
6b6b3d8e56 Remove forward protocol declarations as they break gcc 2.95.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32718 72102866-910b-0410-8b05-ffd578937521
2011-03-28 10:56:02 +00:00
Stefan Bidigaray
c84d67c662 Added untest implementation of -getObjectValue:forString:range:error:. This method should will be used to implement -getObjectValue:forString:errorDescription:.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32586 72102866-910b-0410-8b05-ffd578937521
2011-03-14 22:41:53 +00:00
Richard Frith-MacDonald
09bd40334c simplify header layout
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32545 72102866-910b-0410-8b05-ffd578937521
2011-03-13 12:52:37 +00:00
Richard Frith-MacDonald
46cf25ebed add config check for blocks
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32539 72102866-910b-0410-8b05-ffd578937521
2011-03-13 08:20:17 +00:00
Richard Frith-MacDonald
4f9574fc5d add missing headers etc
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32531 72102866-910b-0410-8b05-ffd578937521
2011-03-11 08:14:04 +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
b918c226f7 minor cleanup for static analyser
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32514 72102866-910b-0410-8b05-ffd578937521
2011-03-09 10:53:25 +00:00
Richard Frith-MacDonald
74eac99280 add last night's changes based on static analyser results.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32507 72102866-910b-0410-8b05-ffd578937521
2011-03-09 10:24:18 +00:00
Richard Frith-MacDonald
6bdce1cf05 mingw tweak
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32488 72102866-910b-0410-8b05-ffd578937521
2011-03-07 15:47:07 +00:00
Richard Frith-MacDonald
542df716ec get return address better on sparc etc.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32476 72102866-910b-0410-8b05-ffd578937521
2011-03-06 14:23:57 +00:00
Richard Frith-MacDonald
98c91159d9 return address tweak
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32471 72102866-910b-0410-8b05-ffd578937521
2011-03-06 10:09:37 +00:00
Richard Frith-MacDonald
d084034e84 tweaks
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32465 72102866-910b-0410-8b05-ffd578937521
2011-03-05 18:12:55 +00:00
Richard Frith-MacDonald
76e7141e1b rudimentary implementation fo two new methods
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32463 72102866-910b-0410-8b05-ffd578937521
2011-03-05 17:17:57 +00:00
Richard Frith-MacDonald
f8989f9ba3 add block enumeration
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32459 72102866-910b-0410-8b05-ffd578937521
2011-03-05 15:01:35 +00:00
Richard Frith-MacDonald
83052c50ee tweak for mswindows
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32458 72102866-910b-0410-8b05-ffd578937521
2011-03-05 14:47:58 +00:00
Richard Frith-MacDonald
03233198f7 Warn about using an unsafe +initialize
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32455 72102866-910b-0410-8b05-ffd578937521
2011-03-05 13:11:47 +00:00
Niels Grewe
821962705e Declare a protocol for GNUstep specific delegate methods in NSNetServices.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32426 72102866-910b-0410-8b05-ffd578937521
2011-03-01 10:52:21 +00:00
Richard Frith-MacDonald
074bf7a853 add code for other runtimes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32413 72102866-910b-0410-8b05-ffd578937521
2011-02-28 16:00:21 +00:00
Richard Frith-MacDonald
5dedb38f10 improve deprecation logging
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32404 72102866-910b-0410-8b05-ffd578937521
2011-02-28 12:01:36 +00:00
Richard Frith-MacDonald
05e186ac65 fix gc heade rlocation.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32388 72102866-910b-0410-8b05-ffd578937521
2011-02-27 17:53:14 +00:00
Richard Frith-MacDonald
7a55300d6b cleanup for next reelease
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32385 72102866-910b-0410-8b05-ffd578937521
2011-02-27 09:08:59 +00:00
Richard Frith-MacDonald
59d4be1265 OSX compat tweaks
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32323 72102866-910b-0410-8b05-ffd578937521
2011-02-23 11:52:17 +00:00
Richard Frith-MacDonald
f756c612ca use 10.0 behavior if we have no ICU
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32260 72102866-910b-0410-8b05-ffd578937521
2011-02-21 12:36:18 +00:00
Richard Frith-MacDonald
61bc059d4a Cleanup ... avoid accessing the 'isa' variable directly.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32247 72102866-910b-0410-8b05-ffd578937521
2011-02-20 16:21:43 +00:00
Richard Frith-MacDonald
e262860ab4 documentation tweaks
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32196 72102866-910b-0410-8b05-ffd578937521
2011-02-16 16:51:42 +00:00
Richard Frith-MacDonald
b96b154e5e Add David's generalisation of _()
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32184 72102866-910b-0410-8b05-ffd578937521
2011-02-16 06:26:14 +00:00
Richard Frith-MacDonald
d07f49a9b6 more work on reserved/private pointer use
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32182 72102866-910b-0410-8b05-ffd578937521
2011-02-16 05:49:45 +00:00
Stefan Bidigaray
8acf2cf573 Moved new NSDateFormatter ivars to a struct in _reserved. Use unum_clone() to copy formatter in NSDateFormatter.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32172 72102866-910b-0410-8b05-ffd578937521
2011-02-15 00:49:48 +00:00
Richard Frith-MacDonald
7fa110e2c5 documentation fixes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32157 72102866-910b-0410-8b05-ffd578937521
2011-02-14 10:57:57 +00:00
Richard Frith-MacDonald
08dc11a192 Decrease chance of ABI breakage.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32156 72102866-910b-0410-8b05-ffd578937521
2011-02-14 06:37:45 +00:00
Stefan Bidigaray
51b232577e Moved 10.4+ implementation to a subclass of NSNumberFormatter.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32155 72102866-910b-0410-8b05-ffd578937521
2011-02-13 22:13:04 +00:00
Richard Frith-MacDonald
4a099cd60a Partially revert poorly thoght out code
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32127 72102866-910b-0410-8b05-ffd578937521
2011-02-13 06:43:22 +00:00
Richard Frith-MacDonald
0592b48e55 Raise when attempting to use unimplemented classes. Check for null pointers
in more runtime functions (probably still many cases where we crash if null
pointers are passed to the API and Apple behave more tolrantly).


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32124 72102866-910b-0410-8b05-ffd578937521
2011-02-13 06:31:05 +00:00
Richard Frith-MacDonald
d060289f36 Annotate uniquing for static analyzer
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32095 72102866-910b-0410-8b05-ffd578937521
2011-02-12 10:29:11 +00:00
Richard Frith-MacDonald
78009cfe59 fix typo
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32094 72102866-910b-0410-8b05-ffd578937521
2011-02-12 09:02:37 +00:00
Richard Frith-MacDonald
7047f9e6d4 more changes to avoid leak warnings
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32093 72102866-910b-0410-8b05-ffd578937521
2011-02-12 09:00:18 +00:00
David Chisnall
9e6401bbdf Annotate the exception-throwing methods in NSObject Additions as not returning.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32076 72102866-910b-0410-8b05-ffd578937521
2011-02-11 14:38:09 +00:00
David Chisnall
068624b659 Added some macros for use with the static analyser. Turned _reserved ivar in GSSpellServer into GS_PADDING_IVAR (no change to class layout).
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32036 72102866-910b-0410-8b05-ffd578937521
2011-02-10 12:15:09 +00:00
David Chisnall
c7c3c7c02e Add a GS_PADDING_IVAR macro. This defines the void *gs_unused; instance variable with __attribute__((unused)) on clang so that the static analyser only reports unused ivars that we expect to be used. This also makes it slightly easier to add the padding ivar to new classes.
Note: The padding ivar has been added to NSRegularExpression.  This will break the ABI for anyone subclassing NSRegularExpression, but hopefully that's no one (done before the next release, to make sure that we don't break the ABI between releases, only for people following -trunk).



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32033 72102866-910b-0410-8b05-ffd578937521
2011-02-10 11:02:50 +00:00
Stefan Bidigaray
021d3680d7 Implemented [NSTimeZone-daylightSavingTimeOffsetForDate:].
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32027 72102866-910b-0410-8b05-ffd578937521
2011-02-10 03:58:02 +00:00
Stefan Bidigaray
ac4a764b44 Fix broken method in NSDateFormatter class.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32023 72102866-910b-0410-8b05-ffd578937521
2011-02-10 01:52:16 +00:00
David Chisnall
a0b3425130 Don't use C++ keywords as identifiers in headers that might be included in ObjC++ programs.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32021 72102866-910b-0410-8b05-ffd578937521
2011-02-09 13:11:42 +00:00
Richard Frith-MacDonald
85139364d2 get mdns code to compile
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31995 72102866-910b-0410-8b05-ffd578937521
2011-02-03 08:17:07 +00:00
Richard Frith-MacDonald
1c3cad8be8 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
Stefan Bidigaray
b06267a94f Update autoupdatingCurrentLocale whenever the Locale default changes. The -currentLocale method now also checks Locale default.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31972 72102866-910b-0410-8b05-ffd578937521
2011-01-29 15:33:27 +00:00
Stefan Bidigaray
a33c9a2da0 Finished calendar code.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31937 72102866-910b-0410-8b05-ffd578937521
2011-01-23 23:22:10 +00:00
Stefan Bidigaray
243296f6b4 Compile fix.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31935 72102866-910b-0410-8b05-ffd578937521
2011-01-23 18:25:56 +00:00
Stefan Bidigaray
76a29d3b14 Fix minor definition issue.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31927 72102866-910b-0410-8b05-ffd578937521
2011-01-23 04:54:30 +00:00
Stefan Bidigaray
cf6824ca66 Started implementing new NSDateFormatter methods.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31926 72102866-910b-0410-8b05-ffd578937521
2011-01-23 04:46:14 +00:00
Stefan Bidigaray
47547a0261 Fixed messed up NSDateFormatter definitions. Not sure how I managed to mess it up.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31925 72102866-910b-0410-8b05-ffd578937521
2011-01-22 23:26:17 +00:00
Stefan Bidigaray
55ac350d39 Stub for 10.4 and above methods.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31924 72102866-910b-0410-8b05-ffd578937521
2011-01-22 20:36:44 +00:00
Richard Frith-MacDonald
01b431530e improve comment slightly
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31882 72102866-910b-0410-8b05-ffd578937521
2011-01-12 09:18:38 +00:00
Richard Frith-MacDonald
15fd754bf2 Fixes to get base to compile again
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31865 72102866-910b-0410-8b05-ffd578937521
2011-01-10 08:55:47 +00:00
Stefan Bidigaray
d3857cd49f Implemented a few NSNumberFormatter methods.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31862 72102866-910b-0410-8b05-ffd578937521
2011-01-09 20:18:51 +00:00
Stefan Bidigaray
8af60212d5 Added stub for 10.4+ NSNumberFormatter methods.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31858 72102866-910b-0410-8b05-ffd578937521
2011-01-08 18:05:42 +00:00
Stefan Bidigaray
03c2eaaedb Added copying and coding to NSCalendar. Fixed a few things in NSLocale.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31822 72102866-910b-0410-8b05-ffd578937521
2011-01-02 03:47:29 +00:00
Stefan Bidigaray
797780c433 Minor fixes to NSCalendar and NSLocale. Also implemented NSCalendar's +currentCalendar.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31819 72102866-910b-0410-8b05-ffd578937521
2011-01-01 22:20:16 +00:00
Stefan Bidigaray
d18e4eb8ed Implemented -dateByAddingComponents:toDate:options: and -dateFromComponents:.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31812 72102866-910b-0410-8b05-ffd578937521
2010-12-31 22:22:10 +00:00
Stefan Bidigaray
1670598602 Forgot to save previous changes to NSCalendar.h. It should now compile correctly.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31811 72102866-910b-0410-8b05-ffd578937521
2010-12-31 18:30:30 +00:00
Stefan Bidigaray
fe41357041 Added iOS 4.0 and later methods to NSDateComponents. These methods will probably show up in OS X 10.7 and are easy enough to add now.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31810 72102866-910b-0410-8b05-ffd578937521
2010-12-31 18:13:39 +00:00
David Chisnall
69c04b8ab7 Made format_arg attribute require clang (apparently it doesn't work with GCC, in spite of being listed in the GCC manual - possibly it only works with C functions). If it works with GCC 4.6, the #ifdef should be changed.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31808 72102866-910b-0410-8b05-ffd578937521
2010-12-31 16:45:05 +00:00
David Chisnall
26cca7b21a Add __attribute__ ((format_arg)) to [NSBundle -localizedStringForKey:value:table:]. This informs the compiler that the output can be used anywhere that the first argument can be used, and should silence all of the non-constant format string warnings that we get anywhere that _(@"foo") or similar is used.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31804 72102866-910b-0410-8b05-ffd578937521
2010-12-31 14:03:45 +00:00
David Chisnall
62087337b0 Don't use template as a symbol name in a header, because this breaks ObjC++.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31803 72102866-910b-0410-8b05-ffd578937521
2010-12-31 13:58:27 +00:00
Quentin Mathe
dfa04d7fb9 Added -stringByReplacingCharactersInRange:withString: (Mac OS 10.5 method)
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31776 72102866-910b-0410-8b05-ffd578937521
2010-12-25 19:31:05 +00:00
Nicola Pero
433cba01d1 Fixed undeclared class in header
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31774 72102866-910b-0410-8b05-ffd578937521
2010-12-24 18:34:16 +00:00
Nicola Pero
30f098f9f8 Updated code to compile with GCC 4.6 and the new GNU Objective-C runtime
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31765 72102866-910b-0410-8b05-ffd578937521
2010-12-23 02:23:05 +00:00
Nicola Pero
49e56309be Updated headers to use the new Objective-C runtime API when using the new GNU Objective-C Runtime from GCC 4.6
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31763 72102866-910b-0410-8b05-ffd578937521
2010-12-23 00:06:36 +00:00
Nicola Pero
90bc2ff63a Removed unused check (and definition of) objc_thread_add
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31761 72102866-910b-0410-8b05-ffd578937521
2010-12-22 23:36:11 +00:00
Adam Fedor
4f7b8c2089 * Headers/Foundation/NSCalendar.h: Add NSCopying protocol
* Source/NSCalendar.m: Retain ivar. Add copyWithZone:
	* Source/NSURL.m (-resourceSpecifier): Separate behavior for
	file scheme vs other schemes.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31757 72102866-910b-0410-8b05-ffd578937521
2010-12-22 18:10:33 +00:00
Richard Frith-MacDonald
62de5b485f mostly fixups for ICU
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31742 72102866-910b-0410-8b05-ffd578937521
2010-12-16 10:09:43 +00:00
Stefan Bidigaray
c4fdcb6d93 Started working on NSCalendar. I have done very limited testing and would really appreciate if people could start testing the code here.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31741 72102866-910b-0410-8b05-ffd578937521
2010-12-16 02:57:31 +00:00
Stefan Bidigaray
1b50ad217a Added locale keyword handling in -componentsFromLocaleIdentifier: and made a few minor modifications to NSLocale. Also included changelog entry for last commit.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31740 72102866-910b-0410-8b05-ffd578937521
2010-12-16 02:15:27 +00:00
Stefan Bidigaray
50a82a2281 Forgot to regenerate configure and update config.h.in.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31739 72102866-910b-0410-8b05-ffd578937521
2010-12-16 02:10:38 +00:00
Stefan Bidigaray
5db47c44eb Add new, completely empty and useless NSCalendar class.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31735 72102866-910b-0410-8b05-ffd578937521
2010-12-15 00:04:51 +00:00
Stefan Bidigaray
174ab7cde4 Implemented more NSLocale functionality.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31728 72102866-910b-0410-8b05-ffd578937521
2010-12-13 03:37:35 +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
76b2adf16f cleanup foundation includes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31682 72102866-910b-0410-8b05-ffd578937521
2010-11-28 09:30:05 +00:00
David Chisnall
26561714f2 Reverted accidental include of uncommitted file.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31646 72102866-910b-0410-8b05-ffd578937521
2010-11-23 13:21:43 +00:00
David Chisnall
00095bc74c Undid accidental commit.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31645 72102866-910b-0410-8b05-ffd578937521
2010-11-23 13:20:34 +00:00
David Chisnall
e933a5dfee Added ChangeLog entry from last commit
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31644 72102866-910b-0410-8b05-ffd578937521
2010-11-23 13:16:53 +00:00
David Chisnall
089a23235a Revert accidental commit.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31638 72102866-910b-0410-8b05-ffd578937521
2010-11-20 17:04:41 +00:00
David Chisnall
a5335c34fb Added implementation of NSRegularExpression, from iOS 4 Foundation.
This class is a thin wrapper around libicu regular expressions, so if we don't
have libicu we simply don't compile it at all.  This will give people a linker
failure, rather than a nonfunctional class if they try to use GNUstep without
ICU with code that requires it.

The Apple documentation says that this class has a primitive method that takes
a block as an argument and that this method is called by others, so subclasses
can replace that block method without touching the convenience methods.  We
mimic this behaviour when compiling with block, but when compiling without them
it's a problem.  The current code contains some ugly hacks that will work in
normal usage but break with subclassing when not compiling with blocks.

This commit also includes a partial implementation of NSTextCheckingResult,
implementing the subset of its functionality required for NSRegularExpression
to work.

It also includes numerous fixes to GSICUString.  This is heavily used by
NSRegularExpression, to avoid copying strings when mapping between UText for
libicu and NSString for GNUstep.


Note: I don't have a copy of iOS anywhere to test this against, so it's
entirely possible that there are significant discrepancies between this
implementation of NSRegularExpression and the iOS version.  This version should
function exactly as the iOS one is described as functioning, but I think we've
all seen that Apple documentation refers more to hopes than facts.  Any testing
that someone who does have an ip{hone,od,ad} can do is very welcome.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31635 72102866-910b-0410-8b05-ffd578937521
2010-11-19 22:06:18 +00:00
Eric Wasylishen
a0f083736c NSPredicate MATCHES and LIKE implementation
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31616 72102866-910b-0410-8b05-ffd578937521
2010-11-17 21:46:31 +00:00
David Chisnall
a0e6eafd31 Add NSLocale.h to the correct Foundation.h (why do we have two?).
Note: I'm fairly sure that all of the #import lines in Foundation.h are wrong; we should be using "foo.h" instead of <Foundation/foo.h>, or we will pick up the installed version when including this file while building GNUstep.  I don't want to make this change in case it is intentional to work around some broken ObjC compiler somewhere though...



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31595 72102866-910b-0410-8b05-ffd578937521
2010-11-07 15:53:30 +00:00
David Chisnall
e523978a5d Make NSNetServices use formal protocol, as in 10.6. When compiling with clang, use @optional, otherwise fall back to defining an empty protocol and defining an informal protocol with the methods.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31594 72102866-910b-0410-8b05-ffd578937521
2010-11-07 15:43:46 +00:00
David Chisnall
a3d6bd2eab Expose 10.6-compatible interface for per-thread assertion handlers.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31593 72102866-910b-0410-8b05-ffd578937521
2010-11-07 15:37:19 +00:00
David Chisnall
59ee016e3e Add NSLocale.h to Foundation.h
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31592 72102866-910b-0410-8b05-ffd578937521
2010-11-07 15:36:23 +00:00
David Chisnall
de820d8151 Added defines for __weak and __strong.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31591 72102866-910b-0410-8b05-ffd578937521
2010-11-07 14:48:21 +00:00
Richard Frith-MacDonald
895a0f38ff add delivery notification requests and fix memory leak.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31571 72102866-910b-0410-8b05-ffd578937521
2010-10-28 22:50:38 +00:00
David Chisnall
b7ad06e540 Define clang's feature-test macros if they are not defined, so we can use them
without copying the fall-back version into every file where it might be needed.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31568 72102866-910b-0410-8b05-ffd578937521
2010-10-27 14:50:21 +00:00
Richard Frith-MacDonald
b7f4faa90b Fix setup of HAVE_ICU
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31567 72102866-910b-0410-8b05-ffd578937521
2010-10-27 11:24:44 +00:00
David Chisnall
d01fbf4669 Include C standard headers unless explicitly excluded.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31561 72102866-910b-0410-8b05-ffd578937521
2010-10-25 14:40:32 +00:00
Quentin Mathe
8500f58da7 Added standard C headers included by CoreFoundation.h to preface.h.in
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31379 72102866-910b-0410-8b05-ffd578937521
2010-09-19 19:28:17 +00:00
Richard Frith-MacDonald
5b1fdea392 fix declaration
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31322 72102866-910b-0410-8b05-ffd578937521
2010-09-10 21:16:20 +00:00
Richard Frith-MacDonald
faa2feed90 avoid documentation warning
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31296 72102866-910b-0410-8b05-ffd578937521
2010-09-10 13:20:06 +00:00
Adam Fedor
30d632b4c6 * configure.ac: Check for dladdr without requiring -ldl
* configure, Headers/Additions/GNUstepBase/config.h.in: Regen


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31272 72102866-910b-0410-8b05-ffd578937521
2010-09-09 19:31:04 +00:00
David Chisnall
4488708e84 Fix a load of warnings from implicit function declarations. A lot were caused by ctype.h and string.h stuff being used everywhere in GNUstep but not included anywhere - they're now included in common.h (at least string.h should also be in Foundation.h - on OS X it is implicitly included via some chain of things from Foundation.h).
All of the sel_* stuff is now replaced with the newer APIs.  As a side-effect, a blob of code that was copied-and-pasted all over GNUstep has now been moved into ObjectiveC2 and just called.

Class posing with libobjc2 will now throw an exception, rather than just aborting.  



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31268 72102866-910b-0410-8b05-ffd578937521
2010-09-09 16:30:10 +00:00
David Chisnall
7a80adeb9b A huge blob of changes to make -base build with libobjc2, without using the old libobjc2 headers.
Most of these changes involve simply removing direct manipulation of any runtime structures and replacing them with runtime function calls.  For example class->name becomes class_getName(class) and so on.

libobjc2, like the Apple runtime, the NeXT runtime, and every version of the Objective-C spec, calls the class pointer in id isa.  A few files now have #define class_pointer isa at the top.  This line replaces class_pointer in the old GNU libobjc headers with isa so either class_pointer or isa can be used for accessing the class of an object.  Note: object_getClass() should be used in most cases because, in some future version of the runtime, this will skip things like lock classes and other hidden classes (e.g. KVO classes).

All of the old forwarding stuff has been removed.  Most of this stuff followed convoluted code paths that ended with an exception.  A few simply broke in exciting ways.  Hopefully no one has used them for the last ten years or so, but we can bring them back with some #ifndef stuff if they're really needed by anyone.

There is currently a bug in configure, which prevents dladdr() from being detected, so you need to manually tweak config.h to build - I have not fixed the fall-back code in objc-load.m to work with libobjc2, I just added a new version that uses the loader's functionality directly.  

Although -base now builds, it builds with a lot of warnings.  <string.h> is missing from a lot of files, so memcpy() and strlen() generate implicit function declaration warnings.  

Additionally, libobjc2 does still provide the sel_{get,register}_*() functions, but they're wrappers around the newer API ones.  These are deprecated and are not exposed in the headers.  Although they work, we should be replacing them with the libobjc2 versions as soon as possible.

This incorporates a patch by Eric.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31265 72102866-910b-0410-8b05-ffd578937521
2010-09-09 15:06:09 +00:00
Eric Wasylishen
345563c947 * Source/ObjectiveC2/runtime.h:
* Source/ObjectiveC2/runtime.m:
Implement protocol_copyMethodDescriptionList, protocol_copyProtocolList,
protocol_getMethodDescription, as well as a dummy version of
objc_copyProtocolList.
* Headers/Additions/GNUstepBase/GSObjCRuntime.h:
* Source/Additions/GSObjCRuntime.m:
Implement a convenience method, GSProtocolGetMethodDescriptionRecursive



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31254 72102866-910b-0410-8b05-ffd578937521
2010-09-08 20:30:19 +00:00
Richard Frith-MacDonald
3564932935 remove obsolete typed stream inclusion
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31248 72102866-910b-0410-8b05-ffd578937521
2010-09-08 09:00:15 +00:00
Eric Wasylishen
8211043308 * Headers/Additions/GNUstepBase/preface.h.in: Remove include of
objc/sarray.h



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31245 72102866-910b-0410-8b05-ffd578937521
2010-09-07 19:31:03 +00:00
Richard Frith-MacDonald
fd458700cb simplify last change
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31187 72102866-910b-0410-8b05-ffd578937521
2010-08-19 21:08:37 +00:00
Richard Frith-MacDonald
9390c9ae42 Guess at fix for bug #30766
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31186 72102866-910b-0410-8b05-ffd578937521
2010-08-19 21:02:29 +00:00
Eric Wasylishen
a17d3b1466 Fix typo (GSAPI_LAST -> GS_API_LATEST)
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31139 72102866-910b-0410-8b05-ffd578937521
2010-08-14 01:00:49 +00:00
Niels Grewe
4848c265e9 Make NSLocale use information about libicu availablity (perviously, it would
never build the ICU stuff because the corresponding macro wasn't defined).



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@30995 72102866-910b-0410-8b05-ffd578937521
2010-07-19 07:54:52 +00:00
Richard Frith-MacDonald
2d4d2d6dc4 attempt to get avahi code working without breaking abi.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@30957 72102866-910b-0410-8b05-ffd578937521
2010-07-13 12:13:31 +00:00
Niels Grewe
4db2b9cf28 Finnaly working NSNetServices via avahi-client.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@30956 72102866-910b-0410-8b05-ffd578937521
2010-07-13 11:41:54 +00:00
Richard Frith-MacDonald
1452902204 Attempt to integrate Niels Grewe's avahi code
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@30952 72102866-910b-0410-8b05-ffd578937521
2010-07-13 10:35:13 +00:00
Richard Frith-MacDonald
2edf4d1b0c emergency fixup for broken build
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@30907 72102866-910b-0410-8b05-ffd578937521
2010-07-01 07:17:53 +00:00
David Chisnall
3b2211e891 Added some documentation for the CXXException class.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@30905 72102866-910b-0410-8b05-ffd578937521
2010-06-30 15:59:52 +00:00
David Chisnall
edcd8d0c5d Added class for catching C++ exceptions. When using libobjc2, you can catch C++ exceptions by writing @catch(CXXException *e). This will wrap the C++ exception in an Objective-C object and allow you to access it by sending a -thrownValue message to the object. This returns a pointer to the exception. For example, if the exception is an integer, you would retrieve it like this from Objective-C:
@catch(CXXException *e)
{
	int i = *(int*)[e thrownValue];
}

In ObjC++, you can also make sure that it really is an int, by doing:

assert(typeid(int) == *(std::type_info*)[e cxx_type_info]);

These interfaces are experimental and subject to change without notice.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@30904 72102866-910b-0410-8b05-ffd578937521
2010-06-30 13:08:22 +00:00
Richard Frith-MacDonald
b417e6bf8c Workaround for runitme bug.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@30864 72102866-910b-0410-8b05-ffd578937521
2010-06-26 14:04:09 +00:00
Richard Frith-MacDonald
1e0ab98f12 dd autoconf stuff for ICU
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@30850 72102866-910b-0410-8b05-ffd578937521
2010-06-25 10:33:55 +00:00
Richard Frith-MacDonald
1de22f472c initial addition of NSLocale
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@30849 72102866-910b-0410-8b05-ffd578937521
2010-06-25 07:18:20 +00:00
Richard Frith-MacDonald
fd58513127 coding standard tweaks
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@30824 72102866-910b-0410-8b05-ffd578937521
2010-06-22 17:44:51 +00:00
Dave Wetzel
af2be47796 * Headers/Foundation/NSFileManager.h
* Source/NSFileManager.m
add attributesOfItemAtPath:error:



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@30822 72102866-910b-0410-8b05-ffd578937521
2010-06-22 16:49:34 +00:00
Richard Frith-MacDonald
cfd056e44e include runtime header for blocks support if the compiler has it.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@30812 72102866-910b-0410-8b05-ffd578937521
2010-06-22 10:09:51 +00:00
Richard Frith-MacDonald
8f53f101f0 regenerate to fix problems of buggy autoconf version
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@30771 72102866-910b-0410-8b05-ffd578937521
2010-06-17 16:50:45 +00:00
Richard Frith-MacDonald
fcdd57d05f minor memory management updates/cleanups
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@30760 72102866-910b-0410-8b05-ffd578937521
2010-06-16 08:45:49 +00:00
Richard Frith-MacDonald
23b7ff95cd Simplify source by usuing autoconf
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@30692 72102866-910b-0410-8b05-ffd578937521
2010-06-12 07:19:26 +00:00
Richard Frith-MacDonald
dcf5647de3 tweak for performance
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@30673 72102866-910b-0410-8b05-ffd578937521
2010-06-11 12:00:02 +00:00
Richard Frith-MacDonald
d2a49f16a8 Fixes for bug #29845 and mime parsing improvements.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@30635 72102866-910b-0410-8b05-ffd578937521
2010-06-09 15:03:37 +00:00
Richard Frith-MacDonald
3c6801eae6 Revert code which belongs in gdl2 rather than base
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@30508 72102866-910b-0410-8b05-ffd578937521
2010-05-31 07:18:54 +00:00
Dave Wetzel
64f6e96d0a added encodingNamed:
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@30507 72102866-910b-0410-8b05-ffd578937521
2010-05-31 06:34:28 +00:00
Richard Frith-MacDonald
6388ec9d4f various minor bugfixes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@30470 72102866-910b-0410-8b05-ffd578937521
2010-05-29 06:42:38 +00:00
Richard Frith-MacDonald
20e7daac62 quick fix t get trunk compiling again.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@30444 72102866-910b-0410-8b05-ffd578937521
2010-05-22 04:41:32 +00:00
Richard Frith-MacDonald
27dde9d07b Attempt to get correct charset for xml parsing.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@30441 72102866-910b-0410-8b05-ffd578937521
2010-05-21 17:40:43 +00:00
Riccardo Mottola
67dcff87fa Guarded stdint.h inclusion
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@30438 72102866-910b-0410-8b05-ffd578937521
2010-05-21 11:05:33 +00:00
Richard Frith-MacDonald
886aa2d93c add missing methods
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@30283 72102866-910b-0410-8b05-ffd578937521
2010-05-03 06:00:45 +00:00
Fred Kiefer
4ad4022924 Add a few missing 10.4 initWithContentsOfXXX: methods. Fixes part of bug report #29736.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@30279 72102866-910b-0410-8b05-ffd578937521
2010-05-02 11:02:26 +00:00
Dave Wetzel
9e723901b6 * Source/Additions/Unicode.m: replace objc_malloc with NSZoneMalloc
and objc_free with NSZoneFree

* Source/Additions/NSFileHandle+GNUstepBase.m: should work with ipv6
(The old code does fail on Snow Leopard, even with ipv4 addresses.)    

* Source/Additions/GSXML.m: added GSObjCRuntime.h
* Headers/Additions/GNUstepBase/GSObjCRuntime.h: 
replace objc_malloc with NSZoneMalloc and objc_free with NSZoneFree



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@30221 72102866-910b-0410-8b05-ffd578937521
2010-04-23 04:06:17 +00:00
Nicola Pero
40d25d9fea Fixed installation-domains.conf on Windows - merged back the path configuration into the main configure script to do it. Minor other fixes to configuration.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@30180 72102866-910b-0410-8b05-ffd578937521
2010-04-18 18:18:45 +00:00
Richard Frith-MacDonald
4ce499bb84 fix comment accidentally copied from +load
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@30131 72102866-910b-0410-8b05-ffd578937521
2010-04-12 13:22:35 +00:00
Richard Frith-MacDonald
0eb84927ee Correction by David Ayers
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@30129 72102866-910b-0410-8b05-ffd578937521
2010-04-12 12:01:17 +00:00
Richard Frith-MacDonald
961c1db5a2 tweak
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@30126 72102866-910b-0410-8b05-ffd578937521
2010-04-12 11:25:32 +00:00
Richard Frith-MacDonald
d365d287cf improve documentation ... really runtime features but we don't have dos for that
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@30125 72102866-910b-0410-8b05-ffd578937521
2010-04-12 11:19:08 +00:00
Richard Frith-MacDonald
ac3ce7be00 make mixed abi default now
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@30063 72102866-910b-0410-8b05-ffd578937521
2010-03-28 08:22:46 +00:00
Richard Frith-MacDonald
561bd93398 fix typos
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@30049 72102866-910b-0410-8b05-ffd578937521
2010-03-27 05:31:54 +00:00
David Chisnall
c75d9cd218 Fix for Foundation.h being imported after CoreFoundation.h; don't redefine OSType if it's already defined.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@30047 72102866-910b-0410-8b05-ffd578937521
2010-03-27 00:33:03 +00:00
Richard Frith-MacDonald
f784646663 generalize define from __MINGW32__ to __MINGW__
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@30001 72102866-910b-0410-8b05-ffd578937521
2010-03-19 12:10:11 +00:00
Richard Frith-MacDonald
97653c21a2 Made experimental API for sending emails available.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29999 72102866-910b-0410-8b05-ffd578937521
2010-03-18 09:56:51 +00:00
Richard Frith-MacDonald
8b6d77380c experimental configure option
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29994 72102866-910b-0410-8b05-ffd578937521
2010-03-17 15:34:51 +00:00
Richard Frith-MacDonald
7a0ddec62c Apply tidyup by Anibal Rindisbacher
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29986 72102866-910b-0410-8b05-ffd578937521
2010-03-17 05:36:11 +00:00
Richard Frith-MacDonald
d435122451 fix typo
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29979 72102866-910b-0410-8b05-ffd578937521
2010-03-16 12:03:10 +00:00
Richard Frith-MacDonald
7112daa5b4 mingw tweaks suggested by Vincent Richomme
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29973 72102866-910b-0410-8b05-ffd578937521
2010-03-16 06:19:58 +00:00
Richard Frith-MacDonald
4bbf250188 add explicit bracketing for safer macros.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29969 72102866-910b-0410-8b05-ffd578937521
2010-03-15 21:16:20 +00:00
Richard Frith-MacDonald
a83ae2b69d Prevent builds where nonfragile-abi state does not match that with which
the base library was configured.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29929 72102866-910b-0410-8b05-ffd578937521
2010-03-13 19:45:23 +00:00
Richard Frith-MacDonald
ee25a8f059 improve exception support
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29898 72102866-910b-0410-8b05-ffd578937521
2010-03-11 07:22:10 +00:00
Richard Frith-MacDonald
e21f059bf0 fix includes to iumports
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29894 72102866-910b-0410-8b05-ffd578937521
2010-03-10 14:53:51 +00:00
Adam Fedor
3eefcc5e1b Finish implementation
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29893 72102866-910b-0410-8b05-ffd578937521
2010-03-10 03:50:21 +00:00
Richard Frith-MacDonald
b9070bdab8 check for loss of data on decoding
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29887 72102866-910b-0410-8b05-ffd578937521
2010-03-09 10:09:01 +00:00
Richard Frith-MacDonald
42db2fdf50 Improve debug
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29874 72102866-910b-0410-8b05-ffd578937521
2010-03-08 09:27:48 +00:00
Richard Frith-MacDonald
3132d54a5d 64bit fixups
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29872 72102866-910b-0410-8b05-ffd578937521
2010-03-08 07:06:47 +00:00
Richard Frith-MacDonald
22f8bdb8c4 64 bit fixups
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29871 72102866-910b-0410-8b05-ffd578937521
2010-03-08 06:43:14 +00:00
Richard Frith-MacDonald
026d6fc751 Add mechanism for gdl2.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29866 72102866-910b-0410-8b05-ffd578937521
2010-03-07 13:35:07 +00:00
Richard Frith-MacDonald
f59ba481f0 Move NSStream addition declarations to separate file.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29853 72102866-910b-0410-8b05-ffd578937521
2010-03-05 12:41:40 +00:00
Richard Frith-MacDonald
1a4662001d Remove obsolete headers
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29850 72102866-910b-0410-8b05-ffd578937521
2010-03-05 10:32:15 +00:00
Richard Frith-MacDonald
8ffe9f3c80 tweaks to build on osx
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29849 72102866-910b-0410-8b05-ffd578937521
2010-03-05 10:24:42 +00:00
Richard Frith-MacDonald
39fc4419b0 further cleanup ... always use -zone method to get an object's zone ...
so people can safely write subclasses using different allocation schemes.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29847 72102866-910b-0410-8b05-ffd578937521
2010-03-05 09:30:18 +00:00
Richard Frith-MacDonald
e947396a6e include stdio.h for GSPrintf
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29843 72102866-910b-0410-8b05-ffd578937521
2010-03-05 05:54:56 +00:00
Richard Frith-MacDonald
ef908fbb5b remove obsolete code and update other stuff fro new runtime api
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29840 72102866-910b-0410-8b05-ffd578937521
2010-03-05 05:24:43 +00:00
Richard Frith-MacDonald
102df587f7 more changes for new runtime
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29828 72102866-910b-0410-8b05-ffd578937521
2010-03-04 08:15:08 +00:00
Richard Frith-MacDonald
4fcce15ee0 Fix header error spotted by Fred
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29817 72102866-910b-0410-8b05-ffd578937521
2010-03-02 09:51:12 +00:00
Richard Frith-MacDonald
f710cb72e9 Remove obsolete code
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29813 72102866-910b-0410-8b05-ffd578937521
2010-03-01 08:46:21 +00:00
Richard Frith-MacDonald
e98d8f6da5 update argument types for latest api
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29811 72102866-910b-0410-8b05-ffd578937521
2010-03-01 05:43:08 +00:00
David Chisnall
1fed8159bb Added a couple of convenience methods on NSString (OS X 10.5 compatibility).
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29810 72102866-910b-0410-8b05-ffd578937521
2010-02-28 23:37:22 +00:00
Richard Frith-MacDonald
b59b875d50 mprove ifdef's for non-fragile-abi
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29809 72102866-910b-0410-8b05-ffd578937521
2010-02-28 19:43:35 +00:00
Richard Frith-MacDonald
bbc0ddd60f Use NSGetSizeAndAlignment
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29798 72102866-910b-0410-8b05-ffd578937521
2010-02-28 11:51:59 +00:00
Richard Frith-MacDonald
b1b69523be add objc_sizeOfType()
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29795 72102866-910b-0410-8b05-ffd578937521
2010-02-28 11:36:29 +00:00
Richard Frith-MacDonald
299c3aefeb cleanup compatibility header installation
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29793 72102866-910b-0410-8b05-ffd578937521
2010-02-28 09:10:16 +00:00
Richard Frith-MacDonald
8aadd12c71 remove a few obsolete, unused methods
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29785 72102866-910b-0410-8b05-ffd578937521
2010-02-27 06:53:43 +00:00
Richard Frith-MacDonald
6b3e53917e inon-fragile ivar update
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29780 72102866-910b-0410-8b05-ffd578937521
2010-02-26 11:04:14 +00:00
Richard Frith-MacDonald
e43d625338 improve instance variable hiding
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29779 72102866-910b-0410-8b05-ffd578937521
2010-02-26 10:25:35 +00:00
Richard Frith-MacDonald
166f1afb4b build additions with NO_GNUSTEP=1
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29771 72102866-910b-0410-8b05-ffd578937521
2010-02-26 08:39:47 +00:00
Richard Frith-MacDonald
a000beebcb tweak for if bool is a reserved word
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29754 72102866-910b-0410-8b05-ffd578937521
2010-02-25 19:00:23 +00:00
Richard Frith-MacDonald
0d8647856e support very recent glibc
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29738 72102866-910b-0410-8b05-ffd578937521
2010-02-25 10:51:10 +00:00
Richard Frith-MacDonald
c22351a70f regenerate
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29737 72102866-910b-0410-8b05-ffd578937521
2010-02-25 10:03:00 +00:00
Richard Frith-MacDonald
62939c969a compatibility and portability fixes.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29736 72102866-910b-0410-8b05-ffd578937521
2010-02-25 10:00:48 +00:00
Richard Frith-MacDonald
3968c44cec Cleanup some deprecated code
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29730 72102866-910b-0410-8b05-ffd578937521
2010-02-25 08:19:52 +00:00
Richard Frith-MacDonald
b60b8bf73f Move gnustep specific macros
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29729 72102866-910b-0410-8b05-ffd578937521
2010-02-25 05:36:10 +00:00
Richard Frith-MacDonald
b1e904b3ae move GNUstep.h into common.h
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29727 72102866-910b-0410-8b05-ffd578937521
2010-02-25 05:26:57 +00:00
Richard Frith-MacDonald
8da37b5bf9 move a few functions from header to source file
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29725 72102866-910b-0410-8b05-ffd578937521
2010-02-25 05:07:34 +00:00
Richard Frith-MacDonald
4497ba7bdd Build with non-fragile ivars.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29715 72102866-910b-0410-8b05-ffd578937521
2010-02-24 10:23:47 +00:00
Richard Frith-MacDonald
8769dd8b6f deprecates some gnustep runtime wrappers
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29697 72102866-910b-0410-8b05-ffd578937521
2010-02-22 10:13:20 +00:00
Richard Frith-MacDonald
dd42cc24ba Move includes to NSObjCRuntime.h to match OSX
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29692 72102866-910b-0410-8b05-ffd578937521
2010-02-20 18:32:07 +00:00
Richard Frith-MacDonald
ec2ebc1c47 tweaks to avoid compiler warnings
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29691 72102866-910b-0410-8b05-ffd578937521
2010-02-20 18:05:00 +00:00
Richard Frith-MacDonald
b107ae4ac4 preparation for possibly excluding GNUstep extensions by default
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29690 72102866-910b-0410-8b05-ffd578937521
2010-02-20 17:16:23 +00:00
Richard Frith-MacDonald
c7fc73ec19 make runtime.h available to other code.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29684 72102866-910b-0410-8b05-ffd578937521
2010-02-20 06:49:32 +00:00
Richard Frith-MacDonald
62011a8adf More include tweaks
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29671 72102866-910b-0410-8b05-ffd578937521
2010-02-19 14:21:02 +00:00
Richard Frith-MacDonald
14a557fcd7 avoid obsolete include
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29667 72102866-910b-0410-8b05-ffd578937521
2010-02-18 16:27:32 +00:00
Richard Frith-MacDonald
85760d2563 move a bit more stuff into additions
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29666 72102866-910b-0410-8b05-ffd578937521
2010-02-18 16:18:54 +00:00
Richard Frith-MacDonald
6a1ff80510 Backward compatibility fixups
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29663 72102866-910b-0410-8b05-ffd578937521
2010-02-18 11:40:58 +00:00
Richard Frith-MacDonald
cccddb4573 Fix errors spotted by Fred
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29662 72102866-910b-0410-8b05-ffd578937521
2010-02-18 08:45:00 +00:00
Richard Frith-MacDonald
746afbcb53 Update integer limits code.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29661 72102866-910b-0410-8b05-ffd578937521
2010-02-18 07:06:42 +00:00
Richard Frith-MacDonald
43bcaac3ad Attempt to allow documentation to be generated for uninstalled base package.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29655 72102866-910b-0410-8b05-ffd578937521
2010-02-16 19:51:52 +00:00
Richard Frith-MacDonald
7e8e79ae94 avoid unnecessary requests for signatures to remote process
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29652 72102866-910b-0410-8b05-ffd578937521
2010-02-16 17:08:47 +00:00
Richard Frith-MacDonald
dc010099a9 Enable 64bit api changes matching OSX 10.5
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29650 72102866-910b-0410-8b05-ffd578937521
2010-02-15 17:51:07 +00:00
Richard Frith-MacDonald
2d237c91ae remove obsolete invocation stuff
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29649 72102866-910b-0410-8b05-ffd578937521
2010-02-15 17:14:12 +00:00
Richard Frith-MacDonald
d763014aa5 cleanup fast enumeration issues
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29647 72102866-910b-0410-8b05-ffd578937521
2010-02-15 16:56:31 +00:00
Richard Frith-MacDonald
da2a563929 Fix erroneous configure change
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29631 72102866-910b-0410-8b05-ffd578937521
2010-02-14 17:22:47 +00:00
Richard Frith-MacDonald
ea34103f35 fixup for old runtime
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29627 72102866-910b-0410-8b05-ffd578937521
2010-02-14 15:47:30 +00:00
Richard Frith-MacDonald
cd6051a668 fix missing check for runtime.h
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29626 72102866-910b-0410-8b05-ffd578937521
2010-02-14 15:41:44 +00:00
Richard Frith-MacDonald
eda0f191e7 Avoid accidental include of Foundation.h
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29620 72102866-910b-0410-8b05-ffd578937521
2010-02-14 13:52:29 +00:00
David Chisnall
99cb20ae16 Rewritten NSNumber implementation. This fixes several OS X-compatibility issues:
The -pointerValue method now returns the value cast to a pointer, not some random value, as the documentation says it should.  This is a change from OpenStep, which said:

> It's an error to send this message to an NSValue that doesn't store a pointer.

The OS X docs now say:

> The receiver's value as a pointer to void. If the receiver was not created to hold a pointer-sized data item, the result is undefined.

This means that any NSNumber created with a word-sized integer should return the same value.

Fixed a number of corner-cases in the compare: implementation caused by incorrect type promotion.  The OS X docs say:

> The compare: method follows the standard C rules for type conversion.

The OS X implementation does not do this.  We now match Apple's conversion rules bug-for-bug: Every value is stored in the smallest signed type that will hold it, unless there is no unsigned type that can hold it, in which case it is stored in an `unsigned long long`, comparisons between integer and floating point values cast both to a double, comparisons between integer types perform a real comparison (so an unsigned long long is always greater than any negative number, at any precision).  The Apple implementation is actually quite sane, it is just completely unrelated to the documentation in any way.

We now use the same range of reusable objects.  Note that there is an error in Cocoa Design Patterns in the description of how Apple's implementation works.  Do not use this as a reference.

We now return `nil` when an NSNumber is sent an -init message.  This is consistent with Apple's implementation but breaks some things in the GNUstep test suite (which RFM said he will fix).

There is a small change in NSValue.h so that the locale parameter is now an `id` not an `NSString*`.  This is because, under recent OS X, it may also be an `NSLocale` instance.  I am not sure how much GNUstep supports `NSLocale`, but this change shouldn't affect anything.

The new (private) GSNumberTypes.h file lets you define macros that are instantiated with each of the names of primitive C types.  These might be useful for simplifying other classes that have -intValue, -floatValue, and so on methods, such as the `NSCell` family.

The old NSConcreteNumberTemplate and NSConcreteNumber stuff has been removed.  The code is now a bit more than 10% of the size of the old NSNumber code, and is hopefully maintainable now, so the next change won't require a complete rewrite.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29618 72102866-910b-0410-8b05-ffd578937521
2010-02-14 12:57:44 +00:00
Richard Frith-MacDonald
79ce6ac700 minor include fixups
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29616 72102866-910b-0410-8b05-ffd578937521
2010-02-14 11:01:08 +00:00
Richard Frith-MacDonald
21d597e740 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
David Chisnall
6bf6ec959b Made NSAllocateObject() and NSDeallocateObject() use / take id instead of NSObject*. This matches Apple's definition and gets rid of 'assignment / initialization from distinct Objective-C type' warnings when you use NSAllocateObject() to create an instance without an explicit cast.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29611 72102866-910b-0410-8b05-ffd578937521
2010-02-13 17:33:23 +00:00
Richard Frith-MacDonald
55d4f390aa re-instate cleaned up version of string proxy code.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29518 72102866-910b-0410-8b05-ffd578937521
2010-02-09 06:07:10 +00:00
Richard Frith-MacDonald
baf489409c Farious fixes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29513 72102866-910b-0410-8b05-ffd578937521
2010-02-08 17:52:36 +00:00
Richard Frith-MacDonald
6c84f23ae1 Coimplete operation queue implementation
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29508 72102866-910b-0410-8b05-ffd578937521
2010-02-08 10:34:27 +00:00
Richard Frith-MacDonald
0dec7f1b97 NSOperationQueue additions
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29495 72102866-910b-0410-8b05-ffd578937521
2010-02-06 17:10:16 +00:00
Riccardo Mottola
d18782ed0e fixed c99-ism
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29486 72102866-910b-0410-8b05-ffd578937521
2010-02-05 21:00:10 +00:00
Riccardo Mottola
fb3ec312b6 provide gcc 2.95 variadic macro
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29485 72102866-910b-0410-8b05-ffd578937521
2010-02-05 20:57:36 +00:00
Richard Frith-MacDonald
9f98d4c443 tweak for OSX compatibility
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29480 72102866-910b-0410-8b05-ffd578937521
2010-02-05 11:41:24 +00:00
Richard Frith-MacDonald
1c11dee837 implement and document NSOperation
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29476 72102866-910b-0410-8b05-ffd578937521
2010-02-04 16:47:45 +00:00
Richard Frith-MacDonald
49a063af84 Reinstate working symbolic stack trace code.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29392 72102866-910b-0410-8b05-ffd578937521
2010-01-24 17:13:03 +00:00
Richard Frith-MacDonald
b662140e16 Apply patch to switch completely to using pthreads
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29367 72102866-910b-0410-8b05-ffd578937521
2010-01-23 17:00:13 +00:00