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
Adam Fedor
5ac3721b5d
Clarify ffi error messages
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@18001 72102866-910b-0410-8b05-ffd578937521
2003-10-29 05:07:45 +00:00
Adam Fedor
57e74ef07a
Update Mac OS X build for 10.3
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@18000 72102866-910b-0410-8b05-ffd578937521
2003-10-29 04:49:13 +00:00
Richard Frith-Macdonald
fea972c8f3
Fixes for macosx compatibility.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@17989 72102866-910b-0410-8b05-ffd578937521
2003-10-28 11:10:23 +00:00
Richard Frith-Macdonald
2ec3de93b9
compatibility fixes for MacOS-X
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@17986 72102866-910b-0410-8b05-ffd578937521
2003-10-28 10:11:33 +00:00
Richard Frith-Macdonald
393e822402
Updates for improved reference count management over DO.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@17983 72102866-910b-0410-8b05-ffd578937521
2003-10-27 13:41:01 +00:00
Richard Frith-Macdonald
10e3d610a0
Build/document new lock classes
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@17982 72102866-910b-0410-8b05-ffd578937521
2003-10-27 13:23:19 +00:00
Richard Frith-Macdonald
cdc7785b67
Add lazy locking classes
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@17979 72102866-910b-0410-8b05-ffd578937521
2003-10-26 13:45:49 +00:00
Richard Frith-Macdonald
cd0a17674e
Fix bug in last mod
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@17976 72102866-910b-0410-8b05-ffd578937521
2003-10-25 17:50:45 +00:00
Richard Frith-Macdonald
86d131326a
Minor comptibility fixes and documentation
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@17972 72102866-910b-0410-8b05-ffd578937521
2003-10-25 05:54:39 +00:00
Adam Fedor
43e1f4c566
Try to use libffi if ffcall not found.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@17971 72102866-910b-0410-8b05-ffd578937521
2003-10-25 03:04:07 +00:00
David Ayers
1eb67be53b
* Source/GSArray.m:
...
(-[GSMutableArray _raiseRangeExceptionWithIndex:from:]):
Declare private method obtained through behavior additions.
(-[GSArray _raiseRangeExceptionWithIndex:from:]): Use
'unsigned' in favor of 'int' for index and count. Move
private method to the top of implementation context to avoid
warnings.
(-[GSMutableArray insertObject:atIndex:]): Use 'unsigned' in
favor of 'int' for index.
(-[GSMutableArray replaceObjectAtIndex:withObject:]): Correct
selector name and parameter of method call.
(-[GSMutableArray sortUsingFunction:context:]): Correct
prototype.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@17963 72102866-910b-0410-8b05-ffd578937521
2003-10-24 09:27:09 +00:00
Richard Frith-Macdonald
87dbc4b52c
Applied and tidied patch for more informative exceptions.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@17962 72102866-910b-0410-8b05-ffd578937521
2003-10-24 06:53:53 +00:00
Richard Frith-Macdonald
3db9f5d7dc
bugfix for setting listening port.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@17961 72102866-910b-0410-8b05-ffd578937521
2003-10-23 16:46:47 +00:00
David Ayers
45fb8a2fb2
* Source/NSConcreteNumber.h: Moved here from
...
Headers/Foundation/NSConcreteNumber.h.
* Source/GNUmakefile: Make NSConcreteNumber.h private.
* Source/NSConcreteNumber.m: Include NSConcreteNumber.h from
new location.
* Source/NSNumber.m: Ditto.
* Source/NSURL.m: Include NSValue.h in favor of private
NSConcreteNumber.h.
* Source/NSURLHandle.m: Do not include NSConcreteNumber.h.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@17954 72102866-910b-0410-8b05-ffd578937521
2003-10-22 16:26:02 +00:00
Adam Fedor
54082d205a
Generate libgnustep-base.def at compile time.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@17950 72102866-910b-0410-8b05-ffd578937521
2003-10-22 02:45:43 +00:00
Richard Frith-Macdonald
9ecdf6cc0b
Cleanups in preparation for experimental changes to retain/relase over DO.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@17949 72102866-910b-0410-8b05-ffd578937521
2003-10-21 17:05:36 +00:00
Richard Frith-Macdonald
bbb3b1786b
New testcase
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@17948 72102866-910b-0410-8b05-ffd578937521
2003-10-21 14:28:34 +00:00
Richard Frith-Macdonald
29e0a39d46
Fix missing declarations
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@17942 72102866-910b-0410-8b05-ffd578937521
2003-10-20 15:50:08 +00:00
Richard Frith-Macdonald
ec9d52dff8
String encoding fixes
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@17917 72102866-910b-0410-8b05-ffd578937521
2003-10-18 06:10:41 +00:00
Nicola Pero
0720ce45b5
Makefile simplification
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@17915 72102866-910b-0410-8b05-ffd578937521
2003-10-17 13:26:30 +00:00
Nicola Pero
0663ec1fd8
Removed old obsolete variables
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@17914 72102866-910b-0410-8b05-ffd578937521
2003-10-17 13:25:55 +00:00
Nicola Pero
f275e9cf29
Removed references to old obsolete variable
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@17913 72102866-910b-0410-8b05-ffd578937521
2003-10-17 13:25:28 +00:00
Nicola Pero
19ac53fdcf
Removed old variable, tidied up usage of GNUSTEP_OBJ_DIR
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@17912 72102866-910b-0410-8b05-ffd578937521
2003-10-17 13:24:58 +00:00
Nicola Pero
7fc5e94263
Small tidiups and simplifications to Makefile.postamble
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@17911 72102866-910b-0410-8b05-ffd578937521
2003-10-17 13:14:11 +00:00
Nicola Pero
071985c3ba
Use ECHO_NOTHING, ECHO_CREATING, END_ECHO. Distclean all files in a single
...
shell command. Removed unused .PHONY target.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@17910 72102866-910b-0410-8b05-ffd578937521
2003-10-17 13:13:33 +00:00
Nicola Pero
9cba5a8463
Small tidyups of makefiles
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@17909 72102866-910b-0410-8b05-ffd578937521
2003-10-17 13:07:40 +00:00
Nicola Pero
1799274be2
Removed unused (obsolete?) targets
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@17908 72102866-910b-0410-8b05-ffd578937521
2003-10-17 13:07:00 +00:00
Nicola Pero
211ff94767
Use ECHO_NOTHING, END_ECHO
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@17907 72102866-910b-0410-8b05-ffd578937521
2003-10-17 13:04:04 +00:00
Nicola Pero
0dbac648a3
Commented out unused line
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@17906 72102866-910b-0410-8b05-ffd578937521
2003-10-17 13:03:27 +00:00
Richard Frith-Macdonald
9e2e3b1b45
Minor tidyp ... change a couple of macro names
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@17904 72102866-910b-0410-8b05-ffd578937521
2003-10-16 20:41:50 +00:00
Richard Frith-Macdonald
39337dbf7d
New SIGPIPE behavior
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@17903 72102866-910b-0410-8b05-ffd578937521
2003-10-16 18:31:38 +00:00
Richard Frith-Macdonald
5c31ef0e4b
Bugfix ... don't override handler for sigpipe if one is set.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@17902 72102866-910b-0410-8b05-ffd578937521
2003-10-16 15:48:48 +00:00
Nicola Pero
77dfd1008b
Do not #include signal.h when compiling NSObject.m ... it seems unused
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@17901 72102866-910b-0410-8b05-ffd578937521
2003-10-16 14:56:35 +00:00
Nicola Pero
a4991a58f2
Another change to SSL's makefiles - batched with the previous one in the makefile
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@17895 72102866-910b-0410-8b05-ffd578937521
2003-10-15 11:35:39 +00:00
Nicola Pero
0395a09f45
Remove unneeded rule
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@17894 72102866-910b-0410-8b05-ffd578937521
2003-10-15 11:33:49 +00:00