Commit graph

2300 commits

Author SHA1 Message Date
Andrew McCallum
5aaf19d4dc Declare new NSCoderNonCore class.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1511 72102866-910b-0410-8b05-ffd578937521
1996-05-07 18:08:30 +00:00
Andrew McCallum
f32db3d692 Separate implemented, non-core methods into separate class, in
preparation for avoiding the duplication of these methods in Coder.m.
([NSCoder +initialize]): New method.
(NSCoderNonCore): New class.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1510 72102866-910b-0410-8b05-ffd578937521
1996-05-07 18:08:01 +00:00
Andrew McCallum
193296169f *** empty log message ***
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1509 72102866-910b-0410-8b05-ffd578937521
1996-05-07 14:55:16 +00:00
Andrew McCallum
e96c5faa58 (snapshot-rtag): New target.
(dist-rtag): New target.
(rdiff): New target.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1508 72102866-910b-0410-8b05-ffd578937521
1996-05-07 14:55:10 +00:00
Andrew McCallum
65464bd728 *** empty log message ***
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1506 72102866-910b-0410-8b05-ffd578937521
1996-05-07 01:23:14 +00:00
Andrew McCallum
4ee36a544a (ALL_CPPFLAGS): Look for source include files in new place.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1505 72102866-910b-0410-8b05-ffd578937521
1996-05-07 01:21:42 +00:00
Andrew McCallum
70d3ba738a (main): Comment added.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1504 72102866-910b-0410-8b05-ffd578937521
1996-05-07 01:20:44 +00:00
Andrew McCallum
3b51fcdff1 ([NSGArchiver -encodeObjectReference:]): New method.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1503 72102866-910b-0410-8b05-ffd578937521
1996-05-07 01:20:22 +00:00
Andrew McCallum
3f10d36cbc ([Decoder -decodeObjectAt:anObjPtr:name]): Move CREATE_REF_BEFORE_INIT
assertion to inside conditional for FREF being true.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1502 72102866-910b-0410-8b05-ffd578937521
1996-05-07 01:16:34 +00:00
Andrew McCallum
404b2c5d12 (PRINTF_ATSIGN_VA_LIST): New macro, when 1, undoes previous changes.
Previous changes cause crashes with my libc.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1501 72102866-910b-0410-8b05-ffd578937521
1996-05-07 01:14:54 +00:00
Andrew McCallum
5e6abf930a (shared): Prepend missing `lib'. (Reported by Randy Chapman
<chapman@cs.washington.edu>.)


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1500 72102866-910b-0410-8b05-ffd578937521
1996-05-06 21:53:03 +00:00
Andrew McCallum
b4695b292a It should now work again to build in a separate directory.
Use ${OEXT}, not $(OEXT).
(ALL_INCLUDE_FLAGS): Look in ./include, not $(srcdir).
(GNU_HEADERS): Remove duplicate NS*.h files.
(gnustep/base): Make soft links to the $(srcdir) include files inside
./include.
(include/preface.h): Get preface.h.in from the $(srcdir)!


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1499 72102866-910b-0410-8b05-ffd578937521
1996-05-06 21:24:04 +00:00
Andrew McCallum
3ec0b402fa use #include instead of #import.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1498 72102866-910b-0410-8b05-ffd578937521
1996-05-06 20:13:18 +00:00
Andrew McCallum
a4faded2ed Added "On what platforms will it run?"
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1497 72102866-910b-0410-8b05-ffd578937521
1996-05-06 20:12:53 +00:00
Andrew McCallum
d43d347684 ([NSMutableArray +initialize]): Add the NSArrayNonCore methods also.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1496 72102866-910b-0410-8b05-ffd578937521
1996-05-06 19:57:29 +00:00
Andrew McCallum
42b38028bd Add o- prefix.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1495 72102866-910b-0410-8b05-ffd578937521
1996-05-06 19:40:26 +00:00
Andrew McCallum
1daf82a5fe Add `o-' prefix to object collection function files.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1494 72102866-910b-0410-8b05-ffd578937521
1996-05-06 19:22:54 +00:00
Andrew McCallum
d39b518212 File deleted.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1493 72102866-910b-0410-8b05-ffd578937521
1996-05-06 19:10:52 +00:00
Andrew McCallum
b00a575e5e All uses of @"" were crashing in Linux libc-5.3.9.
(arginfo_func): New function.
(handle_printf_atsign): Get the string object without va_arg().
([NSString +initialize]): Use new function.
(Reported and fixed by Kai-Uwe Sattler
<sattler@volker.cs.Uni-Magdeburg.DE>.)


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1492 72102866-910b-0410-8b05-ffd578937521
1996-05-06 18:59:01 +00:00
Andrew McCallum
e74c56158b ([NSMutableArrayNonCore -removeObject:]): Replace with version that
removes all objects equal to argument.
([NSMutableArrayNonCore -removeObjectIdenticalTo:]): Likewise.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1491 72102866-910b-0410-8b05-ffd578937521
1996-04-30 14:25:22 +00:00
Andrew McCallum
65531e035c (main): Patched from Scott Christley.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1490 72102866-910b-0410-8b05-ffd578937521
1996-04-30 14:19:39 +00:00
Andrew McCallum
5632a32d75 *** empty log message ***
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1489 72102866-910b-0410-8b05-ffd578937521
1996-04-19 23:50:38 +00:00
Andrew McCallum
39858b855d GNU Archiver on OpenStep methods.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1488 72102866-910b-0410-8b05-ffd578937521
1996-04-19 23:50:13 +00:00
Andrew McCallum
2be42b3df1 Use Archiver, not NSArchiver, if GNU_ARCHIVING is true.
(SELF_REF_DECODE_SUBSTITUTES): New macro.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1487 72102866-910b-0410-8b05-ffd578937521
1996-04-19 23:49:54 +00:00
Andrew McCallum
f53895a37a (Coder): Make ivars public, so NSGArchiver can get at them.
(Encoder): Likewise.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1486 72102866-910b-0410-8b05-ffd578937521
1996-04-19 23:17:52 +00:00
Andrew McCallum
f55677d2e5 ([TextCStream -encodeValueOfCType:at:withName:]): If name is nil or
zero-length, make it "Anonymous".


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1485 72102866-910b-0410-8b05-ffd578937521
1996-04-19 23:16:59 +00:00
Andrew McCallum
7e261d59d5 Add todo comments.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1484 72102866-910b-0410-8b05-ffd578937521
1996-04-19 23:16:24 +00:00
Andrew McCallum
66356eb508 (USE_OPENSTEP_STYLE_FORWARD_REFERENCES): New macro.
(NSGArchiverNullCStream): New class, interface and implementation.
([NSGArchiverNullCStream -decodeValueOfCType:at:withName:]): New method.
([NSGArchiverNullCStream -decodeValueOfCType:at:withName:]): New method.
([NSGArchiver -encodeRootObject:withName:]): New method.
([NSGArchiver -encodeConditionalObject:]): New method.
([NSGArchiver -_coderCreateReferenceForObject:]): New method.
([NSGArchiver -_coderCreateForwardReferenceForObject:]): New method.
([NSGArchiver -_coderForwardReferenceForObject:]): New method.
([NSGArchiver -_objectWillBeInProgress:]): New method.
([NSGArchiver -_objectNoLongerInProgress:]): New method.
([NSGArchiver -defaultDecoderClassname]): New method.
([NSGUnarchiver -_createReferenceBeforeInit]): New method.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1483 72102866-910b-0410-8b05-ffd578937521
1996-04-19 23:15:30 +00:00
Andrew McCallum
69b93a3648 ([NSUnarchiver +initialize]): Test self against NSUnarchiver class.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1482 72102866-910b-0410-8b05-ffd578937521
1996-04-19 23:13:51 +00:00
Andrew McCallum
ffbdc162d3 (debug_coder): Make it a static var instead of a #define.
([Encoder -_objectWillBeInProgress:]): New method.
([Encoder -_objectNoLongerInProgress:]): New method.  Depending on
whether we are doing GNU or OpenStep style forward references one of
these two methods will create a backward reference to the object by
calling -_coderInternalCreateReferenceForObject:.  This will effect
whether encoding make forward or backward references to objects in
progress.  GNU uses forward references, which is robust even when the
object's -initWithCoder substitutes another object for self.
([Encoder -_encodeObject:withName:isBycopy:isForwardReference:]): Use
new methods.  Don't call -_coderInternalCreateReferenceForObject here,
let one of the ...InProgress methods do it.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1481 72102866-910b-0410-8b05-ffd578937521
1996-04-19 23:12:59 +00:00
Andrew McCallum
b5526b907d (debug_coder): Make it a static var instead of a #define.
([Decoder -_coderCreateReferenceForObject:]): Add a debugging message.
([Decoder -_coderCreateReferenceForInterconnectedObject:]):
Autorelease the placeholder object.
([Decoder -_createReferenceBeforeInit]): New method.  By default
return NO, for the GNU-style forward references.
([Decoder -decodeObjectAt:anObjPtr:name]): [CODER_OBJECT]: Use new
method; if it returns true, then we are using non-GNU, OpenStep-style
forward references.  In this case: (1) don't try to decode the object by
sending +newWithCoder:, in fact, raise an error if the object wanted
to be decoded that way; (2) call _coderInternalCreateReferenceForObject
before sending -initWithCoder, not after; unfortunately this means
that -initWithCoder methods cannot substitute another object for self.
If it returns false, use the more robust GNU style forward references.
The NSGUnarchiver overrides this method to use the OpenStep style.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1480 72102866-910b-0410-8b05-ffd578937521
1996-04-19 23:05:57 +00:00
Andrew McCallum
e20d99bcd6 Include gnustep/base/Archiver.h.
([Coder +archivedDataWithRootObject:]): Use Archiver class, not
NSArchiver, it matters because now the two classes handle forward
references differently.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1479 72102866-910b-0410-8b05-ffd578937521
1996-04-19 22:59:11 +00:00
Andrew McCallum
58bd468503 NSGUnarchiver inherits from NSUnarchiver, not NSArchiver!
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1478 72102866-910b-0410-8b05-ffd578937521
1996-04-19 22:11:28 +00:00
Andrew McCallum
30ef5ef7f4 Updated to work on NS3.3.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1477 72102866-910b-0410-8b05-ffd578937521
1996-04-18 14:04:36 +00:00
Andrew McCallum
39d7d5a0b3 (Foundation): Fix dependancy to force proper handling after a cvs
checkout.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1476 72102866-910b-0410-8b05-ffd578937521
1996-04-18 12:31:52 +00:00
Andrew McCallum
f2e7604890 New file.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1475 72102866-910b-0410-8b05-ffd578937521
1996-04-18 12:22:46 +00:00
Andrew McCallum
1eed7bc8b9 *** empty log message ***
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1474 72102866-910b-0410-8b05-ffd578937521
1996-04-18 02:25:15 +00:00
Andrew McCallum
816023aba3 Added information about DO.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1473 72102866-910b-0410-8b05-ffd578937521
1996-04-18 02:24:38 +00:00
Andrew McCallum
30d8a4448d *** empty log message ***
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1472 72102866-910b-0410-8b05-ffd578937521
1996-04-18 01:57:08 +00:00
Andrew McCallum
b47ae41c48 (EXEEXT): New variable.
(OEXT): New variable.
(LIBEXT): New variable.
(SRCS): Remove port-{server,client}.m.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1471 72102866-910b-0410-8b05-ffd578937521
1996-04-18 01:56:19 +00:00
Andrew McCallum
dbdba55c4b Warn user that the file hasn't been converted to new collection
scheme, and comment out old code.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1470 72102866-910b-0410-8b05-ffd578937521
1996-04-18 01:55:26 +00:00
Andrew McCallum
b591762987 (main): Beginnings of changes for new port scheme.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1469 72102866-910b-0410-8b05-ffd578937521
1996-04-18 01:54:33 +00:00
Andrew McCallum
e96f98277d ([SecondServer -addRemoteObject:]): Don't free the string returned;
mframe already does it!


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1468 72102866-910b-0410-8b05-ffd578937521
1996-04-18 01:54:11 +00:00
Andrew McCallum
89caa7c8fa Include Foundation/NSString.h.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1467 72102866-910b-0410-8b05-ffd578937521
1996-04-18 01:53:29 +00:00
Andrew McCallum
e3b1d2f905 ([Decoder -decodeObjectAt:anObjPtr:name]): Decode the Unindent
*before* decoding the fref; as does Encoder!


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1466 72102866-910b-0410-8b05-ffd578937521
1996-04-18 01:47:52 +00:00
Andrew McCallum
41199e2579 Include TcpPort.h, not SocketPort.h.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1465 72102866-910b-0410-8b05-ffd578937521
1996-04-18 01:00:51 +00:00
Andrew McCallum
bd479ca058 (../src/lib$(LIBRARY_NAME)$(LIBEXT)): New target.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1464 72102866-910b-0410-8b05-ffd578937521
1996-04-18 00:56:32 +00:00
Andrew McCallum
7ab37298f6 *** empty log message ***
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1463 72102866-910b-0410-8b05-ffd578937521
1996-04-18 00:41:26 +00:00
Andrew McCallum
ff69c91f06 Include Makeconf.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1462 72102866-910b-0410-8b05-ffd578937521
1996-04-18 00:40:30 +00:00
Andrew McCallum
1a86c37454 Various text fixes and updates.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1461 72102866-910b-0410-8b05-ffd578937521
1996-04-18 00:37:51 +00:00