Commit graph

2201 commits

Author SHA1 Message Date
mccallum
caeb6db5ad Prepend `o-' in #include.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1512 72102866-910b-0410-8b05-ffd578937521
1996-05-07 23:02:14 +00:00
mccallum
f82634b0b3 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
mccallum
6ee022a2cf 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
mccallum
0a0cf5a0c3 *** 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
mccallum
eece34bf1d (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
mccallum
9550e4440e *** 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
mccallum
2a2f3b240c (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
mccallum
d9881f491e (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
mccallum
227a40404e ([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
mccallum
76d3ea2f41 ([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
mccallum
07530e41bd (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
mccallum
e34ea49747 (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
mccallum
617572fc34 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
mccallum
c4d01b1990 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
mccallum
8f0f730c70 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
mccallum
5307f03436 ([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
mccallum
901b7e7761 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
mccallum
ab46d0c9c9 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
mccallum
df76a73a48 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
mccallum
2a513e2117 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
mccallum
9d1d627729 ([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
mccallum
718a535d98 (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
mccallum
39953b45dd *** 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
mccallum
843f36a72c 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
mccallum
3c5e8f5064 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
mccallum
253120b8c5 (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
mccallum
a7aa62d7db ([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
mccallum
cf5278b6d9 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
mccallum
4c0c21dc34 (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
mccallum
32b5f18ba1 ([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
mccallum
6687fc397a (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
mccallum
1e171d13a7 (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
mccallum
e16a142cde 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
mccallum
1f0051d810 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
mccallum
df98385294 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
mccallum
26d90fec56 (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
mccallum
2001544f1a 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
mccallum
8a8f409cc6 *** 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
mccallum
5fdb2ba814 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
mccallum
bc6361ed02 *** 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
mccallum
e6362b8885 (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
mccallum
129a20d3c2 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
mccallum
cc5d651fe8 (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
mccallum
c4658c729b ([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
mccallum
e22f4e890b 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
mccallum
986b9760cf ([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
mccallum
7122cfbd69 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
mccallum
3dda1810ce (../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
mccallum
04cf6e7672 *** 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
mccallum
c2758d1b0f 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