Commit graph

5993 commits

Author SHA1 Message Date
thoran
afc5f3d31e 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
ayers
4e4df7b974 * 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
CaS
61cf6fa9e9 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
alexm
ccf66c5058 (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
alexm
f97029e9b2 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
CaS
b75764eba4 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
CaS
ae99be2995 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
CaS
2d71ebd08f 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
alexm
6f9e959f46 ([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
CaS
82c043f108 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
CaS
009855161e 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
CaS
248f589502 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
ayers
b5dd8fa367 * 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
ayers
dfef5c3ecb 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
ayers
e8eb4809bb 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
ayers
86f35c472c * 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
fedor
b462208383 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
fedor
4047855ba5 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
CaS
12d355b077 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
CaS
c69d8e9034 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
CaS
ba1698ff9c 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
CaS
0a746f0769 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
CaS
1d2a10c000 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
CaS
f7ade29170 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
CaS
e2031f940d 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
fedor
242b89e10e 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
ayers
20704de08d * 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
CaS
034969baa0 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
CaS
3baba2414f 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
ayers
0db6d0ea2f * 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
fedor
98cd044ac6 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
CaS
b08343d175 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
CaS
89b08c9c88 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
CaS
932682ba38 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
CaS
0627eb75aa 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
nico
e723e30c14 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
nico
ca88c8d721 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
nico
4f4abc1b4d 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
nico
3d82b398e7 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
nico
796bfaeef6 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
nico
d06e9f6c2d 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
nico
15a3cd8f3b 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
nico
daf74058f2 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
nico
ef70921695 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
nico
8024853289 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
CaS
7f5174c76a 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
CaS
d113f2549c 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
CaS
0cd5b3a710 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
nico
bd9830583d 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
nico
359821ba6e 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