Commit graph

786 commits

Author SHA1 Message Date
mccallum
86f5ef9aa3 Change many method return types to void.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@953 72102866-910b-0410-8b05-ffd578937521
1996-02-22 15:49:46 +00:00
mccallum
c2b27dfa19 Subclass from Encoder and Decoder, not Coder.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@952 72102866-910b-0410-8b05-ffd578937521
1996-02-22 15:49:05 +00:00
mccallum
dbb41b30ee (GNUSTEP_OTHER_SRCFILES): Add NSCallBacks.h.
(GNUSTEP_HEADERS): Remove Foundation/NSCallBacks.h.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@951 72102866-910b-0410-8b05-ffd578937521
1996-02-22 15:48:36 +00:00
mccallum
c20d71b3e7 New file.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@950 72102866-910b-0410-8b05-ffd578937521
1996-02-22 15:47:04 +00:00
mccallum
d48819ed4a (CFLAGS): Remove -Wno-implicit.
(GNU_MFILES): Remove BinaryTreeEltNode.m, LinkedListEltNode.m,
RNTreeEltNode.m.  Add Decoder.m, Encoder.m.  Temporarily remove
ConnectedCoder.m, Connection.m, RetainingNotifier.m, Time.m.
(GNU_CFILES): Add allocs.c.
(GNU_OBJS): Change order to create BASICS and CALLBACKS first.
(GNU_HEADERS): Remove BinaryTreeEltNode.h, EltNode-h, EltNode-m,
LinkedListEltNode.h, RBTreeEltNode.h.
(GNUSTEP_MFILES): NSCallBacks.m.
(GNUSTEP_HEADERS): Foundation/NSCallBacks.h.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@949 72102866-910b-0410-8b05-ffd578937521
1996-02-22 15:43:34 +00:00
mccallum
1a34c9461b New version from Albin Jones, plus fixes by McCallum.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@948 72102866-910b-0410-8b05-ffd578937521
1996-02-22 15:25:44 +00:00
mccallum
f46b4d9b55 Overhaul for new collection class scheme to improve distributed
objects and NeXT-compatibility.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@947 72102866-910b-0410-8b05-ffd578937521
1996-02-22 15:18:57 +00:00
mccallum
7853b9d1b0 Use new Archiver classes instead of Coder.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@946 72102866-910b-0410-8b05-ffd578937521
1996-02-22 15:17:12 +00:00
mccallum
34efa0e691 Use NSMapTable instead of Dictionary class.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@945 72102866-910b-0410-8b05-ffd578937521
1996-02-22 15:15:46 +00:00
mccallum
8091890758 Overhaul for new collection class scheme to improve distributed
objects and NeXT-compatibility.  Change several methods to return void.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@944 72102866-910b-0410-8b05-ffd578937521
1996-02-22 15:15:10 +00:00
mccallum
e4bc27b154 ([CString -initWithCString:range:]): Don't make super call.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@943 72102866-910b-0410-8b05-ffd578937521
1996-02-22 15:13:53 +00:00
mccallum
25e7dd2beb ([BinaryCStream -decodeValueOfCType:at:withName:]): Make save_type const.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@942 72102866-910b-0410-8b05-ffd578937521
1996-02-22 15:13:13 +00:00
mccallum
f93c5d41c9 Don't include <objects/eltfuncs.h>.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@941 72102866-910b-0410-8b05-ffd578937521
1996-02-22 15:12:41 +00:00
mccallum
9c3783b952 Overhaul for new collection class scheme to improve distributed objects and NeXT-compatibility.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@940 72102866-910b-0410-8b05-ffd578937521
1996-02-22 15:11:43 +00:00
mccallum
72114c01b0 Comment change.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@939 72102866-910b-0410-8b05-ffd578937521
1996-02-22 15:04:58 +00:00
mccallum
8d472044bc (GNU_MFILES): Removed EltNodeCollector.m.
(GNU_HEADERS): Removed objects/EltNodeCollector.h.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@935 72102866-910b-0410-8b05-ffd578937521
1996-02-15 16:18:32 +00:00
mccallum
459fb4cd85 (RCS_FILES): Add Makefile.sed.nt.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@933 72102866-910b-0410-8b05-ffd578937521
1996-02-14 17:25:35 +00:00
mccallum
8c23a109e3 (GNU_MFILES): Added OrderedCollection.m.
(GNU_HEADERS): Added objects/OrderedCollection.h and
objects/OrderedCollecting.h.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@931 72102866-910b-0410-8b05-ffd578937521
1996-02-14 01:50:15 +00:00
mccallum
7c2b450244 *** empty log message ***
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@930 72102866-910b-0410-8b05-ffd578937521
1996-02-14 00:24:34 +00:00
mccallum
27ce65acca *** empty log message ***
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@924 72102866-910b-0410-8b05-ffd578937521
1996-02-13 17:52:01 +00:00
mccallum
9cd6085b31 Fix typos.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@923 72102866-910b-0410-8b05-ffd578937521
1996-02-13 17:33:41 +00:00
mccallum
8f163dd74a .
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@920 72102866-910b-0410-8b05-ffd578937521
1996-02-13 16:28:54 +00:00
mccallum
fc41748fe2 (GNU_MFILES): Added RawCStream.m.
(GNU_HEADERS): Added objects/RawCStream.h.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@919 72102866-910b-0410-8b05-ffd578937521
1996-02-13 16:11:55 +00:00
mccallum
5b216a6440 New file from Georg Tuparev
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@918 72102866-910b-0410-8b05-ffd578937521
1996-02-13 16:09:50 +00:00
mccallum
26d425b88c (GNUSTEP_MFILES): Added NSNotification.m and NSNotificationCenter.m
from Georg Tuparev.
(GNUSTEP_HEADERS): Added Foundation/NSNotification.h from Georg
Tuparev.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@916 72102866-910b-0410-8b05-ffd578937521
1996-02-13 16:00:50 +00:00
mccallum
c30185d83d WinNT and thread-related odifications from Scott Christley
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@915 72102866-910b-0410-8b05-ffd578937521
1996-02-13 15:43:30 +00:00
mccallum
af3f9994e4 New files from Scott Christley
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@914 72102866-910b-0410-8b05-ffd578937521
1996-02-13 15:40:05 +00:00
mccallum
f201ceee8c New file from Albin Jones
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@910 72102866-910b-0410-8b05-ffd578937521
1996-02-13 02:35:45 +00:00
mccallum
67476f08fc *** empty log message ***
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@909 72102866-910b-0410-8b05-ffd578937521
1996-02-13 02:31:48 +00:00
mccallum
d27188df8c (GNUSTEP_MFILES): Added NSHashTable.m and NSMapTable.m.
(GNUSTEP_HEADERS): Added Foundation/NSHashTable.h and
Foundation/NSMapTable.h.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@908 72102866-910b-0410-8b05-ffd578937521
1996-02-13 02:25:54 +00:00
mccallum
1975110e5d Declare new method.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@901 72102866-910b-0410-8b05-ffd578937521
1996-02-13 01:55:46 +00:00
mccallum
ae17891717 ([Collection -withObjectsInvoke:]): New method.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@900 72102866-910b-0410-8b05-ffd578937521
1996-02-13 01:55:34 +00:00
mccallum
f65e426c41 Declare new methods.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@899 72102866-910b-0410-8b05-ffd578937521
1996-02-13 01:54:48 +00:00
mccallum
c8f0eaf056 ([Invocation -invoke]): Terminate copy of encoding string. Deal with
void return type.
([Invocation -invokeWithElement:]): Method removed.
([Invocation -invokeWithObject:]): Make is -subclassResponsibility.
([Invocation -getReturnValue:]): Make sure return_value is non-NULL.
([ArgframeInvocation -initWithArgframe:type:]): Use objc_calloc.
([MethodInvocation -initWithArgframe:selector:]): Try hard to get a
selector with a type string.
([MethodInvocation -initWithTarget:selector:...]): New method.
([MethodInvocation -invoke]): Get the target and selector properly.
([MethodInvocation -invokeWithObject:]): New method.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@898 72102866-910b-0410-8b05-ffd578937521
1996-02-13 01:54:32 +00:00
mccallum
579b7fe4cd ([NSUnarchiver +allocWithZone:]): New method.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@897 72102866-910b-0410-8b05-ffd578937521
1996-02-13 01:50:29 +00:00
mccallum
a1cd144d7b ([Coder -decodeObject]): Return the object.
([Coder -initForReadingWithData:]): New method.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@896 72102866-910b-0410-8b05-ffd578937521
1996-02-13 01:50:03 +00:00
mccallum
b84fb64d50 Use -subclassResponsibility instead of -notImplemented
where appropriate.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@893 72102866-910b-0410-8b05-ffd578937521
1996-02-01 17:04:17 +00:00
mccallum
f3f5c9b1fe ([Coder -_coderCreateReferenceForObject:]): Beginning with this
method, put in, but comment out, new ideas for "tag-less" coder
streams; this will allow for smaller archives.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@889 72102866-910b-0410-8b05-ffd578937521
1996-02-01 03:29:56 +00:00
mccallum
c24356dc27 ([Coder -closeCoding]): Method renamed from -closeCoder.
([Coder +encodeRootObject:withName:toStream:]): Make -closeCoding name
change.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@885 72102866-910b-0410-8b05-ffd578937521
1996-01-28 02:18:13 +00:00
mccallum
7d66b3eb2f (CommonCoding -closeCoding): Renamed from -coderCoder, so it is not so
exclusively associated with the Coding class, but also all subclasses
that implement a *Coding protocol.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@884 72102866-910b-0410-8b05-ffd578937521
1996-01-28 02:16:24 +00:00
mccallum
8a35ff8305 Rename methods.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@883 72102866-910b-0410-8b05-ffd578937521
1996-01-28 02:10:37 +00:00
mccallum
315b64ea8d ([Coder +newReadingFromStream:]): Renamed from
coderReadingFromStream:, because it's silly to have different names
for this method for subclasses of Coder.  Don't autorelease returned
object (I also find this more helpful).


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@882 72102866-910b-0410-8b05-ffd578937521
1996-01-28 02:09:10 +00:00
mccallum
666be690b4 ([ConnectedCoder +newDecodingWithConnection:timeout:]): Rename
coderReadingFromStream to newReadingFromStream, and don't retain.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@881 72102866-910b-0410-8b05-ffd578937521
1996-01-28 02:07:50 +00:00
mccallum
401ec323bf (GNU_MFILES): Add Archiver.m.
(GNU_HEADERS): Add objects/Archiver.h.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@880 72102866-910b-0410-8b05-ffd578937521
1996-01-28 01:59:17 +00:00
mccallum
cc85668753 New file.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@879 72102866-910b-0410-8b05-ffd578937521
1996-01-28 01:58:35 +00:00
mccallum
41b8cd0860 (GNU_HEADERS): Added CStreaming.h.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@877 72102866-910b-0410-8b05-ffd578937521
1996-01-27 01:10:55 +00:00
mccallum
44b3266d46 Include BinaryCStream.h and TextCStream.h, not the old *Coder.h
versions.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@876 72102866-910b-0410-8b05-ffd578937521
1996-01-27 00:56:10 +00:00
mccallum
285590f7a1 (Coder): Make subclass of Coder, not BinaryCoder.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@875 72102866-910b-0410-8b05-ffd578937521
1996-01-27 00:55:38 +00:00
mccallum
17f0b02fd0 Declare new method.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@874 72102866-910b-0410-8b05-ffd578937521
1996-01-27 00:55:12 +00:00
mccallum
e3ee1bd33f ([TextCStream -encodeValueOfCType:at:withName:]): Remove the asserts
that prohibited structs and arrays.
([TextCStream -decodeValueOfCType:at:withName:]): Likewise.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@873 72102866-910b-0410-8b05-ffd578937521
1996-01-27 00:55:00 +00:00
mccallum
98284cfa16 Include the code for handling structs and arrays.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@872 72102866-910b-0410-8b05-ffd578937521
1996-01-27 00:54:11 +00:00
mccallum
73b1854c3f Include <objects/NSString.h> instead of <objects/String.h>.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@868 72102866-910b-0410-8b05-ffd578937521
1996-01-26 23:46:02 +00:00
mccallum
0f08828c73 ([ConnectedCoder +newDecodingWithConnection:timeout:]): Use
+coderReadingFromStream, not the deprecated -initReadingFromStream.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@865 72102866-910b-0410-8b05-ffd578937521
1996-01-26 20:35:30 +00:00
mccallum
1cb0268da2 ([BinaryCStream -decodeName:]): Check for NULL name.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@864 72102866-910b-0410-8b05-ffd578937521
1996-01-26 20:34:42 +00:00
mccallum
8c3c74e514 encodeObjectBycopy -> encodeBycopyObject (to better match NeXT).
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@863 72102866-910b-0410-8b05-ffd578937521
1996-01-26 20:34:21 +00:00
mccallum
c29b522cfe ([Coder +initialize]): Make BinaryCStream the default, not TextCStream.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@859 72102866-910b-0410-8b05-ffd578937521
1996-01-26 20:17:19 +00:00
mccallum
5db39dd616 *** empty log message ***
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@858 72102866-910b-0410-8b05-ffd578937521
1996-01-26 20:10:40 +00:00
mccallum
ed431743bd Move implementation of NSGUnarchiver here from NSGUnarchiver.m.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@856 72102866-910b-0410-8b05-ffd578937521
1996-01-26 20:03:30 +00:00
mccallum
22f3f8f15c ([Coder -encodeTag:]): Let the cstream handle it, if it can.
([Coder -decodeTag]): Likewise.
([Coder -encodeClass:]): Perform classname mapping ala
encodeClassName:intoClassName.
([Coder -_doEncodeBycopyObject:]): Perform callbacks
-replacementObjectForCoder, -replacementObjectForArchiver,
-classForCoder, -classForArchiver.
([Coder -encodeClassName:intoClassName:]): Fix typos.
([Coder -encodeConditionalObject:]): Don't encode *forward*
references, only backward references; apparently NeXT-style decoding
(with -decodeObject, instead of GNU's decodeObjectAt:) can't handle
them.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@855 72102866-910b-0410-8b05-ffd578937521
1996-01-26 20:02:33 +00:00
mccallum
1081b8004f Move NSUnarchiver implementation here from NSUnarchiver.m. Use
subclassResponsibility where correct.
([NSArchiver +initialize]): Make NSGArchiver the concrete class.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@852 72102866-910b-0410-8b05-ffd578937521
1996-01-26 19:53:15 +00:00
mccallum
57505e7118 (Object (ConnectedCoderCallbacks)): Category methods moved here from
Coder.m.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@851 72102866-910b-0410-8b05-ffd578937521
1996-01-26 19:49:48 +00:00
mccallum
896bb5731a (GNUSTEP_MFILES): NSUnarchiver.m and NSGUnarchiver.m removed.
(GNUSTEP_HEADERS): Foundation/NSUnarchiver.h and
Foundation/NSGUnarchiver.h removed.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@847 72102866-910b-0410-8b05-ffd578937521
1996-01-26 19:41:46 +00:00
mccallum
79d8ce80be (NSInconsistentArchiveException): String removed; it's in NSArchiver.m.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@846 72102866-910b-0410-8b05-ffd578937521
1996-01-26 19:20:10 +00:00
mccallum
09f615fc04 ([NSGArchiver +initialize]): Add the behavior of the Coder class. All
other methods deleted.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@845 72102866-910b-0410-8b05-ffd578937521
1996-01-26 19:19:20 +00:00
mccallum
3cdb041057 Some minor formatting changes.
([NSObject -classForArchiver]): Method removed; it's in NSArchiver.m.
([NSObject -replacementObjectForArchiver:]): Likewise.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@844 72102866-910b-0410-8b05-ffd578937521
1996-01-26 19:18:08 +00:00
mccallum
fef5cf6e1c .
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@843 72102866-910b-0410-8b05-ffd578937521
1996-01-26 16:50:03 +00:00
mccallum
4284f1540b (GNUSTEP_MFILES): Remove NSGCoder.m.
(GNUSTEP_HEADERS): Remove Foundation/NSGCoder.h.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@842 72102866-910b-0410-8b05-ffd578937521
1996-01-26 16:42:32 +00:00
mccallum
1a623a0c7a (self): New macro, cast to (Array*) to reflect behavior addition.
([NSGArray -initWithObjects:count:]): Call Array designated initalizer
instead of accessing ivars directly.
([NSGMutableArray -initWithCapacity:]): Likewise.
([NSGArray -count]): Method removed, Array behavior will take care of
it.
([NSGArray -objectAtIndex:]): Use self to access ivars.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@841 72102866-910b-0410-8b05-ffd578937521
1996-01-26 16:29:07 +00:00
mccallum
74187fde91 (class_add_behavior): Fix typo.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@839 72102866-910b-0410-8b05-ffd578937521
1996-01-26 16:25:32 +00:00
mccallum
98d8f79350 (class_add_behavior): If necessary, increase instance_size of class to
which behavior is being added.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@838 72102866-910b-0410-8b05-ffd578937521
1996-01-26 15:48:29 +00:00
mccallum
957e45ea77 *** empty log message ***
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@837 72102866-910b-0410-8b05-ffd578937521
1996-01-26 15:44:29 +00:00
mccallum
9ca005c003 Added generated source files.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@836 72102866-910b-0410-8b05-ffd578937521
1996-01-26 15:34:59 +00:00
mccallum
efff2f2c1c Added generated source files.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@834 72102866-910b-0410-8b05-ffd578937521
1996-01-26 15:34:05 +00:00
mccallum
6bfa5879d9 ([NSArchiver +initialize]): Set concrete class to Coder.
([NSArchiver +allocWithZone:]): New method.
([NSArchiver -initForWritingWithMutableData:]): Make this a subclass
responsibility.
([NSArchiver -versionForClassName:]): New method.
([NSArchiver +unarchiveObjectWithData:data]): New method.
([NSArchiver +unarchiveObjectWithFile:path]): Call concrete class.
([NSArchiver +classNameEncodedForTrueClassName:]): Likewise.
([NSArchiver +classNameDecodedForArchiveClassName:inArchiveName]):
Likewise.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@833 72102866-910b-0410-8b05-ffd578937521
1996-01-26 03:15:14 +00:00
mccallum
e086b5a24f ([NSGData -writeToFile:atomically:]): Use cStringNoCopy.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@829 72102866-910b-0410-8b05-ffd578937521
1996-01-26 03:10:13 +00:00
mccallum
53cb854a9f ([MemoryStream -init]): New method, otherwise naive creation dies with
NULL buffer.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@828 72102866-910b-0410-8b05-ffd578937521
1996-01-26 03:09:38 +00:00
mccallum
f894275a83 (Coding -cStream): New method.
(Coder -encodeArrayOfObjCType:count:at:withName:): Renamed from
-encodeArrayOfObjCType:at:count:withName:, to better match NeXT.
(Coder -decodeArrayOfObjCType:count:at:withName:): Likewise.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@827 72102866-910b-0410-8b05-ffd578937521
1996-01-26 03:08:47 +00:00
mccallum
03db0b9686 (zone): New ivar.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@826 72102866-910b-0410-8b05-ffd578937521
1996-01-26 03:07:34 +00:00
mccallum
f851b473fb ([Coder -_initWithCStream:formatVersion:isDecoding:]): Initialize new
zone ivar.
([Coder -encodeBycopyObject:withName:]): Renamed from
-encodeObjectBycopy, to better match NeXT.
([Coder -decodeObjectAt:anObjPtr:name]): Use zone ivar in creating
decoded objects.
([Coder -encodeArrayOfObjCType:count:at:withName:]): Renamed from
-encodeArrayOfObjCType:at:count:withName:, to better match NeXT.
([Coder -decodeArrayOfObjCType:count:at:withName:]): Likewise.
([Coder +classNameEncodedForTrueClassName:trueName]): New method, for
NSCoder compatibility.
([Coder -encodeClassName:trueNameintoClassName:inArchiveName]):
Likewise.
([Coder +classNameDecodedForArchiveClassName:inArchiveName]):
Likewise.
([Coder +decodeClassName:inArchiveNameasClassName:]): Likewise.
([Coder -objectZone]): Likewise.
([Coder -setObjectZone:]): Likewise.
([Coder -encodeValueOfObjCType:at:]): Likewise.
([Coder -encodeArrayOfObjCType:count:at:]): Likewise.
([Coder -encodeBycopyObject:]): Likewise.
([Coder -encodeConditionalObject:]): Likewise.
([Coder -encodeDataObject:]): Likewise.
([Coder -encodeObject:]): Likewise.
([Coder -encodePoint:]): Likewise.
([Coder -encodeRect:]): Likewise.
([Coder -encodeRootObject:]): Likewise.
([Coder -encodeSize:]): Likewise.
([Coder -encodeValuesOfObjCTypes:...:]): Likewise.
([Coder -decodeValueOfObjCType:at:]): Likewise.
([Coder -decodeArrayOfObjCType:count:at:]): Likewise.
([Coder -decodeDataObject]): Likewise.
([Coder -decodeObject]): Likewise.
([Coder -decodePropertyList]): Likewise.
([Coder -decodePoint]): Likewise.
([Coder -decodeRect]): Likewise.
([Coder -decodeSize]): Likewise.
([Coder -decodeValuesOfObjCTypes:...:]): Likewise.
([Coder -systemVersion]): Likewise.
([Coder -versionForClassName:]): Likewise.
([Coder -initForWritingWithMutableData:]): New method, for
NSArchiver compatibility.
([Coder +archivedDataWithRootObject:]): Likewise.
([Coder +archiveRootObject:toFile:]): Likewise.
([Coder +unarchiveObjectWithData:data]): Likewise.
([Coder +unarchiveObjectWithFile:path]): Likewise.
([Coder -archiverData]): Likewise.
([Coder -cStream]): New method.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@825 72102866-910b-0410-8b05-ffd578937521
1996-01-26 03:06:35 +00:00
mccallum
b117bfc60c ([StdioStream -isClosed]): Remove bad implementation; currently not
implemented.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@821 72102866-910b-0410-8b05-ffd578937521
1996-01-25 17:12:51 +00:00
mccallum
1efc28f15d Declare new methods.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@820 72102866-910b-0410-8b05-ffd578937521
1996-01-25 16:59:00 +00:00
mccallum
8675874d91 ([Coder -initForWritingToStream:withFormatVersion:cStreamClass:
cStreamFormatVersion:]): New method.
([Coder -initForWritingToFile:withFormatVersion:cStreamClass:
cStreamFormatVersion:]): New method.
([Coder -initForWritingToFile:filenamewithCStreamClass:cStreamClass]):
New method.
([Coder +encodeRootObject:withName:nametoStream:]): New method.
([Coder +encodeRootObject:withName:nametoFile:filename]): New method.
([Coder +decodeObjectWithName:namefromStream:]): New method.
([Coder +decodeObjectWithName:namefromFile:filename]): New method.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@819 72102866-910b-0410-8b05-ffd578937521
1996-01-25 16:58:36 +00:00
mccallum
6991e266a7 Declare new method.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@818 72102866-910b-0410-8b05-ffd578937521
1996-01-25 16:54:53 +00:00
mccallum
ca29ea6a80 Use "..withFormatVersion" instead of "formatVersion" in several method
names.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@817 72102866-910b-0410-8b05-ffd578937521
1996-01-25 16:54:14 +00:00
mccallum
aee300baa1 ([MemoryStream -closeStream]): New method, just flush the stream.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@816 72102866-910b-0410-8b05-ffd578937521
1996-01-25 15:29:30 +00:00
mccallum
e6b2bd4f25 (Coding -closeCoder): New protocol method.
(Coding -isClosed): New protocol method.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@815 72102866-910b-0410-8b05-ffd578937521
1996-01-25 15:28:13 +00:00
mccallum
2047caaf47 ([Coder -initForReadingFromFile:filename]): New method.
([Coder -initForWritingToFile:filename]): New method.
([Coder -closeCoder]): New method.
([Coder -isClosed]): New method.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@814 72102866-910b-0410-8b05-ffd578937521
1996-01-25 15:27:30 +00:00
mccallum
00fb974d7a ([StdioStream -isClosed]): New method.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@813 72102866-910b-0410-8b05-ffd578937521
1996-01-25 15:23:06 +00:00
mccallum
1c3393356a (Streaming -isClosed): New protocol method.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@812 72102866-910b-0410-8b05-ffd578937521
1996-01-25 15:15:01 +00:00
mccallum
42d8d67632 ([Stream -flushStream]): Do nothing, instead of calling
-subclassResponsibility.
([Stream -closeStream]): Likewise.
([Stream -isClosed]): New method, return NO.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@811 72102866-910b-0410-8b05-ffd578937521
1996-01-25 15:14:32 +00:00
mccallum
ec1dee32e5 ([MemoryStream -flushStream]): Method removed.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@810 72102866-910b-0410-8b05-ffd578937521
1996-01-25 15:11:40 +00:00
mccallum
c7a7c83655 ([StdioStream -closeStream]): New method.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@809 72102866-910b-0410-8b05-ffd578937521
1996-01-24 15:41:04 +00:00
mccallum
410ac7ad28 ([Stream -closeStream]): New method.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@808 72102866-910b-0410-8b05-ffd578937521
1996-01-24 15:37:09 +00:00
mccallum
74767d8f8f (Streaming -closeStream): New method; we must separate the idea of
"closing" a stream and "deallocating" a stream because of delays in
deallocation due to -autorelease.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@807 72102866-910b-0410-8b05-ffd578937521
1996-01-24 15:36:50 +00:00
mccallum
5421611a27 Declare new methods.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@806 72102866-910b-0410-8b05-ffd578937521
1996-01-24 15:06:15 +00:00
mccallum
b05b881fa8 ([CStream -encodeWithName:valuesOfCTypes:...]): New method.
([CStream -decodeWithName:valuesOfCTypes:...]): New method.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@805 72102866-910b-0410-8b05-ffd578937521
1996-01-24 15:06:04 +00:00
mccallum
25df3a8cbd Include <objects/NSString.h> for @"" in encoding withName:. Use
constant string objects instead of C strings where appropriate.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@804 72102866-910b-0410-8b05-ffd578937521
1996-01-24 14:13:30 +00:00
mccallum
378e4c65b7 ([String -initWithCStringNoCopy:freeWhenDone:]): New method.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@803 72102866-910b-0410-8b05-ffd578937521
1996-01-24 14:12:44 +00:00
mccallum
2e84da89f9 ([Stream -writeFormat:arguments:]): New method.
([Stream -readFormat:arguments:]): New method.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@802 72102866-910b-0410-8b05-ffd578937521
1996-01-24 14:12:19 +00:00
mccallum
7d821d5a96 Include <objects/NSString.h> for @"" in encoding withName:.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@801 72102866-910b-0410-8b05-ffd578937521
1996-01-24 14:11:55 +00:00
mccallum
43e22d67ef Use constant string objects instead of C strings where appropriate.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@800 72102866-910b-0410-8b05-ffd578937521
1996-01-24 14:11:20 +00:00
mccallum
edbdf07d18 New file.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@799 72102866-910b-0410-8b05-ffd578937521
1996-01-24 14:09:55 +00:00
mccallum
53017ca679 (SIGNATURE_FORMAT_STRING): New macro.
([Coder -writeSignature]): Use it.
([Coder +readSignatureFromCStream:getClassname:formatVersion:]):
Likewise, and receive (char*) instead of (char**).  All callers
changed.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@798 72102866-910b-0410-8b05-ffd578937521
1996-01-24 14:03:19 +00:00
mccallum
c03157191d Include <objects/NSString.h> for @"" in encoding withName:.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@797 72102866-910b-0410-8b05-ffd578937521
1996-01-24 14:02:00 +00:00
mccallum
07b43d0e5d Use string objects instead of C strings
for name arguments to encoding methods.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@796 72102866-910b-0410-8b05-ffd578937521
1996-01-24 03:33:21 +00:00
mccallum
a11f420b91 Add errs*.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@795 72102866-910b-0410-8b05-ffd578937521
1996-01-24 03:28:58 +00:00
mccallum
5070e6640c (Streaming -writeFormat:arguments:): New method.
(Streaming -readFormat:arguments:): New method.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@791 72102866-910b-0410-8b05-ffd578937521
1996-01-24 03:20:47 +00:00
mccallum
d0832c6aef Don't include <objects/String.h>
(Coding -encodeValueOfCType:at:withName:): New method.
(Coding -decodeValueOfCType:at:withName:): New method.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@790 72102866-910b-0410-8b05-ffd578937521
1996-01-24 03:19:37 +00:00
mccallum
c8a88cede5 Declare new methods.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@789 72102866-910b-0410-8b05-ffd578937521
1996-01-24 03:18:01 +00:00
mccallum
e71c6fc2c0 (GNU_MFILES): Add BinaryCStream.m and CStream.m.
(GNU_HEADERS): Add objects/BinaryCStream.h and objects/CStream.h.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@788 72102866-910b-0410-8b05-ffd578937521
1996-01-24 03:17:27 +00:00
mccallum
072436a019 (handle_printf_atsign): Fix type for va_arg ().
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@787 72102866-910b-0410-8b05-ffd578937521
1996-01-24 03:16:35 +00:00
mccallum
bffd394704 Use <Encoding> and <Decoding> protocols in argument types.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@786 72102866-910b-0410-8b05-ffd578937521
1996-01-24 03:16:05 +00:00
mccallum
a2356ca024 ([ConnectedCoder +newEncodingWithConnection:sequenceNumber:identifier:]):
Use new Coder initializer.
([ConnectedCoder +newDecodingWithConnection:timeout:]): Likewise.
([ConnectedCoder -dismiss]): Fix typo: use cstream ivar.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@785 72102866-910b-0410-8b05-ffd578937521
1996-01-24 03:15:23 +00:00
mccallum
1465984e36 ([Coder -writeSignature]): Write directly to stream ivar.
([Coder +readSignatureFromCStream:getClassname:PtrformatVersion:]):
Likewise.
([Coder -initForReadingFromStream:s]): New method.
([Coder -initForWritingToStream:s]): New method.
([Coder +coderWritingToStream:]): New method.
([Coder +coderWritingToFile:]): New method.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@784 72102866-910b-0410-8b05-ffd578937521
1996-01-24 03:12:36 +00:00
mccallum
b0967c5ce0 (GNU_MFILES): Remove BinaryCoder.m. and TextCoder.m
(GNU_HEADERS): Remove objects/BinaryCoder.h and objects/TextCoder.h.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@783 72102866-910b-0410-8b05-ffd578937521
1996-01-24 00:33:22 +00:00
mccallum
e8e57eaff3 Use new-style method name "..ValueOfObjCType"
and "..ValueOfCType", instead of "..ValueOfType" and
"..ValueOfSimpleType".


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@781 72102866-910b-0410-8b05-ffd578937521
1996-01-23 23:57:17 +00:00
mccallum
97ceb69629 ([NSString +initialize]): Cast function pointer.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@780 72102866-910b-0410-8b05-ffd578937521
1996-01-23 23:41:02 +00:00
mccallum
b74458b94a This new code, #if HAVE_REGISTER_PRINTF_FUNCTION, a function defined
by GNU libc.
(handle_printf_atsign): New function to handle %@ in printf strings.
([NSString +initialize]): Register the new printf-handler function.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@779 72102866-910b-0410-8b05-ffd578937521
1996-01-23 23:30:05 +00:00
mccallum
98c5d93433 (Streaming): Include NSObject protocol in Streaming protocol, so we
can use NSObject methods on arguments passed with <Streaming> type.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@778 72102866-910b-0410-8b05-ffd578937521
1996-01-23 23:08:25 +00:00
mccallum
9e6742f693 Declare new methods.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@777 72102866-910b-0410-8b05-ffd578937521
1996-01-23 23:07:24 +00:00
mccallum
f010369a6c Use new-style method name "..ValueOfObjCType", instead of
"..ValueOfType".  Use (id <String>) instead of (char *) where
appropriate.
(Encoding -initEncodingOnStream:): Method removed.
(Encoding -initEncoding): Method removed.
(Encoding -encodeValueOfSimpleType:at:withName:): Method removed.
(Decoding -initDecodingOnStream:): Method removed.
(Decoding -initDecoding): Method removed.
(Decoding -decodeValueOfSimpleType:at:withName:): Method removed.
(CommonCoding +defaultFormatVersion): New method.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@776 72102866-910b-0410-8b05-ffd578937521
1996-01-23 23:06:35 +00:00
mccallum
c269d7d123 Declare new methods.
(cstream): New ivar, replacing "stream".
(classname_map): New ivar, but not yet used properly.
(concrete_format_version): ivar removed, this is now in the CStream
classes.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@775 72102866-910b-0410-8b05-ffd578937521
1996-01-23 23:01:24 +00:00
mccallum
370890e052 ([Stream -rewindStream]): Move method lower in file, to avoid
undeclared error.  (This is related to creation of SeekableStream
protocol.)


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@774 72102866-910b-0410-8b05-ffd578937521
1996-01-23 22:59:23 +00:00
mccallum
7835570e93 Use (id <String>) instead of (char *) where appropriate.
([StdioStream +streamWithFilename:fmode:]): New method.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@773 72102866-910b-0410-8b05-ffd578937521
1996-01-23 22:58:28 +00:00
mccallum
4bd1606a32 ([NSCoder -encodeObject:]): Base on -encodeValueOfObjCType, not
-encodeValuesOfObjCTypes.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@772 72102866-910b-0410-8b05-ffd578937521
1996-01-23 22:57:09 +00:00
mccallum
6b12a75c4e Changes to comments.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@771 72102866-910b-0410-8b05-ffd578937521
1996-01-23 22:55:55 +00:00
mccallum
195b5cbe42 Now uses a CStream instance for low-level encoding of variables of C type.
Include many more files.  Use new-style method name
"..ValueOfObjCType", instead of "..ValueOfType".  Use (id <String>)
instead of (char *) where appropriate.
(DEFAULT_FORMAT_VERSION): Renamed from CODER_FORMAT_VERSION.
(default_stream_class): Renamed from defaultStreamClass;
(default_cstream_class): New static variable.
([Coder +initialize]): Initialize above two variables.
([Coder +setDefaultCStreamClass:]): New method.
([Coder +defaultCStreamClass]): New method.
([Coder +setDefaultStreamClass:]): New method.
([Coder +defaultStreamClass]): New method.
([Coder +defaultFormatVersion]): New method.
([Coder -writeSignature]): New method, replaces -encodeSignature.
([Coder +readSignatureFromCStream:getClassname:formatVersion:]):
New method, replaces decodeSignature.
([Coder -_initWithCStream:formatVersion:isDecoding:f]): New method,
replaces _initWithStream:isDecoding.
([Coder +coderReadingFromStream:stream]): New method.
([Coder +coderReadingFromFile:filename]): New method.
([Coder -initForReadingFromStream:formatVersion:]): New method.
([Coder -initForWritingToStream:sformatVersion:version]): New method.
([Coder +decodeObjectFromStream:]): New method.
([Coder +decodeObjectFromFile:filename]): New method.
([Coder -initEncodingOnStream:]): Method removed.
([Coder -initDecodingOnStream:]): Method removed.
([Coder -initEncoding:]): Method removed.
([Coder -initDecoding:]): Method removed.
([Coder -encodeBytes:count:withName:]): Now unimplemented.
([Coder -decodeBytes:count:withName:name]): Likewise.
([Coder -decodeValueOfCType:at:withName:]): New method.
([Coder -encodeValueOfCType:at:withName:]): New method.
([Coder -encodeValueOfObjCType:at:withName:name]): Now longer handles
arrays and structs; those are now handled in a CStream method.
([Coder -decodeValueOfObjCType:at:withName:]): Likewise.
([Coder -encodeValueOfSimpleType:at:withName:]): Method removed.
([Coder -decodeValueOfSimpleType:at:withName:]): Method removed.
([Coder -encodeIndent]): Call cstream to handle this, instead of doing
nothing.
([Coder -encodeUnindent]): Likewise.
([Coder -decodeIndent]): Likewise.
([Coder -decodeUnindent]): Likewise.
([Coder -encodeName:]): Likewise.
([Coder -decodeName:]): Likewise.
([Coder -formatVersion]): Method renamed from coderFormatVersion.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@770 72102866-910b-0410-8b05-ffd578937521
1996-01-23 22:51:58 +00:00
mccallum
a1ebd88067 Use new-style method name "..ValueOfObjCType", instead of "..ValueOfType".
([CString -initWithCStringNoCopy:freeWhenDone:]): Cast away const
type.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@769 72102866-910b-0410-8b05-ffd578937521
1996-01-23 22:39:43 +00:00
mccallum
d960e869cf Use (id <String>) instead of (char *) where appropriate.
([MemoryStream -writeLine:]): Remove method.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@768 72102866-910b-0410-8b05-ffd578937521
1996-01-23 22:31:50 +00:00
mccallum
09745e3dc8 ([Stream -writeLine:]): Replace with more efficient implementation
from MemoryStream class.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@767 72102866-910b-0410-8b05-ffd578937521
1996-01-23 22:30:56 +00:00
mccallum
82c17da263 Don't include <objects/Coder.h>; this helps prevent circular dependances
in include files.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@766 72102866-910b-0410-8b05-ffd578937521
1996-01-23 22:28:18 +00:00
mccallum
c3abf3ba97 ([NSGCString -cStringNoCopy]): New method.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@765 72102866-910b-0410-8b05-ffd578937521
1996-01-23 21:15:23 +00:00
mccallum
5ccd2bc896 ([CString -cStringNoCopy]): New method.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@764 72102866-910b-0410-8b05-ffd578937521
1996-01-23 21:13:54 +00:00
mccallum
3ba969d436 Use -subclassReponsibility instead of -notImplemented.
([String -cStringNoCopy]): New method.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@763 72102866-910b-0410-8b05-ffd578937521
1996-01-23 21:12:29 +00:00
mccallum
9ad970b819 Declare new method.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@762 72102866-910b-0410-8b05-ffd578937521
1996-01-23 21:08:52 +00:00
mccallum
f7e2857640 Use string object types instead of C-string types in method arguments.
Use -subclassReponsibility instead of -notImplemented.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@761 72102866-910b-0410-8b05-ffd578937521
1996-01-23 21:04:49 +00:00
mccallum
4f6afefeb3 (Streaming): Use string object types instead of C-string types in
method arguments.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@760 72102866-910b-0410-8b05-ffd578937521
1996-01-23 21:01:51 +00:00
mccallum
2594628f88 Declare new methods.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@759 72102866-910b-0410-8b05-ffd578937521
1996-01-23 21:00:08 +00:00
mccallum
7868cf23d2 ([String +stringWithCStringNoCopy:freeWhenDone:f]): New method.
([String +stringWithCStringNoCopy:]): New method.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@758 72102866-910b-0410-8b05-ffd578937521
1996-01-23 20:59:55 +00:00
mccallum
682c3afb8e ([CString -initWithCStringNoCopy:freeWhenDone:]): New method.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@757 72102866-910b-0410-8b05-ffd578937521
1996-01-23 20:59:27 +00:00
mccallum
a7b5a4d193 Don't use ivar interconnected_stack_height.
(DOING_ROOT_OBJECT): New macro, defined based on
interconnected_stack_height.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@756 72102866-910b-0410-8b05-ffd578937521
1996-01-23 16:55:56 +00:00
mccallum
98ce2060ae (Coder): Get rid of unnecessary ivar doing_root_object; we can get the
same information from ivar interconnected_stack_height.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@755 72102866-910b-0410-8b05-ffd578937521
1996-01-23 16:54:52 +00:00
mccallum
283aece84a ([NSCoder -encodeObject:]): Implemented.
([NSCoder -decodeObject]): Implemented.
([NSCoder -encodeValueOfObjCType:at:]): Use -subclassResponsibility,
not -notImplemented.
([NSCoder -decodeValueOfObjCType:at:]): Likewise.
([NSCoder -encodeDataObject:]): Likewise.
([NSCoder -decodeDataObject]): Likewise.
([NSCoder -versionForClassName:]): Likewise.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@754 72102866-910b-0410-8b05-ffd578937521
1996-01-23 02:32:49 +00:00
mccallum
2134e3e8b1 Initial revision
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@751 72102866-910b-0410-8b05-ffd578937521
1996-01-22 23:32:28 +00:00
mccallum
759a52916e Initial revision
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@750 72102866-910b-0410-8b05-ffd578937521
1996-01-22 23:22:11 +00:00
mccallum
83a875da07 Patched from mail. See ChangeLog
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@743 72102866-910b-0410-8b05-ffd578937521
1996-01-21 01:36:47 +00:00
mccallum
7deb5b6173 ([NSString -initWithCString:length:]): Handle case of NULL cString.
([NSString -initWithCString:]): Likewise.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@740 72102866-910b-0410-8b05-ffd578937521
1996-01-19 16:12:12 +00:00
mccallum
7a7174faef Before making soft links from previous change, remove them.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@739 72102866-910b-0410-8b05-ffd578937521
1996-01-19 16:08:50 +00:00
mccallum
50c0aa3ed4 make NSBundle work, if cwd is not in PATH.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@738 72102866-910b-0410-8b05-ffd578937521
1996-01-19 16:02:02 +00:00
mccallum
df461b0a19 (libobjects.so.$OBJECTS_VERSION)): Re-add the
-Wl,-soname,libobjects.so.$(OBJECTS_MAJOR_VERSION) argument.  Create a
soft link named libobjects.so.
(install): Install a soft link named libobjects.so.
(Fixes sent by Jeremy Bettis <jbettis@cse.unl.edu>.)


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@737 72102866-910b-0410-8b05-ffd578937521
1996-01-19 15:56:09 +00:00
mccallum
2103ebe3a4 Comment indentation fix.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@734 72102866-910b-0410-8b05-ffd578937521
1996-01-17 00:33:08 +00:00
mccallum
cb438ad813 Update copyright. (objc_load_module): Use
CON_AUTOLOAD instead of SYS_AUTOLOAD.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@733 72102866-910b-0410-8b05-ffd578937521
1996-01-16 23:36:19 +00:00
mccallum
70dce47779 (HEADERS_INSTALL): Remove objects/config.h.
(install): Look for libobjects.so file, not just for configure
variable.  Remove unwanted `;'.  Install objects/config.h from build
directory.  (Fixes provided by Matthias Klose <doko@cs.tu-berlin.de>).


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@731 72102866-910b-0410-8b05-ffd578937521
1996-01-16 17:24:56 +00:00
mccallum
a7f0a4e618 ([NSDate -description]): replace strftime() with sprintf() equivalent
for NEXTSTEP.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@730 72102866-910b-0410-8b05-ffd578937521
1996-01-16 00:48:44 +00:00
mccallum
3682627d9b ($(NSVALUE_MFILES)): Use sed instead of expr to extract number.
($(NSNUMBER_MFILES)): Likewise.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@727 72102866-910b-0410-8b05-ffd578937521
1996-01-16 00:07:21 +00:00
mccallum
b4be898aef ([NSProcessInfo -globallyUniqueString]): Don't use the %@ printf
format directive, since it isn't implemented yet; use %s and -cString
instead.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@717 72102866-910b-0410-8b05-ffd578937521
1996-01-12 22:28:41 +00:00
mccallum
b9e4acc0ec Don't test !(sgi), since SYS_AUTOLOAD is fixed.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@716 72102866-910b-0410-8b05-ffd578937521
1996-01-12 22:17:53 +00:00
mccallum
81e950dfba (objc_find_executable): #ifdef NeXT, use getwd() instead of getcwd().
(Reported by Gregor Hoffleit <flight@mathi.uni-heidelberg.DE>.)


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@715 72102866-910b-0410-8b05-ffd578937521
1996-01-12 21:24:07 +00:00
mccallum
569719b8b0 ([NSDate -description]): Don't use strftime #ifdef NeXT. (Reported by
Gregor Hoffleit <flight@mathi.uni-heidelberg.DE>.)


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@714 72102866-910b-0410-8b05-ffd578937521
1996-01-12 21:09:48 +00:00
mccallum
79fa53e8d4 (objects/stdobjects.h): prepend objects/stdobjects.h.in with
$(srcdir).


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@713 72102866-910b-0410-8b05-ffd578937521
1996-01-12 20:55:35 +00:00
mccallum
7a42c503ab (NXStringTable_scan.o): Removed target; let pattern rule take care of
it.
($(NSVALUE_MFILES)): Use $@ instead of $* in expr argument.
($(NSNUMBER_MFILES)): Likewise.
(Reported by <pfuchs@tag01.acnet.net>.)


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@711 72102866-910b-0410-8b05-ffd578937521
1996-01-12 20:20:57 +00:00
mccallum
07d5a24cbf ([NSMethodSignature +signatureWithObjCTypes:]): Use gcc's builtin
memcpy instead of bcopy.  (Reported by Matthias Klose
<doko@cs.tu-berlin.de>.)


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@710 72102866-910b-0410-8b05-ffd578937521
1996-01-12 16:56:38 +00:00
mccallum
8f5a50eff9 ([NSMethodSignature +signatureWithObjCTypes:]): Fix typo: change
objc_size_of_type to objc_sizeof_type.  (Reported by
Gregor Hoffleit <flight@mathi.uni-heidelberg.DE>.)


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@709 72102866-910b-0410-8b05-ffd578937521
1996-01-12 16:54:39 +00:00
mccallum
d3fda08ef8 (libobjects.so.$(OBJECTS_VERSION)): Removed
"-Wl,-soname,libobjects.so.$(OBJECTS_VERSION)"; gcc does this
automatically.  (Reported by Matthias Klose <doko@cs.tu-berlin.de>.)


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@708 72102866-910b-0410-8b05-ffd578937521
1996-01-12 16:45:56 +00:00
mccallum
cae481e0de Include <netdb.h> for MAXHOSTNAMELEN. (Reported by Matthias Klose
<doko@cs.tu-berlin.de>.)


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@707 72102866-910b-0410-8b05-ffd578937521
1996-01-12 16:42:12 +00:00
mccallum
7b8352eec2 (ALL_INCLUDE_FLAGS): Add -I. for objects/config.h. (Reported by
Matthias Klose <doko@cs.tu-berlin.de>)


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@705 72102866-910b-0410-8b05-ffd578937521
1996-01-12 16:38:56 +00:00
mccallum
36b433a642 ([MethodInvocation -initWithSelector:arguments:]): New method, not
implemented.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@703 72102866-910b-0410-8b05-ffd578937521
1996-01-10 19:55:42 +00:00
mccallum
7925a68d6e Remove #if NeXT and alternate #include's.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@702 72102866-910b-0410-8b05-ffd578937521
1996-01-10 15:51:25 +00:00
mccallum
33e45f4f7c ([Storage -insertElement:at:]): Increment numElements. (Reported by
Revuz Dominique <dr@univ-mlv.fr>).


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@701 72102866-910b-0410-8b05-ffd578937521
1996-01-09 20:24:52 +00:00
mccallum
da91b29ed2 (_GNU_MAX_HOST_NAMELEN): Macro removed; using MAXHOSTNAMELEN from
<sys/param.h> instead.  All users changed.
(_gnu_process_args): Malloc and fill NSArgv; assignment of char** from
*char[] isn't right.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@692 72102866-910b-0410-8b05-ffd578937521
1996-01-08 17:05:45 +00:00
mccallum
cc256506a8 ([NSGCString -emptyCopy]): Use [super emptyCopy], not [super allocCopy].
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@691 72102866-910b-0410-8b05-ffd578937521
1996-01-08 16:25:10 +00:00
mccallum
291b264f28 ([String -emptyCopy]): Method removed; super class implementation is
fine.
([String -initWithCString:range:]): Use -subclassResponsibility:, not
-notImplemented:.
([String -empty]): Likewise.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@690 72102866-910b-0410-8b05-ffd578937521
1996-01-08 16:24:14 +00:00
mccallum
53ea27d1e9 Changed rules for compiling concrete NSValue and NSNumber classes; the
old version no longer worked with PIC compilation, and didn't use the
common pattern rule for making the object file.
(NSNUMBER_CLUSTER, NSVALUE_CLUSTER): Variables removed.
(NSVALUE_MFILES): New variable, replacing NSVALUE_OFILES.
(NSNUMBER_MFILES): New variable, replacing NSNUMBER_OFILES.
(GNUSTEP_OBJS): Use new vars.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@688 72102866-910b-0410-8b05-ffd578937521
1996-01-07 21:05:01 +00:00
mccallum
91d3a68c6c (_gnu_process_args): Use "char **argv" instead of "char *argv[]".
Remove cast in assignment of NSArgv.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@687 72102866-910b-0410-8b05-ffd578937521
1996-01-05 22:40:36 +00:00
mccallum
a55d5aa13b Clean up shared library building. Make building from another
directory work.
(Makeconf): Include it after system configuration section, and from
$(srcdir).
(SHAREDLIB_CFLAGS, SHAREDLIB_ARFLAGS, USING_SHAREDLIB_CFLAGS,
USING_SHAREDLIB_ARFLAGS): Variables removed.
(ALL_CFLAGS, ALL_OBJCFLAGS): Don't use removed vars.
(%_pic.o: %.m): New pattern rule.
(%_pic.o: %.c): New pattern rule.
(all): Always build libobjects.a, optionally build .so version.
(libobjects.so): Use -shared.  Link to ..$(OBJECTS_MAJOR_VERSION).
(install): Always install libobjects, optionally install .so version.
Install the headers from the $(srcdir).
(NSVALUE_OFILES, NSNUMBER_OFILES, NXStringTable_scan.c,
dynamic-load.h): Use $(srcdir) properly for these targets.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@680 72102866-910b-0410-8b05-ffd578937521
1996-01-05 22:01:31 +00:00
mccallum
572a7a1c45 ([Set -removeElement:ifAbsentCall:]): Fix typo; method renamed from
-removeElement:ifAbsent:.  (Reported by Albert Mietus
<albert@gamp.hacom.nl>)


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@679 72102866-910b-0410-8b05-ffd578937521
1996-01-05 04:12:08 +00:00
mccallum
49ab05a3a4 Patched from mail. See ChangeLog
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@678 72102866-910b-0410-8b05-ffd578937521
1995-12-20 18:42:38 +00:00
mccallum
e4ecbb522e ([NSMutableArray -addObject:]): Use -subclassResponsibility:, not
-notImplemented:.
([NSMutableArray -replaceObjectAtIndex:withObject:]): Likewise.
([NSMutableArray -insertObject:atIndex:]): Likewise.
([NSMutableArray -removeObjectAtIndex:]): Likewise.
([NSMutableArray -removeAllObjects]): Likewise.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@677 72102866-910b-0410-8b05-ffd578937521
1995-11-24 20:09:18 +00:00
mccallum
b25748e37a ([NSString +allocWithZone:]): New method.
([NSString +stringWithCString:byteString]): Use it.
([NSString +stringWithCString:length:]): Likewise.
([NSString +stringWithFormat:]): Likewise.
([NSString +stringWithFormat:arguments:]): Likewise.
([NSMutableString +allocWithZone:]): New method.
([NSMutableString +stringWithCapacity:]): Use it.
([NSMutableString +stringWithCString:length:]): Likewise.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@676 72102866-910b-0410-8b05-ffd578937521
1995-11-19 20:29:39 +00:00
mccallum
b47bfa69fd (CFLAGS): Added -O.
(SHAREDLIB_CFLAGS,SHAREDLIB_ARFLAGS): Set values here, not in
configure.in.
(USING_SHAREDLIB_CFLAGS,USING_SHAREDLIB_ARFLAGS): New vars, set by
configure.
(ALL_CFLAGS, ALL_OBJCFLAGS): Use them.
(libobjects.so.$(OBJECTS_VERSION): New target, replacing
libobjects.so.  Use version numbers.
(install): Try to do the right thing with shared/non-shared libs.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@674 72102866-910b-0410-8b05-ffd578937521
1995-11-14 17:02:56 +00:00
mccallum
01bc8ec329 (NSArgv): New global.
(_gnu_process_args): Set it.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@669 72102866-910b-0410-8b05-ffd578937521
1995-11-07 02:22:22 +00:00
mccallum
a2b9a7bf41 (SHAREDLIB_CFLAGS): New variable.
(ALL_CFLAGS): Use it.
(ALL_OBJCFLAGS): Likewise.
(SHAREDLIB_ARFLAGS): New variable.
(libobjects.so): Use it; new target.
(all): Depend on configure variable.
(install): Changes to install shared library.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@666 72102866-910b-0410-8b05-ffd578937521
1995-11-07 02:18:53 +00:00
mccallum
4530efc273 Minor fixes for second-time compilation.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@664 72102866-910b-0410-8b05-ffd578937521
1995-11-06 17:38:33 +00:00
mccallum
4d0c8747bc Minor fixes for first-time compilation.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@663 72102866-910b-0410-8b05-ffd578937521
1995-11-06 17:36:48 +00:00
mccallum
d1f2ab12df (GNUSTEP_MFILES): Added NSMethodSignature.m.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@661 72102866-910b-0410-8b05-ffd578937521
1995-11-06 17:24:15 +00:00
mccallum
1a66a3676d ([NSSet +set]): Use +alloc, not _concreteClass. This
makes [NSMutableSet +set] and friends do the right thing.
([NSSet +setWithObjects:count:]): Likewise.
([NSSet +setWithArray:]): Likewise.
([NSSet +setWithObject:]): Likewise.
([NSSet +setWithObjects:]): Likewise.
([NSMutableSet +setWithCapacity:]): Likewise.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@660 72102866-910b-0410-8b05-ffd578937521
1995-11-03 22:24:14 +00:00
mccallum
e2953be450 ([NSArray +array]): Use +alloc, not _concreteClass. This
makes [NSMutableArray +array] and friends do the right thing.
([NSArray +arrayWithObjects:]): Likewise.
([NSMutableArray +arrayWithCapacity:]): Likewise.
([NSArray +arrayWithObject:]): Likewise; and fix condition on exception.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@659 72102866-910b-0410-8b05-ffd578937521
1995-11-03 22:22:02 +00:00
mccallum
0a2df82052 ([NSDictionary +dictionary]): Use +alloc, not _concreteClass. This
makes [NSMutableDictionary +dictionary] and friends do the right thing.
([NSDictionary +dictionaryWithObjects:forKeys:count:]): Likewise.
([NSMutableDictionary +dictionaryWithCapacity:]): Likewise.
(Problem reported by Kim Shrier <kim@media.com>.)


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@658 72102866-910b-0410-8b05-ffd578937521
1995-11-03 22:18:47 +00:00
mccallum
05edb566c9 ([NSProcessInfo -hostName]): Remove unnecessary inefficiency: use
stack to hold temporary string, not malloc/free; just return the
string, not a copy.  Conform to GNU coding standards in use of braces.
([NSProcessInfo -processName]): Likewise.  Just return the string, not
a copy.
([NSProcessInfo -environment]): Likewise.
([NSProcessInfo -arguments]): Likewise.
(_gnu_arguments, _gnu_environment): Make them constant classes, not
mutable.
(_gnu_process_args): Alloc _gnu_processName NSString, don't get an
autoreleased string and then retain it.  Initialize _gnu_arguments as
a constant NSArray, not NSMutableArray.  Initialize _gnu_environment
as a constant NSDictionary, not NSMutableDictionary.  Conform to the
GNU coding standards in use of braces.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@656 72102866-910b-0410-8b05-ffd578937521
1995-11-03 16:12:07 +00:00
mccallum
86a9c79d9e Moved method declarations from NSMutableSet to NSSet.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@655 72102866-910b-0410-8b05-ffd578937521
1995-10-30 01:52:20 +00:00
mccallum
4bc79b5212 ([NSGSet -isEqual:]): Added method.
([NSGMutableSet -isEqual:]): Likewise.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@654 72102866-910b-0410-8b05-ffd578937521
1995-10-30 01:51:46 +00:00
mccallum
d2fdc59b4b ([NSGCountedSet -isEqual:]): Added method.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@653 72102866-910b-0410-8b05-ffd578937521
1995-10-30 01:51:17 +00:00
mccallum
3a8e9f32cb ([NSGArray -objectAtIndex:]): Fix condition on exception.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@650 72102866-910b-0410-8b05-ffd578937521
1995-10-30 01:29:52 +00:00
mccallum
939207ed93 ([NSArray -objectEnumerator]): Autorelease it.
([NSArray -reverseObjectEnumerator]): Likewise.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@648 72102866-910b-0410-8b05-ffd578937521
1995-10-30 01:05:15 +00:00
mccallum
21ba41b815 Initial revision
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@647 72102866-910b-0410-8b05-ffd578937521
1995-10-30 01:00:39 +00:00
mccallum
ef8eaa1d08 Implemented many methods.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@646 72102866-910b-0410-8b05-ffd578937521
1995-10-30 01:00:20 +00:00
mccallum
e861bc9445 Added NSCountedSet interface.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@644 72102866-910b-0410-8b05-ffd578937521
1995-10-30 00:59:20 +00:00
mccallum
f09bd1f0ba Changed some notImplemented to subclassResponsiblity.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@643 72102866-910b-0410-8b05-ffd578937521
1995-10-30 00:58:18 +00:00
mccallum
198e30beb0 (GNUSTEP_MFILES): Added NSCountedSet.m and NSGCountedSet.m.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@642 72102866-910b-0410-8b05-ffd578937521
1995-10-30 00:48:17 +00:00
mccallum
a15aad885c ([NSGDictionary -keyEnumerator]): Autorelease it.
([NSGDictionary -objectEnumerator]): Likewise.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@641 72102866-910b-0410-8b05-ffd578937521
1995-10-30 00:41:15 +00:00
mccallum
9db633f401 Doc fix.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@640 72102866-910b-0410-8b05-ffd578937521
1995-10-30 00:34:00 +00:00
mccallum
34ce0a3d35 Initial revision
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@639 72102866-910b-0410-8b05-ffd578937521
1995-10-30 00:33:22 +00:00
mccallum
cb455b5536 ([NSString -cString]): Use -subclassResponsibility: instead of
-notImplemented:
([NSString -cStringLength]): Likewise.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@638 72102866-910b-0410-8b05-ffd578937521
1995-10-26 01:29:04 +00:00
mccallum
c20c33ea5f (GNU_HEADERS): Added objects/NSSet.h.
(GNUSTEP_MFILES): Added NSGSet.m and NSSet.m.
(GNUSTEP_HEADERS): Added Foundation/NSGSet.h and Foundation/NSSet.h.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@637 72102866-910b-0410-8b05-ffd578937521
1995-10-26 01:17:43 +00:00
mccallum
30bda594e1 Initial revision
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@636 72102866-910b-0410-8b05-ffd578937521
1995-10-26 01:16:38 +00:00
mccallum
8731cb435d (coll_hash_next): Set STATE to 0 before returning when the list is
exhausted.  This interacts with [Dictionary -freeEnumState:] and [Set
-freeEnumState].  This will all be cleaned up when we start using
Albin Jones' tables.  (This bug found by Allan Clearwaters.)


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@634 72102866-910b-0410-8b05-ffd578937521
1995-10-26 00:48:55 +00:00
mccallum
821d4b6b5e ([Set -freeEnumState:]): Added comment.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@633 72102866-910b-0410-8b05-ffd578937521
1995-10-26 00:41:03 +00:00
mccallum
e2156fc92b ([NSGDictionaryKeyEnumerator -initWithDictionary:]): Retain dictionary
after it is initialized.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@632 72102866-910b-0410-8b05-ffd578937521
1995-10-26 00:37:14 +00:00
mccallum
d15b491be6 Fix typo: include Foundation/NSException.h.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@631 72102866-910b-0410-8b05-ffd578937521
1995-10-22 17:59:25 +00:00
mccallum
8a3909a021 ([NSGArray -initWithObjects:count:]): Raise exception for nil objects.
([NSGArray -objectAtIndex:]): Raise exception when index too high.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@630 72102866-910b-0410-8b05-ffd578937521
1995-10-22 17:58:57 +00:00
mccallum
c451add3c4 ([NSArray +arrayWithObject:]): Correctly raise exception on nil argument.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@629 72102866-910b-0410-8b05-ffd578937521
1995-10-22 17:53:38 +00:00
mccallum
c9fc2fb84b Added some comments about future enhancements I want to make.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@628 72102866-910b-0410-8b05-ffd578937521
1995-10-18 16:51:58 +00:00
mccallum
1edc8b38e0 Patched from mail. See ChangeLog
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@627 72102866-910b-0410-8b05-ffd578937521
1995-10-18 16:47:59 +00:00
mccallum
d82d74df60 ([Coder -doInitOnStream:isDecoding:]): Use new ivar names.
([Coder -_coderPushRootObjectTable]): Use new ivar names and don't use
Stack.
([Coder -_coderPopRootObjectTable]): Likewise.
([Coder -_coderTopRootObjectTable]): Likewise.
([Coder -_coderPushForwardObjectTable]): Likewise.
([Coder -_coderPopForwardObjectTable]): Likewise.
([Coder -_coderTopForwardObjectTable]): Likewise.
([Coder -_coderForwardObjectsAtReference:]): Don't access ivar directly.
([Coder -_coderPutForwardObjects:atReference:]): Likewise.
([Coder -finishDecodingInterconnectedObjects]): Use new ivar name.
([Coder -dealloc]): Likewise.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@626 72102866-910b-0410-8b05-ffd578937521
1995-10-14 18:19:32 +00:00
mccallum
fbb93ba95b (Coder): Renamed ivars from root_object_tables to root_object_table,
from forward_object_tables to forward_object_table; changed classes
from Stack (of Dictionary's) to Dictionary.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@625 72102866-910b-0410-8b05-ffd578937521
1995-10-14 18:16:03 +00:00
mccallum
e306423619 (CurriedInvocation): Comment out empty implementation.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@624 72102866-910b-0410-8b05-ffd578937521
1995-10-13 20:51:24 +00:00
mccallum
d138f7cd3e ([IndexedCollection -shallowCopyInReverseAs:]): Return newColl, not
self.
([IndexedCollection -withElementsInReverseCall:]): Set flag to YES.
([IndexedCollection -safeWithElementsInReverseCall:]): Likewise.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@623 72102866-910b-0410-8b05-ffd578937521
1995-10-09 18:59:26 +00:00
mccallum
2c36b7bf5f Patched from mail. See ChangeLog
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@621 72102866-910b-0410-8b05-ffd578937521
1995-10-05 22:22:28 +00:00
mccallum
127930bbff (CurriedInvocation): New class, unimplemented.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@619 72102866-910b-0410-8b05-ffd578937521
1995-09-30 22:11:14 +00:00
mccallum
22e8ecf14c (CHECK_ZERO_SIZE): New macro; for making sure we don't pass 0 to
malloc and its friends.
(__objc_malloc): Use it.
(__objc_valloc): Likewise.
(__objc_realloc): Likewise.
(__objc_calloc): Likewise.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@618 72102866-910b-0410-8b05-ffd578937521
1995-09-30 22:00:21 +00:00
mccallum
de3c2bc179 ([IndexedCollection -getNextElement:withEnumState:]): if isEmpty,
return NO.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@616 72102866-910b-0410-8b05-ffd578937521
1995-09-27 23:25:55 +00:00
mccallum
1be647d515 ([NSObject +initialize]): Set default autorelease_class to
NSAutoreleasePool.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@615 72102866-910b-0410-8b05-ffd578937521
1995-09-27 23:15:24 +00:00
mccallum
3ed5349dc8 Don't try to use __attribute__ ((section ..)) #if (sgi). It doesn't
seem to be supported.  This probably means that aclocal.m4 needs to be
fixed so that it doesn't define SYS_AUTOLOAD in this case.  No time
now.  Adam?


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@614 72102866-910b-0410-8b05-ffd578937521
1995-09-27 23:00:12 +00:00
mccallum
3dbee6766f Avoid cache_flush when releasing contents.
(send_release): Remove function.
([Collection -_releaseContents]): New method.
([Collection -dealloc]): Use it.
([Collection -empty]): Likewise.
([Collection -_safeWithElementsCallNoRetain:]): Use
-getNextElement:withEnumState instead of -withElementsCall: to avoid
cache_flush.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@613 72102866-910b-0410-8b05-ffd578937521
1995-09-27 22:45:44 +00:00
mccallum
43da69d1ae Patched from mail. See ChangeLog
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@612 72102866-910b-0410-8b05-ffd578937521
1995-09-21 17:42:46 +00:00
mccallum
ecfdf5feb3 Patched from mail. See ChangeLog
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@608 72102866-910b-0410-8b05-ffd578937521
1995-09-12 22:30:13 +00:00
mccallum
41ddf10f66 ([TextCoder -decodeValueOfSimpleType:at:withName:]): Assert the data pointer.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@607 72102866-910b-0410-8b05-ffd578937521
1995-09-11 00:38:27 +00:00
mccallum
70909b23de Comment changes.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@606 72102866-910b-0410-8b05-ffd578937521
1995-09-11 00:37:22 +00:00
mccallum
238a2f3b5e ([Coder -doInitOnStream:isDecoding:]): Temporarily change
in_progress_table from a Set to an Array.  I need to fix some problems
with Set.
([Coder -startEncodingInterconnectedObjects]): Deal with
interconnected_stack_height.
([Coder -finishEncodingInterconnectedObjects]): Likewise.
([Coder -startDecodingInterconnectedObjects]): Likewise.
([Coder -finishDecodingInterconnectedObjects]): Likewise.
([Coder -encodeRootObject:withName:]): Fix bug, whereby we weren't
giving what decodeObjectAt:withName: expected.
([Coder -encodeArrayOfType:at:count:withName:]): Don't encode the
array count.
([Coder -decodeArrayOfType:at:count:withName:]): Don't expect the
array count.  Change type on 3rd argument.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@605 72102866-910b-0410-8b05-ffd578937521
1995-09-11 00:36:35 +00:00
mccallum
bb38dcff5e (interconnected_stack_height): New ivar for Coder.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@604 72102866-910b-0410-8b05-ffd578937521
1995-09-10 22:51:20 +00:00
mccallum
c39c086ada ([Coding -decodeArrayOfType:at:count:withName:]): Change the 3rd
argument type; pass the count directly, not as a pointer.  The
encoding and decoding of array's no longer records the array count;
if necessary, you must do that yourself ahead of time.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@603 72102866-910b-0410-8b05-ffd578937521
1995-09-10 22:17:55 +00:00
mccallum
0ca3ec5566 Fix typos.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@602 72102866-910b-0410-8b05-ffd578937521
1995-09-08 22:49:50 +00:00
mccallum
ef2db2a7cf Fix typo.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@601 72102866-910b-0410-8b05-ffd578937521
1995-09-08 22:49:36 +00:00
mccallum
2c8b6a7b05 ([Coder -doInitOnStream:isDecoding:]): Init in_progress_table.
([Coder -dealloc]): Release in_progress_table.
([Coder -_encodeObject:withName:isBycopy:isForwardReference:]):
If the object is in progress, treat it like a forward reference.  Add
the object to the in_progess_table before really encoding the object;
remove it when done.  (NOTE, this isn't an excuse not to set up
"encoding interconnected objects" mode.)


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@600 72102866-910b-0410-8b05-ffd578937521
1995-09-08 22:44:23 +00:00
mccallum
bc323d7a06 (in_progress_table): New ivar in Coder.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@599 72102866-910b-0410-8b05-ffd578937521
1995-09-08 22:30:52 +00:00
mccallum
cddc14d2b4 Patched from mail.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@597 72102866-910b-0410-8b05-ffd578937521
1995-08-30 21:49:35 +00:00
mccallum
febfce5a16 Added break's to avoid
falling through case statements.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@596 72102866-910b-0410-8b05-ffd578937521
1995-08-30 21:33:39 +00:00
mccallum
5755c8c223 Comment change.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@595 72102866-910b-0410-8b05-ffd578937521
1995-08-30 21:32:48 +00:00
mccallum
bbf2b3a45a Added #line macro so gdb
knows which file source came from


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@594 72102866-910b-0410-8b05-ffd578937521
1995-08-30 21:32:11 +00:00
mccallum
52d9a70db8 all methods): Implemented.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@593 72102866-910b-0410-8b05-ffd578937521
1995-08-30 21:31:29 +00:00
mccallum
ee92d8fe84 Added #line macro so gdb
knows which file source came from.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@592 72102866-910b-0410-8b05-ffd578937521
1995-08-30 21:28:28 +00:00
mccallum
14b4933dbd ([Collection -empty]): Check if already empty. This avoids a previous
malloc(0).


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@591 72102866-910b-0410-8b05-ffd578937521
1995-08-28 20:27:01 +00:00
mccallum
394a4a3424 * src/NSProcessInfo.m: Added Linux/ELF support. Linux calls the
__libc_subinit functions before the global constructors, therefore
	the subinit functions must be just vanilla C.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@590 72102866-910b-0410-8b05-ffd578937521
1995-08-28 13:36:24 +00:00
mccallum
42658c005e (GNUSTEP_HEADERS): Remove NSTimeZone.h. It's declared in NSDate.h.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@588 72102866-910b-0410-8b05-ffd578937521
1995-08-24 23:40:26 +00:00
mccallum
71e1c9fb75 Initial revision
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@587 72102866-910b-0410-8b05-ffd578937521
1995-08-24 22:35:25 +00:00
mccallum
f830afae44 (GNUSTEP_MFILES): Added NSObjCRuntime.m.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@586 72102866-910b-0410-8b05-ffd578937521
1995-08-24 22:32:14 +00:00
mccallum
281a9647bf Include <NSString.h>
([NSObject -description]): Implemented.
([NSObject +description]): Implemented.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@585 72102866-910b-0410-8b05-ffd578937521
1995-08-24 22:24:17 +00:00
mccallum
0e5df69995 (FILE_AUTHORS): Added Peter Burka.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@584 72102866-910b-0410-8b05-ffd578937521
1995-08-24 16:36:17 +00:00
mccallum
3bb1c039cb ([NSTimeZone -encodeWithCoder:]): Avoid warning by removing type from
argument.
([NSTimeZone -initWithCoder:]): Likewise.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@582 72102866-910b-0410-8b05-ffd578937521
1995-08-23 16:15:22 +00:00
mccallum
ce5cc7fd54 Initial revision
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@581 72102866-910b-0410-8b05-ffd578937521
1995-08-23 16:13:42 +00:00