From 1c38df4ceb9a90b17955a85b9984fef90f299dd7 Mon Sep 17 00:00:00 2001 From: Leif Middelschulte Date: Fri, 17 Aug 2012 12:15:08 +0000 Subject: [PATCH] Correct some descriptions of the typemaps. Remove duplicates git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2012-c@13638 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- Doc/Manual/C.html | 55 +++++++++++++++++++---------------------------- 1 file changed, 22 insertions(+), 33 deletions(-) diff --git a/Doc/Manual/C.html b/Doc/Manual/C.html index 8d622a799..627278f33 100644 --- a/Doc/Manual/C.html +++ b/Doc/Manual/C.html @@ -423,11 +423,11 @@ area: 7.068583 proxy - Input parameters of proxy function + Parameter types of proxy functions ctype - Wrapper function declaration + Parameter types of wrapper functions wrap_call @@ -445,58 +445,47 @@ area: 7.068583 in - Generated for input parameters of a function + Mapping of wrapper functions' parameters to local C++ variables
+
+ + SwigObj* _wrap_MyClass_do(SwigObj *carg1) {
+ SomeCPPClass *arg1 = 0;
+ if (carg1)
+ arg1 = (SomeCPPClass*)carg1->obj
+ else
+ arg1 = 0;
+ } +
couttype - Casts return values of wrapper functions
+ Return value type of wrapper functions

SwigObj* _wrap_MyClass_new(void) {
- void *obj = ...
- return (SwigObj*)obj;
+ SwigObj *result;
+ return result;
}
- - proxy - Adds typecasts to class objects of wrapper functions calls in proxy functions
- - void MyClass_delete(MyClass *myClass) {
- _wrap_MyClass_delete((SwigObj*)myClass);
- } -
- - - - couttype - Adds typecasts to wrap function return values in proxy functions
- - MyClass_new(void) {
- return (MyClass *)_wrap_MyClass_new();
- } -
- - proxycouttype - Adds typecasts to wrap function return values in proxy functions
+ Typecasts wrapper functions' return values in proxy functions
- MyClass_new(void) {
- return (MyClass *)_wrap_MyClass_new();
- } + MyClass *MyClass_new(void) {
+ return (MyClass *)_wrap_MyClass_new();
+ }
out - Adds code to wrapper functions for the return value variables + Assigns wrapped function's return value to return variable, packaging it into SwigObj if necessary cppouttype - special case where a special cppresult variable is added to a wrapper - function (TODO:the reason for its existence needs investigation). + Type of the result variable used for the return value if the wrapped function is a C++ function