Commit graph

69 commits

Author SHA1 Message Date
Andrew McCallum
ccafde3c62 * src/mframe.m (mframe_build_return()):
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
1997-01-06 22:22:30 +00:00
Andrew McCallum
b2d55b6c2c (method_types_get_next_argument): Do weird argframe workaround not
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
1996-10-31 17:09:27 +00:00
Andrew McCallum
90c034dee3 Don't include objc-malloc.h.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1729 72102866-910b-0410-8b05-ffd578937521
1996-09-07 20:17:46 +00:00
Andrew McCallum
60b44c4a07 (mframe_build_return): In accordance with Objective C runtime
change, use objc_malloc as a function, not a function pointer.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1724 72102866-910b-0410-8b05-ffd578937521
1996-09-07 20:04:13 +00:00
Andrew McCallum
c8a1cf2fef Changes from home. See ChangeLog Aug 5 through Aug 25
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1662 72102866-910b-0410-8b05-ffd578937521
1996-09-02 13:20:20 +00:00
Andrew McCallum
35bfc07b1a Use gcc's __builtin_return smarts to find location of `char' and
`short' return values; don't use my (possibly wrong) guesses.
(retframe_char): New nested function.
(retframe_short): New nested function.
(mframe_do_call) [_C_CHR, _C_UCHR]: Use retframe_char.
[_C_SHT, _C_USHT]: Use retframe_short.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1659 72102866-910b-0410-8b05-ffd578937521
1996-09-02 13:14:50 +00:00
Andrew McCallum
168f431ba9 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
Andrew McCallum
1b2c5c89ff 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
Andrew McCallum
05817bc168 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
Andrew McCallum
a8ae3dddbb 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
Andrew McCallum
838ac3681f 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
Andrew McCallum
459308b0a3 (mframe_do_call): Use sel_get_type() instead of
class_get_instance_method() to get the selector type.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1339 72102866-910b-0410-8b05-ffd578937521
1996-04-10 16:37:30 +00:00
Andrew McCallum
18a8b28a16 (mframe_do_call): When getting the instance method, just use
object->class_pointer, not object_get_class(), because
object_get_class() of a class will return the argument, not the
metaclass---we want the metaclass.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1337 72102866-910b-0410-8b05-ffd578937521
1996-04-09 23:55:42 +00:00
Andrew McCallum
f03cc597e1 Fix typo.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1310 72102866-910b-0410-8b05-ffd578937521
1996-03-30 22:22:20 +00:00
Andrew McCallum
78380df445 Overhauled for memory management changes to fix leaks, various other
fixes.
(MFRAME_STRUCTURES_PASSED_BY_REFERENCE): Renamed from
CONNECTION_STRUCTURES_PASSED_BY_REFERENCE.
(mframe_dissect_call): Function renamed from dissect_method_call.
Remove some redundant if()-else clauses.  Clarify case in which
OUT_PARAMETERS is true.  Use switch statement instead of if-else's.
(mframe_do_call): Function renamed from make_method_call.  Get the
local selector type from the target's Method, not from the selector
type; this will more reliably give the correct type string.  Don't
bother to set OBJECT twice.  Remove some redundant if()-else clauses.
Use NSParameterAssert, not assert, so we can catch problems, (and not
crash the D.O. server).  Change the way memory management for decoded
arguments is handled to remove memory leaks; use new scheme for
DECODER functions that are responsonsible for making sure allocated
memory is eventually freed.  Use alloca() to allocate space for _C_PTR
values, struct's and arrays.  Overhaul the way floats and doubles are
extracted from the RETFRAME; use functions with __builtin_return,
instead of fishing around the RETFRAME.  Use switch statement intead
of if-else's.  Separate cases for char's and short's.  Change some
local variable names for clarity.
(mframe_build_return): Function renamed from dissect_method_return.
Remove some redundant if()-else clauses.  Use NSParameterAssert, not
assert.  Change the way memory management for decoded arguments is
handled to remove memory leaks; use new scheme for DECODER functions
that are responsonsible for making sure allocated memory is eventually
freed.  Use alloca() to allocate space for _C_PTR values, struct's and
arrays.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1292 72102866-910b-0410-8b05-ffd578937521
1996-03-30 01:29:07 +00:00
Andrew McCallum
c15e973016 (dissect_method_return): Initialize RETFRAME to NULL to prevent warning.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1181 72102866-910b-0410-8b05-ffd578937521
1996-03-18 14:03:17 +00:00
Andrew McCallum
4bdc02ebc9 (make_method_call) [__mips__]: Add 4 to offset for float retframe.
Yipes, this may be needed for other architectures too.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@524 72102866-910b-0410-8b05-ffd578937521
1995-08-04 15:09:01 +00:00
Andrew McCallum
f717c58dbc (make_method_call): Added comment about looking into a problem with
returning floats.  I need to get back to this later.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@522 72102866-910b-0410-8b05-ffd578937521
1995-08-03 19:48:16 +00:00
Andrew McCallum
0098375b73 Initial revision
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1 72102866-910b-0410-8b05-ffd578937521
1994-11-04 16:29:24 +00:00