mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 00:30:53 +00:00
Declare new method names, and comment.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1293 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
d1f34854a7
commit
0a05a8cab0
2 changed files with 72 additions and 24 deletions
|
@ -1,8 +1,8 @@
|
||||||
/* Interface for functions that dissect/make method calls
|
/* Interface for functions that dissect/make method calls
|
||||||
Copyright (C) 1994 Free Software Foundation, Inc.
|
Copyright (C) 1994, 1996 Free Software Foundation, Inc.
|
||||||
|
|
||||||
Written by: R. Andrew McCallum <mccallum@gnu.ai.mit.edu>
|
Written by: R. Andrew McCallum <mccallum@gnu.ai.mit.edu>
|
||||||
Date: Oct 1994
|
Created: Oct 1994
|
||||||
|
|
||||||
This file is part of the GNU Objective C Class Library.
|
This file is part of the GNU Objective C Class Library.
|
||||||
|
|
||||||
|
@ -26,18 +26,42 @@
|
||||||
|
|
||||||
#include <objects/stdobjects.h>
|
#include <objects/stdobjects.h>
|
||||||
|
|
||||||
BOOL
|
/* These functions are used to pull apart method calls, and put them
|
||||||
dissect_method_call(arglist_t frame, const char *type,
|
back together again. They are useful for things like distributed
|
||||||
void (*f)(int,void*,const char*,int));
|
objects, and cross-language communication glue between Objective C
|
||||||
|
and other languages. */
|
||||||
|
|
||||||
retval_t
|
/* xxx Currently these function only work with the GNU Objective C
|
||||||
dissect_method_return(arglist_t frame, const char *type,
|
runtime, not the NeXT runtime. */
|
||||||
BOOL out_parameters,
|
|
||||||
void(*f)(int,void*,const char*,int));
|
|
||||||
|
/* Extract the arguments to a method call, as found in ARGFRAME,
|
||||||
|
according to type string TYPES, and encode them by calling ENCODER.
|
||||||
|
Return YES if and only if the method has some pass-by-reference
|
||||||
|
arguments. */
|
||||||
|
|
||||||
|
BOOL
|
||||||
|
mframe_dissect_call (arglist_t argframe, const char *types,
|
||||||
|
void (*encoder)(int,void*,const char*,int));
|
||||||
|
|
||||||
|
/* Decode the arguments to a method call by calling DECODER, knowing
|
||||||
|
what to decode by looking at type string ENCODED_TYPES. Build an
|
||||||
|
argframe of type arglist_t, and invoke the method. Then encode the
|
||||||
|
return value and the pass-by-reference values using ENCODER. */
|
||||||
|
|
||||||
void
|
void
|
||||||
make_method_call(const char *forward_type,
|
mframe_do_call (const char *encoded_types,
|
||||||
void(*fd)(int,void*,const char*),
|
void(*decoder)(int,void*,const char*),
|
||||||
void(*fe)(int,void*,const char*,int));
|
void(*encoder)(int,void*,const char*,int));
|
||||||
|
|
||||||
|
/* Decode the return value and pass-by-reference arguments using
|
||||||
|
DECODER, knowning what to decode by looking at type string TYPES
|
||||||
|
and OUT_PARAMETERS, and put then into ARGFRAME. Return the
|
||||||
|
retval_t structure that can be passed to __builtin_return(). */
|
||||||
|
|
||||||
|
retval_t
|
||||||
|
mframe_build_return (arglist_t argframe, const char *types,
|
||||||
|
BOOL out_parameters,
|
||||||
|
void(*decoder)(int,void*,const char*,int));
|
||||||
|
|
||||||
#endif /* __mframe_h_OBJECTS_INCLUDE */
|
#endif /* __mframe_h_OBJECTS_INCLUDE */
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
/* Interface for functions that dissect/make method calls
|
/* Interface for functions that dissect/make method calls
|
||||||
Copyright (C) 1994 Free Software Foundation, Inc.
|
Copyright (C) 1994, 1996 Free Software Foundation, Inc.
|
||||||
|
|
||||||
Written by: R. Andrew McCallum <mccallum@gnu.ai.mit.edu>
|
Written by: R. Andrew McCallum <mccallum@gnu.ai.mit.edu>
|
||||||
Date: Oct 1994
|
Created: Oct 1994
|
||||||
|
|
||||||
This file is part of the GNU Objective C Class Library.
|
This file is part of the GNU Objective C Class Library.
|
||||||
|
|
||||||
|
@ -26,18 +26,42 @@
|
||||||
|
|
||||||
#include <objects/stdobjects.h>
|
#include <objects/stdobjects.h>
|
||||||
|
|
||||||
BOOL
|
/* These functions are used to pull apart method calls, and put them
|
||||||
dissect_method_call(arglist_t frame, const char *type,
|
back together again. They are useful for things like distributed
|
||||||
void (*f)(int,void*,const char*,int));
|
objects, and cross-language communication glue between Objective C
|
||||||
|
and other languages. */
|
||||||
|
|
||||||
retval_t
|
/* xxx Currently these function only work with the GNU Objective C
|
||||||
dissect_method_return(arglist_t frame, const char *type,
|
runtime, not the NeXT runtime. */
|
||||||
BOOL out_parameters,
|
|
||||||
void(*f)(int,void*,const char*,int));
|
|
||||||
|
/* Extract the arguments to a method call, as found in ARGFRAME,
|
||||||
|
according to type string TYPES, and encode them by calling ENCODER.
|
||||||
|
Return YES if and only if the method has some pass-by-reference
|
||||||
|
arguments. */
|
||||||
|
|
||||||
|
BOOL
|
||||||
|
mframe_dissect_call (arglist_t argframe, const char *types,
|
||||||
|
void (*encoder)(int,void*,const char*,int));
|
||||||
|
|
||||||
|
/* Decode the arguments to a method call by calling DECODER, knowing
|
||||||
|
what to decode by looking at type string ENCODED_TYPES. Build an
|
||||||
|
argframe of type arglist_t, and invoke the method. Then encode the
|
||||||
|
return value and the pass-by-reference values using ENCODER. */
|
||||||
|
|
||||||
void
|
void
|
||||||
make_method_call(const char *forward_type,
|
mframe_do_call (const char *encoded_types,
|
||||||
void(*fd)(int,void*,const char*),
|
void(*decoder)(int,void*,const char*),
|
||||||
void(*fe)(int,void*,const char*,int));
|
void(*encoder)(int,void*,const char*,int));
|
||||||
|
|
||||||
|
/* Decode the return value and pass-by-reference arguments using
|
||||||
|
DECODER, knowning what to decode by looking at type string TYPES
|
||||||
|
and OUT_PARAMETERS, and put then into ARGFRAME. Return the
|
||||||
|
retval_t structure that can be passed to __builtin_return(). */
|
||||||
|
|
||||||
|
retval_t
|
||||||
|
mframe_build_return (arglist_t argframe, const char *types,
|
||||||
|
BOOL out_parameters,
|
||||||
|
void(*decoder)(int,void*,const char*,int));
|
||||||
|
|
||||||
#endif /* __mframe_h_OBJECTS_INCLUDE */
|
#endif /* __mframe_h_OBJECTS_INCLUDE */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue