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