[ctypes-commit] ctypes/docs/manual tutorial.txt,1.20,1.21
Brought to you by:
theller
From: Thomas H. <th...@us...> - 2006-04-19 18:47:45
|
Update of /cvsroot/ctypes/ctypes/docs/manual In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11411 Modified Files: tutorial.txt Log Message: *** empty log message *** Index: tutorial.txt =================================================================== RCS file: /cvsroot/ctypes/ctypes/docs/manual/tutorial.txt,v retrieving revision 1.20 retrieving revision 1.21 diff -C2 -d -r1.20 -r1.21 *** tutorial.txt 19 Apr 2006 18:35:30 -0000 1.20 --- tutorial.txt 19 Apr 2006 18:47:39 -0000 1.21 *************** *** 481,485 **** >>> ! Structures and Unions --------------------- --- 481,485 ---- >>> ! Structures and unions --------------------- *************** *** 547,551 **** ! Structure/Union Alignment and Byte Order ---------------------------------------- --- 547,551 ---- ! Structure/union alignment and byte order ---------------------------------------- *************** *** 564,568 **** ! Bit Fields in Structures and Unions ----------------------------------- --- 564,568 ---- ! Bit fields in structures and unions ----------------------------------- *************** *** 772,777 **** ------------------ - (This example is too long, I should have used a shorter array) - ``ctypes`` allows to create C callable function pointers from Python callables. These are sometimes called *callback functions*. --- 772,775 ---- *************** *** 1052,1069 **** XXX Wrong - Bitfields are not implemented. - - Enumeration types are not implemented. You can do it easily - yourself, using ``c_int`` as the base class. - - ``long double`` is not implemented. ! .. no longer true: You cannot pass structures to functions as arguments, and you ! cannot set them as return type (only pointers). ! .. no longer true? Callback functions implemented in Python can *only* return integers. .. Local Variables: ! compile-command: "make_html" End: --- 1050,1061 ---- XXX Wrong ! Enumeration types are not implemented. You can do it easily yourself, ! using ``c_int`` as the base class. ! ``long double`` is not implemented. .. Local Variables: ! compile-command: "make.bat" End: |