decoder(), always set IP to -1 after sending it -dismiss, i.e. in both
cases. Fix the assertion at the bottom so that IP is allowed to be
nil, which will be the case when mframe_build_return() never calls
decoder(), which will happen when we are returning void.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@2220 72102866-910b-0410-8b05-ffd578937521
an infinite loop with Decoder trying to send this message to a Proxy.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@2218 72102866-910b-0410-8b05-ffd578937521
(CURRENT_FORMAT_VERSION): New macro.
(DEFAULT_FORMAT_VERSION): Changed from 0 to 1.
([BinaryCStream -_initForReadingFromPostSignatureStream:
withFormatVersion:]): New method.
([BinaryCStream -initForWritingToStream:swithFormatVersion:]): New
method.
(WRITE_SIGNED_TYPE0): Renamed from WRITE_SIGNED_TYPE.
(WRITE_SIGNED_TYPE1): New macro.
(WRITE_SIGNED_TYPE): New macro for choosing between them.
(READ_SIGNED_TYPE0): Renamed from READ_SIGNED_TYPE.
(READ_SIGNED_TYPE1): New macro.
(READ_SIGNED_TYPE): New macro for choosing between them.
(WRITE_UNSIGNED_TYPE0, WRITE_UNSIGNED_TYPE1, WRITE_SIGNED_UNTYPE,
READ_UNSIGNED_TYPE0, READ_UNSIGNED_TYPE1, READ_UNSIGNED_TYPE):
Likewise.
([BinaryCStream -encodeValueOfCType:at:withName:name]): Don't use
`unsigned' as part of the argument to the *_UNSIGNED_TYPE macros,
because the macros now include that themselves.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@2047 72102866-910b-0410-8b05-ffd578937521
withFormatVersion:]): New method.
([CStream +cStreamReadingFromStream:s]): Use it.
([CStream -initForReadingFromStream:swithFormatVersion:]): Likewise.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@2046 72102866-910b-0410-8b05-ffd578937521
tries to create an object before main() and before initialize() gets
called as a constructor.
(NSDefaultMallocZone): Likewise.
(initialize): Use a static variable to return immediately if we've
been run already.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@2042 72102866-910b-0410-8b05-ffd578937521
(int) are returned---don't offset into the int. (Recommended by
Richard Frith-Macdonald <richard@brainstorm.co.uk>.)
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@2027 72102866-910b-0410-8b05-ffd578937521
Release stream after invoking initialisation method of super which
retains it. To fix memory leaks.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@2025 72102866-910b-0410-8b05-ffd578937521
lineNumber:description:]: Use the FORMAT argument! (Reported by
Wolfgang Baron <wbaron@ixpoint.de>.)
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@2021 72102866-910b-0410-8b05-ffd578937521
Cooperate with [Connection forwardForProxy:selector:argFrame:] so
that it's callback function is called to tell it dismiss the
ConnectedDecoder.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@2017 72102866-910b-0410-8b05-ffd578937521
Return nil if we fail to create a port for talking to a remote server.
([Connection forwardForProxy:selector:argFrame:]):
Changes to ensure that ConnectedDecoder is correctly dismissed in the
case where a DO method returns an object but does not have any
parameter values returned.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@2016 72102866-910b-0410-8b05-ffd578937521
Various changes to get timeouts working reliably.
Ensure that _current_mode is restored correctly on exit.
* src/RunLoop.m ([RunLoop -acceptInputForMode:beforeDate:]):
Ensure that _current_mode is restored correctly on exit.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@2015 72102866-910b-0410-8b05-ffd578937521
(Reported by Wolfgang Baron <wbaron@ixpoint.de>.)
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@2014 72102866-910b-0410-8b05-ffd578937521
Use NSZoneFromPointer() instead of NSZoneFromPtr().
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@2002 72102866-910b-0410-8b05-ffd578937521
separators longer than a single character and in other cases.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1998 72102866-910b-0410-8b05-ffd578937521
instead of the removed method -_cStringContents.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1995 72102866-910b-0410-8b05-ffd578937521
nameformatVersion:version]): Better commented.
([Decoder -_coderSubstituteObject:atReference:]): New method.
([Decoder -_coderPushRootObjectTable]): Better commented.
([Decoder -finishDecodingInterconnectedObjects]): Implement an
approach to root-object-based -awakeAfterUsingCoder.
([Decoder -decodeObjectAt:anObjPtr:name]): Send -awakeAfterUsingCoder:
here. First see if the object actually responds to it, then send it
and make the object substitution if necessary. Also make the
appropriate substitution in Decoder's internal tables matching
references numbers to objects.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1988 72102866-910b-0410-8b05-ffd578937521
for clarity with variable by the same old name.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1987 72102866-910b-0410-8b05-ffd578937521
([NSString +initialize]): Don't use static variable to prevent getting
run twice.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1942 72102866-910b-0410-8b05-ffd578937521
that we processed all arguments and dismissed the ConnectedCoder.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1929 72102866-910b-0410-8b05-ffd578937521
unused variables MS and DS. Avoid warning by not trying to sprintf()
a zero-length string.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1911 72102866-910b-0410-8b05-ffd578937521
(install): Don't install include/config.h specially, it's now done
with the rest of the HEADERS_INSTALL files.
(ALL_CPPFLAGS): Don't pass `-include include/config.h' since
include/preface.h now does that.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1907 72102866-910b-0410-8b05-ffd578937521
instead of assignment to get the floats and doubles from the `at:'
argument.
([BinaryCStream -decodeValueOfCType:at:withName:]): Likewise, for
setting the values. (Reported by M. Decugis
<mds@sepgifbr.sep.de.edf.fr>.)
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1902 72102866-910b-0410-8b05-ffd578937521
call.
(NSPageSize): Remove the dependancy on __mach__ to a #define above.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1901 72102866-910b-0410-8b05-ffd578937521
retain/release of the MIN_TIMER. (Reported by Richard Frith-Macdonald
<richard@brainstorm.co.uk>.)
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1892 72102866-910b-0410-8b05-ffd578937521
file descriptors for reading and writing. Done by Richard
Frith-Macdonald <richard@brainstorm.co.uk>.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1890 72102866-910b-0410-8b05-ffd578937521
just on m68k, but on all NeXT systems. (Reported by
Richard Frith-Macdonald <richard@brainstorm.co.uk>.)
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1883 72102866-910b-0410-8b05-ffd578937521