znek
2011f25eff
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
rfm
48bdc3800c
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
rmottola
872cbe7627
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
rmottola
50f3b0c3fe
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
rmottola
4b21de46d8
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
rfm
0441b09833
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
rfm
6781e92ac5
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
rfm
7588c978ea
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
rfm
e22078004e
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
rfm
a319576293
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
fredkiefer
4df131cfc5
* 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
lubosd
edc02cf9e5
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
lubosd
f1a1fa31e4
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
lubosd
2fa31e9316
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
lubosd
63253fa342
* 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
wlux
344809a47e
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
rfm
7d5f098d75
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
fredkiefer
acaa598aa0
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
rfm
3caa4863d5
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
rfm
984d2735cf
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
rfm
fddf904fe7
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
rfm
a7d1b7c1b9
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
rfm
354d0bcb94
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
rfm
022d588467
Changes for 64bit clean printf format strings.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36810 72102866-910b-0410-8b05-ffd578937521
2013-07-03 06:46:41 +00:00
rfm
eccb729fd4
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
rfm
305f948150
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
rfm
490901fc6c
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
rfm
ef666cb7c1
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
rfm
83472ebdb0
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
rfm
9f63b8a2e6
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
lubosd
924d683ba4
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
lubosd
b5f4ebc70d
* 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
theraven
d220533329
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
rfm
9d46636c15
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
rfm
f418b79b35
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
rfm
d26640c7ab
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
rfm
a12773409b
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
rfm
e4bbef2ba2
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
rfm
7f92566ba7
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
rfm
977ffb20d7
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
rfm
fd9e1db26c
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
theraven
2d7d985188
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
rfm
1e4be4f380
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
wlux
9877c8af3a
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
rfm
52bc22f8be
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
qmathe
17cffd0100
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
rfm
fd66850a11
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
thebeing
d5fb92517a
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
rfm
31634bffde
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
thebeing
b9b63476ef
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
thebeing
a99a5163fd
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
thebeing
1e852b259e
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
theraven
f2c68c13e4
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
thebeing
d10498bd01
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
rfm
c456ffd519
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
rfm
7ccc71d1ab
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
theraven
ecfd46edb2
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
thebeing
a5c6cfa9f7
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
rfm
0ae9c7d32a
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
thebeing
9963a2e83a
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
thebeing
849ed6b9f4
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
rfm
bcfeafc9ae
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
rfm
edf6711cd8
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
ericwa
e8bc5d9a5f
* 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
rfm
8199943aef
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
rfm
92ae73861f
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
rfm
3970d58fdc
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
rfm
ee3f0b14a0
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
rfm
2934175c27
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
rfm
a8ce28dd9f
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
rfm
6b8dc7ef6c
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
ericwa
6352d91406
* 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
rfm
8e229fd524
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
rmottola
ca379d1527
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
theraven
1d53b9c278
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
fredkiefer
93ba2fdb0b
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
fredkiefer
da112a776b
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
theraven
ceba92a265
Lots of little fixes to make -base compile with -Werror (now builds without warnings).
...
Richard: I'm unsure about three of these, which were fixes in memset() calls in:
- NSConcreteMapTable.m
- NSConcreteHashTable.m
- Additions/NSData+GNUstepBase.m
Please can you check them? I think they are intended to zero the entire object
(rather than the first word), but the lack of comments makes me unsure.
Most changes were just tweaks to variable types. I've also removed some dead code from NSInvocation. This was small group of things that were marked for internal use only, but not actually referenced in the code anywhere.
Other improvements:
- NSArray / NSDictionary fixed up to use the 10.7 (ARC-friendly) prototypes.
- getObjects:andKeys: implemented for NSDictionary (10.5 method)
- NSPointerArray and NSHashTable now properly support weak objects.
- Tests for weak objects in collections.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33621 72102866-910b-0410-8b05-ffd578937521
2011-07-24 13:09:22 +00:00
theraven
fc206e3169
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
theraven
ccc571be66
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
rfm
cc524f2704
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
fredkiefer
cbb92041ae
* 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
theraven
72e4d13156
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
theraven
cfe8b63cbf
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
theraven
9f0537145d
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
theraven
ab930ee2ba
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
rfm
29dfb60a39
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
rfm
e40a3d2625
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
rfm
33843644e1
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
rfm
e78ceb4c96
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
rfm
8b2ffba3d9
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
rfm
074a57a018
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
rfm
d70e36cea8
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
theraven
7c977d8db0
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
thebeing
b6cee11863
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
rfm
0ae9a6c552
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
rfm
c688f6d764
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
rfm
5dd6a0d7e0
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
rfm
de2378bc87
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