From: John L. <wu...@us...> - 2004-05-02 22:21:04
|
Update of /cvsroot/swig/SWIG/Doc/Manual In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25111 Modified Files: Chicken.html Log Message: Updated chicken documentation Index: Chicken.html =================================================================== RCS file: /cvsroot/swig/SWIG/Doc/Manual/Chicken.html,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** Chicken.html 19 Mar 2004 11:45:20 -0000 1.9 --- Chicken.html 2 May 2004 22:20:53 -0000 1.10 *************** *** 66,70 **** relies on some recent additions to CHICKEN, which are only present in releases of CHICKEN with version number ! <strong>greater than or equal to <tt>1.0</tt></strong>. <br></br> CHICKEN can be downloaded from <a --- 66,70 ---- relies on some recent additions to CHICKEN, which are only present in releases of CHICKEN with version number ! <strong>greater than or equal to <tt>1.40</tt></strong>. <br></br> CHICKEN can be downloaded from <a *************** *** 496,501 **** A tagged pointer is an ordinary CHICKEN pointer with an ! extra slot for an arbitrary Scheme object. With SWIG ! CHICKEN, this Scheme object is a reference to a type-info structure. So each pointer used as input or output from the SWIG-generated CHICKEN wrappers will have type --- 496,501 ---- A tagged pointer is an ordinary CHICKEN pointer with an ! extra slot for a void *. With SWIG ! CHICKEN, this void * is a pointer to a type-info structure. So each pointer used as input or output from the SWIG-generated CHICKEN wrappers will have type *************** *** 507,526 **** <p> To construct a Scheme object from a C pointer, the wrapper code ! calls the function <code>swig_new_pointer_obj()</code>, passing ! stack allocation space of size SWIG_ALLOCSZ_POINTER (see ! definition in Lib/chicken/chickenrun.swg and also ! <code>C_alloc()</code> in the CHICKEN documentation) and a ! pointer to a struct representing the pointer type. </p> <p> To get the pointer represented by a CHICKEN tagged pointer, the ! wrapper code calls the function <code>swig_convert_ptr()</code>, passing a pointer to a struct representing the expected pointer ! type. If the Scheme object passed was not a tagged pointer ! representing a compatible pointer, a non-zero value is returned. </p> - <p><strong>Warning:</strong> The Chicken typechecking code seems - to be broken (Bug #782468), so that type errors may not be - reported. <a name="n16"></a><H2>25.8 Unsupported features</H2> --- 507,524 ---- <p> To construct a Scheme object from a C pointer, the wrapper code ! calls the function ! <code>SWIG_NewPointerObj(void *ptr, swig_type_info *type, int owner)</code>, ! The function that calls <code>SWIG_NewPointerObj</code> must have a variable declared ! <code>C_word *known_space = C_alloc(C_SIZEOF_SWIG_POINTER);</code> ! It is ok to call <code>SWIG_NewPointerObj</code> more than once, ! just make sure known_space has enough space for all the created pointers. </p> <p> To get the pointer represented by a CHICKEN tagged pointer, the ! wrapper code calls the function ! <code>SWIG_ConvertPtr(C_word s, void **result, swig_type_info *type, int flags)</code>, passing a pointer to a struct representing the expected pointer ! type. </p> <a name="n16"></a><H2>25.8 Unsupported features</H2> *************** *** 531,533 **** </ul> </body> ! </html> \ No newline at end of file --- 529,531 ---- </ul> </body> ! </html> |