Richard Frith-Macdonald
cf942cc32a
Tidy xml output format.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@18466 72102866-910b-0410-8b05-ffd578937521
2004-01-24 06:51:18 +00:00
Richard Frith-Macdonald
7afadeeebb
Added a few specialised coding methods.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@18465 72102866-910b-0410-8b05-ffd578937521
2004-01-24 06:39:21 +00:00
Richard Frith-Macdonald
62324f232d
Turn off some debug logging accidentally left on after last bugfix.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@18463 72102866-910b-0410-8b05-ffd578937521
2004-01-23 18:39:39 +00:00
Richard Frith-Macdonald
a7e07d9a65
Multithreaded operation fixes.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@18462 72102866-910b-0410-8b05-ffd578937521
2004-01-23 18:12:37 +00:00
Richard Frith-Macdonald
3580989e20
Override method to say we support keyed coding
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@18459 72102866-910b-0410-8b05-ffd578937521
2004-01-22 20:43:34 +00:00
Richard Frith-Macdonald
8e7eb96e77
Partial implementation of unarchiver code.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@18458 72102866-910b-0410-8b05-ffd578937521
2004-01-22 20:38:24 +00:00
Richard Frith-Macdonald
de07b9271b
Inital commit of partial implementation of MacOS-X compatible keyed archiving.
...
Experimental ... archiving is implemented aand tested for xml format output.
Unarchiving is not yet implemented.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@18450 72102866-910b-0410-8b05-ffd578937521
2004-01-22 09:37:07 +00:00
Richard Frith-Macdonald
2d361f1ad9
Fix for libffi based distributed objects (tested on macos-x)
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@18433 72102866-910b-0410-8b05-ffd578937521
2004-01-18 12:19:43 +00:00
Adam Fedor
4abb9b17fa
Include fixes for darwin
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@18413 72102866-910b-0410-8b05-ffd578937521
2004-01-15 04:07:08 +00:00
Richard Frith-Macdonald
8971343f45
Little tweak for safety .. return immutable copy rather than mutable
...
instance variable.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@18404 72102866-910b-0410-8b05-ffd578937521
2004-01-13 10:02:34 +00:00
Richard Frith-Macdonald
89c41e2f32
Minor fix for problem reported by J.Aaron Prendergrass
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@18403 72102866-910b-0410-8b05-ffd578937521
2004-01-13 09:21:45 +00:00
Adam Fedor
3aed9afeb7
Add ifdefs to include only on MacOSX
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@18395 72102866-910b-0410-8b05-ffd578937521
2004-01-12 19:44:48 +00:00
Adam Fedor
831216a9fe
Minor changes for baseadd compilation and compiler warnings.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@18394 72102866-910b-0410-8b05-ffd578937521
2004-01-12 19:42:18 +00:00
Adam Fedor
443a569cba
Fix indentation problems.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@18371 72102866-910b-0410-8b05-ffd578937521
2004-01-11 04:49:10 +00:00
Richard Frith-Macdonald
95153106d3
Fix incorrect use of a pointer to unichar as if it was a pointer to char.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@18359 72102866-910b-0410-8b05-ffd578937521
2004-01-10 10:00:00 +00:00
Richard Frith-Macdonald
a11526b4f8
Tidy last NSArray change with minor performance tweak, apply bugfix for code
...
attempting to deal with minor problems in mime data being parsed.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@18336 72102866-910b-0410-8b05-ffd578937521
2004-01-08 08:07:29 +00:00
Alexander Malmberg
35c9435122
Initialize range in the aRange.length==0 case.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@18335 72102866-910b-0410-8b05-ffd578937521
2004-01-08 00:52:21 +00:00
Manuel Guesdon
63ba83e121
2004-01-06 Manuel Guesdon <mguesdon@orange-concept.com>
...
* Headers/Foundation/NSArray.h/.m: added -setValue:forKey:
and -valueForKey: to comply to Mac OS X v10.3 and
later documentation.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@18322 72102866-910b-0410-8b05-ffd578937521
2004-01-06 19:43:29 +00:00
Richard Frith-Macdonald
c513572553
Add method for consistency
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@18320 72102866-910b-0410-8b05-ffd578937521
2004-01-05 18:28:18 +00:00
Gregory John Casamento
db341559bf
Corrected spelling.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@18273 72102866-910b-0410-8b05-ffd578937521
2003-12-25 14:59:54 +00:00
Alexander Malmberg
fffc7ab3c0
Rename 'abstract' to 'abstractClass' and make it static. (+allocWithZone:): Allocate an instance of self if self isn't the abstract class.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@18265 72102866-910b-0410-8b05-ffd578937521
2003-12-23 23:19:00 +00:00
Alexander Malmberg
0a69397299
(+detachNewThreadSelector:toTarget:withObject:): Don't set entered_multi_threaded_state to NO if the objc_thread_detach call fails.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@18262 72102866-910b-0410-8b05-ffd578937521
2003-12-23 17:41:38 +00:00
Alexander Malmberg
74254e40b2
Fix spelling errors in comments.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@18261 72102866-910b-0410-8b05-ffd578937521
2003-12-23 17:22:06 +00:00
Alexander Malmberg
8041f0f996
(NSContainsRect): Return NO if the second rect is empty. (NSIntegralRect): Calculate new width and height correctly.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@18258 72102866-910b-0410-8b05-ffd578937521
2003-12-23 17:11:14 +00:00
Richard Frith-Macdonald
7fce9c8ad0
fix for ignoring of sigpipe.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@18244 72102866-910b-0410-8b05-ffd578937521
2003-12-01 06:55:40 +00:00
Richard Frith-Macdonald
34fcca39c1
Use current user id to get user name.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@18242 72102866-910b-0410-8b05-ffd578937521
2003-11-30 10:20:26 +00:00
Richard Frith-Macdonald
d2936869b9
Minor usability tweak.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@18240 72102866-910b-0410-8b05-ffd578937521
2003-11-30 09:05:31 +00:00
Alexander Malmberg
26a9b924d7
Fix typo in comment.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@18222 72102866-910b-0410-8b05-ffd578937521
2003-11-28 22:41:07 +00:00
Richard Frith-Macdonald
2ef3b26222
Minor incremental parsing fix
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@18200 72102866-910b-0410-8b05-ffd578937521
2003-11-25 13:19:41 +00:00
Adam Fedor
179a1e6d9e
Change KoreanEUCEncoding to KoreanEUCStringEncoding.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@18134 72102866-910b-0410-8b05-ffd578937521
2003-11-24 04:18:50 +00:00
Richard Frith-Macdonald
ff9424c8e9
Bugfix ... suspend should send SIGSTOP
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@18107 72102866-910b-0410-8b05-ffd578937521
2003-11-23 06:23:09 +00:00
Richard Frith-Macdonald
ff218e97c3
Fixes for lazy locking on macos
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@18088 72102866-910b-0410-8b05-ffd578937521
2003-11-16 10:53:40 +00:00
David Ayers
a3601643a6
Based on patches by Philip Moetteli
...
<Philip.Moetteli@tele2.ch>.
* Headers/Additions/GNUstepBase/GSCategories.h: Added
NSKoreanEUCEncoding.
* Headers/Additions/GNUstepBase/GSLock.h
* Headers/Additions/GNUstepBase/GSLocale.h: Guard includes for
NeXT_Foundation_LIBRARY.
* Source/Additions/GSLock.m: Include GNUstepBase/GNUstep.h.
* Headers/Additions/GNUstepBase/GSCategories.h
* Headers/Foundation/NSString.h:
(+[NSString stringWithFormat:arguments:]): Move declaration to
GSCategories.
* Source/NSString.m
* Source/Additions/GSCategories.m:
(+[NSString stringWithFormat:arguments:]): Move implementation
to Additions.
* macosx/config.h: Define HAVE_WCHAR_H.
* macosx/gnustep.pbproj/project.pbxproj: Added GSLock files.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@18072 72102866-910b-0410-8b05-ffd578937521
2003-11-10 15:34:52 +00:00
Richard Frith-Macdonald
7050e421c7
Don't obtain locks unnecessarily
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@18071 72102866-910b-0410-8b05-ffd578937521
2003-11-10 06:40:24 +00:00
Thoran Pas
2665ac707b
a static declaration was missing. Fixing it
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@18068 72102866-910b-0410-8b05-ffd578937521
2003-11-09 12:49:15 +00:00
David Ayers
fe44315405
* Source/GSPrivate.h (GS_REPLACE_CONSTANT_STRING): New macro.
...
* Source/externs.m: Initialize constant strings statically.
(GSBuildStrings): Replace static strings with dynamic
versions.
* Testing/benchmark.m: Added tests for NSString -hash and
-copy. Aligned ouput.
* Testing/externs.m: New test.
* Testing/GNUmakefile: Added externs.m test. Activated
ADDITIONAL_TOOLS tests excluding gstcpport tests.
* Source/Additions/GSCategories.m: Adjust declared lock type.
Added comment.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@18058 72102866-910b-0410-8b05-ffd578937521
2003-11-06 21:11:39 +00:00
Richard Frith-Macdonald
4d1f1825c1
Add support for server side ssl connections.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@18055 72102866-910b-0410-8b05-ffd578937521
2003-11-05 18:26:09 +00:00
Alexander Malmberg
a1cf21fecf
(serializeToInfo): Only save a string as a cstring if it only contains ASCII characters.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@18052 72102866-910b-0410-8b05-ffd578937521
2003-11-05 13:52:18 +00:00
Alexander Malmberg
6d7a021d6c
Reorganize GSString class hierarchy. Update users.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@18050 72102866-910b-0410-8b05-ffd578937521
2003-11-05 02:11:49 +00:00
Richard Frith-Macdonald
61e0197b79
Use locking even when single threaded ... temporary hack
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@18042 72102866-910b-0410-8b05-ffd578937521
2003-11-03 12:32:46 +00:00
Richard Frith-Macdonald
c0109a7322
Substring creation fixes
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@18040 72102866-910b-0410-8b05-ffd578937521
2003-11-03 08:35:44 +00:00
Richard Frith-Macdonald
33cd489562
Commit file accidentally omitted earlier.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@18039 72102866-910b-0410-8b05-ffd578937521
2003-11-03 06:27:52 +00:00
Alexander Malmberg
5bd9bdbc5c
([GSCSubString -copy]): Add as a stopgap workaround for problemes uncovered by the previous change.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@18022 72102866-910b-0410-8b05-ffd578937521
2003-11-02 00:56:07 +00:00
Richard Frith-Macdonald
eab1a62b9f
Minor fix for strings initialised with data they don't own ... consistent
...
with MacOS-X implementation.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@18019 72102866-910b-0410-8b05-ffd578937521
2003-11-01 11:11:13 +00:00
Richard Frith-Macdonald
a9fc62765c
Fix NSCharacterSet caching bug
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@18017 72102866-910b-0410-8b05-ffd578937521
2003-11-01 07:30:21 +00:00
Richard Frith-Macdonald
310d9bd763
Locking tidups/fixes
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@18016 72102866-910b-0410-8b05-ffd578937521
2003-11-01 07:09:12 +00:00
David Ayers
6737b2a32f
* Source/NSCharacterSet.m
...
([NSCharacterSet _bitmapForSet:number:]): Insure only
instances of NSCharacterSet a stored in the cache but return
instances of the receivers class.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@18014 72102866-910b-0410-8b05-ffd578937521
2003-10-31 17:10:45 +00:00
David Ayers
9a32828063
Moved declaration of local_lock out of the #ifdef as reported by Matt Rice.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@18012 72102866-910b-0410-8b05-ffd578937521
2003-10-30 20:51:44 +00:00
David Ayers
7a61ad790e
Fix declarations for -baseadd and minor convention issues.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@18011 72102866-910b-0410-8b05-ffd578937521
2003-10-30 14:29:41 +00:00
David Ayers
c2b8811456
* Headers/Additions/GNUstepBase/GSLock.h: Added missing
...
forward declaration.
* Headers/Additions/GNUstepBase/GSCategories.h: Remove
declaraion of gnustep_global_lock.
(GS_INITIALIZED_LOCK): New macro.
(+[NSLock newLockAt:]): New method.
(+[NSRecursiveLock newLockAt:]): Ditto.
* Headers/Foundation/NSLock.h: Ditto.
* Source/Additions/GSCategories.m: Replace global lock with
local lock.
(_GSLockInitializer): New class to initialize local lock
safely.
(newLockAt): New static function shared by +newLockAt:
implementations to safely intialize lock variables.
(+[NSLock newLockAt:]): Implemented and documented.
(+[NSRecursiveLock newLockAt:]): Ditto.
* Source/Additions/GSCompatibility.m: Remove
gnustep_global_lock.
* Source/Additions/GSObjCRuntime.m: Remove superfluous
locking.
* Source/Additions/Unicode.m: Use new GS_INITIALIZED_LOCK
macro and replace global lock with local lock.
* Source/NSLock.m
(-[NSConditionLock lockWhenCondition:beforeDate:]):
Implemented.
* Testing/gslock.m: New test case.
* Testing/GNUmakefile: Add new test case.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@18010 72102866-910b-0410-8b05-ffd578937521
2003-10-30 13:44:55 +00:00