Commit graph

1920 commits

Author SHA1 Message Date
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
fe7cb5d7ef Initial revision
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@749 72102866-910b-0410-8b05-ffd578937521
1996-01-22 23:04:48 +00:00
mccallum
a22c8553df Initial revision
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@748 72102866-910b-0410-8b05-ffd578937521
1996-01-22 22:55:56 +00:00
mccallum
6bdd79bcb5 .
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@747 72102866-910b-0410-8b05-ffd578937521
1996-01-22 22:45:53 +00:00
mccallum
79a05b3ec2 (OBJECTS_SUBMINOR_VERSION): libobjects version 0.1.19.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@746 72102866-910b-0410-8b05-ffd578937521
1996-01-22 16:08:52 +00:00
mccallum
2878619149 *** empty log message ***
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@745 72102866-910b-0410-8b05-ffd578937521
1996-01-22 16:05:30 +00:00
mccallum
4668e37756 Don't have the initializer-loading test program
print anything.
	(OBJC_SYS_DYNAMIC_FLAGS): Use '' not "" to quote $(CC)..


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@744 72102866-910b-0410-8b05-ffd578937521
1996-01-22 16:03:34 +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
c0b2b66d00 (OBJECTS_SUBMINOR_VERSION): libobjects version 0.1.18.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@742 72102866-910b-0410-8b05-ffd578937521
1996-01-19 17:16:59 +00:00
mccallum
fc7c12cf32 (OBJS_INSTALL): Fix typo NeXT_OBJS -> NEXTSTEP_OBJS in situation of
running under NeXTSTEP, but not using NeXT runtime.  (Reported by
Satoshi Adachi <adachi@wisdom.aa.ap.titech.ac.jp>.)


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@741 72102866-910b-0410-8b05-ffd578937521
1996-01-19 16:37:32 +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
5af5f96058 Remove -$(MAKEFLAGS) as argument to recursive calls of $(MAKE); this
happens automatically.  (Reported by Niels Mvller
<nisse@lysator.liu.se>.)


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@736 72102866-910b-0410-8b05-ffd578937521
1996-01-19 15:43:31 +00:00
mccallum
e89df7c01e (OBJECTS_SUBMINOR_VERSION): Version 0.1.17.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@735 72102866-910b-0410-8b05-ffd578937521
1996-01-17 00:33:46 +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
240b644e22 * aclocal.m4 (OBJC_SYS_AUTOLOAD): Define CON_AUTOLOAD if
/usr/include/elf.h exists. Use yes/no rather than 1/0.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@732 72102866-910b-0410-8b05-ffd578937521
1996-01-16 23:32:15 +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
b82f3194a0 (install): Prefix data files with $(srcdir).
(Makefile): New target.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@729 72102866-910b-0410-8b05-ffd578937521
1996-01-16 00:40:04 +00:00
mccallum
7e94490c7d (all): Remove target `bundles' for now; linking them doesn't always
work.  If people want to test bundles, they can type `make bundles'.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@728 72102866-910b-0410-8b05-ffd578937521
1996-01-16 00:17:12 +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
3589831229 (ALL_CPPFLAGS): -I../src, not -I.
(Makefile): Prefix dependancy with $(srcdir).


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@726 72102866-910b-0410-8b05-ffd578937521
1996-01-15 23:40:56 +00:00
mccallum
d529cee8a5 (OBJECTS_FTP_MACHINE): Change to prep.
(OBJECTS_FTP_DIRECTORY): Change to pub/gnu.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@725 72102866-910b-0410-8b05-ffd578937521
1996-01-15 22:55:51 +00:00
mccallum
35036d6a33 (OBJECTS_SUBMINOR_VERSION): libobjects version 0.1.16.
(OBJECTS_GCC_VERSION): Updated from 2.7.0 to 2.7.2.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@724 72102866-910b-0410-8b05-ffd578937521
1996-01-15 22:31:10 +00:00
mccallum
5159269b05 (OBJC_SYS_DYNAMIC_LINKER): Expand macro correctly in dld/defs.h check.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@723 72102866-910b-0410-8b05-ffd578937521
1996-01-15 22:24:43 +00:00
mccallum
4d1bd84ee8 (dist): Add -9 to gzip args.
(snapshot): Likewise.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@722 72102866-910b-0410-8b05-ffd578937521
1996-01-15 22:21:06 +00:00
mccallum
aa14c110d3 Remove --enable-shared from first example of installation commands;
many people were using ignorant of whether or not their system
supported dynamically-linked shared libraries.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@721 72102866-910b-0410-8b05-ffd578937521
1996-01-15 22:15:16 +00:00