Commit graph

24 commits

Author SHA1 Message Date
mccallum
fc7fc81af4 (WRITE_SIGNED_TYPE): Avoid alignment errors by using memcpy() instead
of trying to assign to (_TYPE*)(BUFFER+1).
(WRITE_UNSIGNED_TYPE): Likewise.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1595 72102866-910b-0410-8b05-ffd578937521
1996-05-31 14:22:25 +00:00
mccallum
f1c58719fa Patch from Scott Christley.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1551 72102866-910b-0410-8b05-ffd578937521
1996-05-27 14:26:41 +00:00
mccallum
3c04eee2c9 Include <netinet/in.h> for byte-conversion; needed on Solaris.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1526 72102866-910b-0410-8b05-ffd578937521
1996-05-13 15:39:21 +00:00
mccallum
49d43a44aa Change "Gnustep" to "GNUstep"
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1521 72102866-910b-0410-8b05-ffd578937521
1996-05-12 00:56:10 +00:00
mccallum
73bb127d62 #include <values.h> to get BITSPERBYTE on Solaris. (Reported by
M. Decugis <mds@sepgifbr.sep.de.edf.fr>.)


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1515 72102866-910b-0410-8b05-ffd578937521
1996-05-10 13:55:35 +00:00
mccallum
59201feebe (BITSPERBYTE): Define if not defined and on NeXT.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1513 72102866-910b-0410-8b05-ffd578937521
1996-05-08 14:53:02 +00:00
mccallum
3228ed0477 Change R. Andrew McCallum to post-marriage name: Andrew Kachites McCallum
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1456 72102866-910b-0410-8b05-ffd578937521
1996-04-17 20:17:45 +00:00
mccallum
dbe4613ced Rename in comments from GNU Objective C Class Library to Gnustep Base Library.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1451 72102866-910b-0410-8b05-ffd578937521
1996-04-17 19:55:26 +00:00
mccallum
89d67bb808 Fix typo; it is preface.h, not prefix.h.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1420 72102866-910b-0410-8b05-ffd578937521
1996-04-17 15:34:35 +00:00
mccallum
d4b12b4053 Change all include objects/*.h to include gnustep/base/*.h.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1419 72102866-910b-0410-8b05-ffd578937521
1996-04-17 15:23:00 +00:00
mccallum
f64eb0baae (debug_binary_coder): Explicitly set to zero.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1364 72102866-910b-0410-8b05-ffd578937521
1996-04-14 00:59:58 +00:00
mccallum
064b35b0af ([BinaryCStream -encodeValueOfCType:at:withName:]): Encode the
exponent as a short, not an int.
([BinaryCStream -decodeValueOfCType:at:withName:]): Likewise, decoding.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1291 72102866-910b-0410-8b05-ffd578937521
1996-03-30 00:50:30 +00:00
mccallum
4efe2c488b ([BinaryCStream -encodeValueOfCType:at:withName:]): [_C_CHARPTR]:
Don't autorelease the malloc'ed pointer here; thus the behavior is
analogous to decoding an object: it gives you a reference, it is the
callers responsibility to free it.
([BinaryCStream -decodeValueOfCType:at:withName:]): [_C_DBL]: Fix
typo.  Use mantissa1, not mantissa2 twice.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1289 72102866-910b-0410-8b05-ffd578937521
1996-03-29 17:53:05 +00:00
mccallum
d410dc37bb Include <math.h>
(FLOAT_FACTOR): New macro.
(WRITE_SIGNED_TYPE): Take new first argument, the pointer for the
data.
(READ_SIGNED_TYPE): Likewise.
(WRITE_UNSIGNED_TYPE): Likewise.
(READ_UNSIGNED_TYPE): Likewise.
([BinaryCStream -encodeValueOfCType:at:withName:]): [_C_FLT]: Use new
scheme, based on frexp() to turn a float into a series of ints.
[_C_DBL]: Likewise.
([BinaryCStream -decodeValueOfCType:at:withName:]): [_C_FLT]: Likewise
to match.
[_C_DBL]: Likewise.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1286 72102866-910b-0410-8b05-ffd578937521
1996-03-29 15:51:13 +00:00
mccallum
23494c1e2f ([BinaryCStream -decodeValueOfCType:at:withName:]): [_C_CHARPTR]:
Autorelease the malloc'ed char pointer.  Before memory was leaking.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1277 72102866-910b-0410-8b05-ffd578937521
1996-03-26 22:28:48 +00:00
mccallum
f491e64f1b Fix typos.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1276 72102866-910b-0410-8b05-ffd578937521
1996-03-26 20:59:42 +00:00
mccallum
9aa534aee8 ([BinaryCStream -encodeValueOfCType:at:withName:]): Use NSException
instead of sending -error:.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1272 72102866-910b-0410-8b05-ffd578937521
1996-03-26 19:23:09 +00:00
mccallum
75cd745baf ([BinaryCStream -encodeValueOfCType:at:withName:name]): [_C_CHARPTR]:
Write the string with the host LENGTH, not the network LENGTH!


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1256 72102866-910b-0410-8b05-ffd578937521
1996-03-22 02:36:22 +00:00
mccallum
1b9378e6be ([BinaryCStream -encodeValueOfCType:at:withName:name]): Fix typo.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1242 72102866-910b-0410-8b05-ffd578937521
1996-03-22 00:41:23 +00:00
mccallum
54f8625a2a Overhauled to use htonl() and friends. New format is incompatible
with the old.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1237 72102866-910b-0410-8b05-ffd578937521
1996-03-22 00:31:09 +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
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
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
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