Commit graph

2980 commits

Author SHA1 Message Date
mccallum
330386bee2 (mframe_build_return): Change the way values of type smaller than
(int) are returned---don't offset into the int.  (Recommended by
Richard Frith-Macdonald <richard@brainstorm.co.uk>.)


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@2027 72102866-910b-0410-8b05-ffd578937521
1997-01-09 15:45:08 +00:00
mccallum
056e3d4cad (-dealloc): Added call to NSDeallocateObject() to ensure that the
memory used by the enumerator is released.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@2026 72102866-910b-0410-8b05-ffd578937521
1997-01-09 15:39:41 +00:00
mccallum
d925b12d82 (-initForWritingToStream:withFormatVersion:cStreamClass:cStreamFormatVersion:):
Release stream after invoking initialisation method of super which
retains it.  To fix memory leaks.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@2025 72102866-910b-0410-8b05-ffd578937521
1997-01-09 15:38:54 +00:00
mccallum
0bd07c5ee6 Release packet after invoking initialisation method of super which
retains it.  To fix memory leaks.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@2024 72102866-910b-0410-8b05-ffd578937521
1997-01-09 15:38:28 +00:00
mccallum
19f7c6df52 *** empty log message ***
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@2023 72102866-910b-0410-8b05-ffd578937521
1997-01-06 22:50:03 +00:00
mccallum
5c5bd427dc ([NSDictionary -initWithContentsOfFile:]): Implemented. (By David
Wetzel <dave@turbocat.de>.)


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@2022 72102866-910b-0410-8b05-ffd578937521
1997-01-06 22:43:08 +00:00
mccallum
cd0f233c55 [NSAssertionHandler -handleFailureInMethod:object:file:
lineNumber:description:]: Use the FORMAT argument!  (Reported by
Wolfgang Baron <wbaron@ixpoint.de>.)


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@2021 72102866-910b-0410-8b05-ffd578937521
1997-01-06 22:40:16 +00:00
mccallum
f66456b319 ([NSString -hasPrefix:]): Fix logic to return correct value.
(Reported by David Wetzel <dave@turbocat.de>.)


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@2020 72102866-910b-0410-8b05-ffd578937521
1997-01-06 22:36:21 +00:00
mccallum
d0e79b54c9 (NSLogPageSize): Fix logic to return correct value.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@2019 72102866-910b-0410-8b05-ffd578937521
1997-01-06 22:34:37 +00:00
mccallum
5b8ea53689 Changes by Adam Fedor. See Nov 13 ChangeLog entry
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@2018 72102866-910b-0410-8b05-ffd578937521
1997-01-06 22:30:33 +00:00
mccallum
f25cb10514 * src/mframe.m (mframe_build_return()):
Cooperate with [Connection forwardForProxy:selector:argFrame:] so
	that it's callback function is called to tell it dismiss the
	ConnectedDecoder.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@2017 72102866-910b-0410-8b05-ffd578937521
1997-01-06 22:22:30 +00:00
mccallum
b5f8117ecf * src/Connection.m ([Connection +rootProxyAtName:onHost:]):
Return nil if we fail to create a port for talking to a remote server.
        ([Connection forwardForProxy:selector:argFrame:]):
        Changes to ensure that ConnectedDecoder is correctly dismissed in the
	case where a DO method returns an object but does not have any
	parameter values returned.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@2016 72102866-910b-0410-8b05-ffd578937521
1997-01-06 22:22:11 +00:00
mccallum
4a657ff30c * src/RunLoop.m ([RunLoop -limitDateForMode:]):
Various changes to get timeouts working reliably.
	Ensure that _current_mode is restored correctly on exit.

        * src/RunLoop.m ([RunLoop -acceptInputForMode:beforeDate:]):
	Ensure that _current_mode is restored correctly on exit.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@2015 72102866-910b-0410-8b05-ffd578937521
1997-01-06 22:21:02 +00:00
mccallum
bd119c71f6 ([NSString -description]): Free DEST to prevent memory leak!
(Reported by Wolfgang Baron <wbaron@ixpoint.de>.)


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@2014 72102866-910b-0410-8b05-ffd578937521
1997-01-06 22:14:35 +00:00
mccallum
d9a8faf644 (_NSUncaughtExceptionHandler): Don't declare it static. (Reported by
John Hethcox <johnhe@vnet.net>.)


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@2013 72102866-910b-0410-8b05-ffd578937521
1997-01-06 22:11:02 +00:00
mccallum
15d5f586d9 (BITSPERBYTE): If it hasn't been defined after #include's guess that
it's 8.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@2012 72102866-910b-0410-8b05-ffd578937521
1997-01-06 22:09:19 +00:00
mccallum
bf5c3ebfd4 (GNUSTEP_MFILES): Added NSLog.m.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@2011 72102866-910b-0410-8b05-ffd578937521
1997-01-06 22:06:06 +00:00
mccallum
caf1056727 Add NSLog definitions.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@2010 72102866-910b-0410-8b05-ffd578937521
1997-01-06 22:05:50 +00:00
mccallum
b5b84194f3 Completely rewritten by Adam Fedor.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@2009 72102866-910b-0410-8b05-ffd578937521
1997-01-06 22:04:07 +00:00
mccallum
0051a4adcb Include <gnustep/base/config.h>
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@2008 72102866-910b-0410-8b05-ffd578937521
1997-01-06 22:00:31 +00:00
mccallum
526914ba8a Use NSDefaultMallocZone() instead of 0. And cosmetic changes.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@2007 72102866-910b-0410-8b05-ffd578937521
1997-01-06 21:44:55 +00:00
mccallum
9047ffbd44 Use constructor attribute with initialize().
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@2006 72102866-910b-0410-8b05-ffd578937521
1997-01-06 21:38:10 +00:00
mccallum
0d4b1db0e4 Complete rewrite by Yoo C. Chung.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@2005 72102866-910b-0410-8b05-ffd578937521
1997-01-06 21:35:52 +00:00
mccallum
6abe3e01ec Use valloc() in NSAllocateMemoryPages().
Cosmetic style changes.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@2004 72102866-910b-0410-8b05-ffd578937521
1997-01-06 21:35:19 +00:00
mccallum
e1a87cc04b Use NSDefaultMallocZone() instead of 0.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@2003 72102866-910b-0410-8b05-ffd578937521
1997-01-06 21:35:01 +00:00
mccallum
56c962b4a3 Use NSDefaultMallocZone() instead of NS_NOZONE.
Use NSZoneFromPointer() instead of NSZoneFromPtr().


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@2002 72102866-910b-0410-8b05-ffd578937521
1997-01-06 21:34:06 +00:00
mccallum
84088a8468 * src/DelegatePool.m:
Use NSDefaultMallocZone() instead of NS_NOZONE.
	* src/NSProcessInfo.m: Likewise.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@2001 72102866-910b-0410-8b05-ffd578937521
1997-01-06 21:33:32 +00:00
mccallum
620cc9c6f4 Removed RCS keyword.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@2000 72102866-910b-0410-8b05-ffd578937521
1997-01-06 21:06:20 +00:00
mccallum
965ff7e9f2 The definition of LABEL needed expanding.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1999 72102866-910b-0410-8b05-ffd578937521
1997-01-06 21:02:08 +00:00
mccallum
279445c32e ([NSString -componentsSeparatedByString:]): Didn't handle strings with
separators longer than a single character and in other cases.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1998 72102866-910b-0410-8b05-ffd578937521
1997-01-06 21:01:32 +00:00
mccallum
16f14b70dd *** empty log message ***
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1997 72102866-910b-0410-8b05-ffd578937521
1997-01-05 23:26:25 +00:00
mccallum
00ccd7b853 (init_autorelease_thread_vars): Fix typo.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1996 72102866-910b-0410-8b05-ffd578937521
1997-01-05 23:19:22 +00:00
mccallum
cec7d4bb60 ([NSGMutableCString -insertString:atIndex:]): Use -cStringNoCopy
instead of the removed method -_cStringContents.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1995 72102866-910b-0410-8b05-ffd578937521
1997-01-05 23:17:52 +00:00
mccallum
35381a6ad8 Add awake.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1994 72102866-910b-0410-8b05-ffd578937521
1997-01-05 22:52:57 +00:00
mccallum
567c2e1ae2 Don't include <gnustep/base/String.h>
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1993 72102866-910b-0410-8b05-ffd578937521
1997-01-05 22:52:27 +00:00
mccallum
30950ac97e (StreamException): Change type to NSString from id <String>.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1992 72102866-910b-0410-8b05-ffd578937521
1997-01-05 22:52:15 +00:00
mccallum
74caa9f18a (NSUserName, NSHomeDirectory, NSDirectoryForUser): Declare them
unconditionally; before it was conditioned on NEXT_FOUNDATION.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1991 72102866-910b-0410-8b05-ffd578937521
1997-01-05 22:51:22 +00:00
mccallum
7cb93c0a5e (NSUserName, NSHomeDirectory, NSDirectoryForUser): Change the return
types from (char*) to (NSString*).


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1990 72102866-910b-0410-8b05-ffd578937521
1997-01-05 22:50:30 +00:00
mccallum
74bf93c4fc (init_autorelease_thread_vars): Make it a macro instead of a static
inline function.  This avoids the warning with not optimizing.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1989 72102866-910b-0410-8b05-ffd578937521
1997-01-05 22:49:30 +00:00
mccallum
9bcfb8509d ([Decoder +readSignatureFromCStream:csgetClassname:
nameformatVersion:version]): Better commented.
([Decoder -_coderSubstituteObject:atReference:]): New method.
([Decoder -_coderPushRootObjectTable]): Better commented.
([Decoder -finishDecodingInterconnectedObjects]): Implement an
approach to root-object-based -awakeAfterUsingCoder.
([Decoder -decodeObjectAt:anObjPtr:name]): Send -awakeAfterUsingCoder:
here.  First see if the object actually responds to it, then send it
and make the object substitution if necessary.  Also make the
appropriate substitution in Decoder's internal tables matching
references numbers to objects.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1988 72102866-910b-0410-8b05-ffd578937521
1997-01-05 22:47:45 +00:00
mccallum
93c73b7124 (DEFAULT_DEFAULT_FORMAT_VERSION): Renamed from DEFAULT_FORMAT_VERSION,
for clarity with variable by the same old name.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1987 72102866-910b-0410-8b05-ffd578937521
1997-01-05 22:43:48 +00:00
mccallum
6b1354be90 Add comment and move around headers for easier reading.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1986 72102866-910b-0410-8b05-ffd578937521
1997-01-05 22:42:49 +00:00
mccallum
aab38d4351 New file.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1985 72102866-910b-0410-8b05-ffd578937521
1997-01-05 22:41:44 +00:00
mccallum
4e2714bcf7 (CFLAGS): Remove -O, for easier debugging.
(SRCS): Added awake.m.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1984 72102866-910b-0410-8b05-ffd578937521
1997-01-05 22:41:36 +00:00
mccallum
9c1198ff9f Fixed `Caveats' comment.
([NSString -commonPrefixWithString:options:]): Method implemeneted.
([NSString -capitalizedString]): Method implemented.
([NSString -lowercaseString]): Method implemented.
([NSString -uppercaseString]): Method implemented.
([NSString -stringByExpandingTildeInPath]): Method implemented.
([NSString -stringByAbbreviatingWithTildeInPath]): Method implemented.
([NSString -stringByStandardizingPath]): Method implemented.
([NSString -_cStringContents]): Method removed.  All callers changed
to use -cStringNoCopy.
([NSString -objectAtIndex:]): Method removed.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1955 72102866-910b-0410-8b05-ffd578937521
1996-11-24 21:04:24 +00:00
mccallum
cdd4c88577 Moved non-OpenStep methods aside, put some under STRICT_OPENSTEP,
others under NO_GNUSTEP.  Reordered declarations to match.
[NSString -_cStringContents]: Method removed.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1954 72102866-910b-0410-8b05-ffd578937521
1996-11-24 21:00:28 +00:00
mccallum
630e258c7a Don't use old String methods; use NSString methods.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1953 72102866-910b-0410-8b05-ffd578937521
1996-11-24 18:31:13 +00:00
mccallum
20cc0bb160 Don't include <gnustep/base/String.h> and
<gnustep/base/IndexCollection.h>.
[!NO_GNUSTEP]: Declare -cStringNoCopy.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1952 72102866-910b-0410-8b05-ffd578937521
1996-11-24 18:30:48 +00:00
mccallum
d862849914 Don't include <gnustep/base/String.h>
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1951 72102866-910b-0410-8b05-ffd578937521
1996-11-24 18:29:25 +00:00
mccallum
8d6d910056 ([TextCStream -decodeName:name]): Don't use the non-existant
+stringWithCStringNoCopy:.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1950 72102866-910b-0410-8b05-ffd578937521
1996-11-24 18:29:09 +00:00