From: <le...@us...> - 2012-08-18 13:42:45
|
Revision: 13649 http://swig.svn.sourceforge.net/swig/?rev=13649&view=rev Author: leiflm Date: 2012-08-18 13:42:39 +0000 (Sat, 18 Aug 2012) Log Message: ----------- Minor formatting tweaks. Modified Paths: -------------- branches/gsoc2012-c/Doc/Manual/C.html Modified: branches/gsoc2012-c/Doc/Manual/C.html =================================================================== --- branches/gsoc2012-c/Doc/Manual/C.html 2012-08-18 13:42:28 UTC (rev 13648) +++ branches/gsoc2012-c/Doc/Manual/C.html 2012-08-18 13:42:39 UTC (rev 13649) @@ -430,49 +430,49 @@ <td>Parameter types of wrapper functions and</br> Casts of functions' parameters of wrapper function calls</br> </br> - <tt> + <code> extern void _wrap_MyClass_delete(SwigObj *o);</br> </br> void MyClass_delete(MyClass *c) {</br> - _wrap_MyClass_delete((Swig_Obj *)c);</br> + _wrap_MyClass_delete((Swig_Obj *)c);</br> } - </tt> + </code> </td> </tr> <tr> <td><tt>in</tt></td> <td>Mapping of wrapper functions' parameters to local C++ variables</br> </br> - <tt> + <code> SwigObj* _wrap_MyClass_do(SwigObj *carg1) {</br> - SomeCPPClass *arg1 = 0;</br> - if (carg1)</br> - arg1 = (SomeCPPClass*)carg1->obj</br> - else</br> - arg1 = 0;</br> + SomeCPPClass *arg1 = 0;</br> + if (carg1)</br> + arg1 = (SomeCPPClass*)carg1->obj</br> + else</br> + arg1 = 0;</br> } - </tt></td> + </code></td> </tr> <tr> <td><tt>couttype</tt></td> <td>Return value type of wrapper functions</br> </br> - <tt> + <code> SwigObj* _wrap_MyClass_new(void) {</br> - SwigObj *result;</br> - return result;</br> + SwigObj *result;</br> + return result;</br> } - </tt> + </code> </td> </tr> <tr> <td><tt>proxycouttype</tt></td> <td>Typecasts wrapper functions' return values in proxy functions</br> - <tt> + <code> MyClass *MyClass_new(void) {</br> - return (MyClass *)_wrap_MyClass_new();</br> + return (MyClass *)_wrap_MyClass_new();</br> } - </tt> + </code> </td> </tr> <tr> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |