For now, I gave up with automatic conversion of reST to Python-latex,

so I'm writing this in latex now.

Skeleton for the ctypes reference.
This commit is contained in:
Thomas Heller 2006-05-26 16:42:44 +00:00
parent 7c940d1d68
commit ada638bf91
2 changed files with 207 additions and 0 deletions

View File

@ -245,6 +245,7 @@ and how to embed it in other applications.
\input{libplatform}
\input{liberrno}
\input{libctypes}
\input{libctypesref}
\input{libsomeos} % Optional Operating System Services
\input{libselect}

206
Doc/lib/libctypesref.tex Normal file
View File

@ -0,0 +1,206 @@
\subsection{ctypes reference\label{ctypes-reference}}
\begin{funcdesc}{addressof}{obj}
\end{funcdesc}
\begin{funcdesc}{alignment}{obj_or_type}
\end{funcdesc}
\begin{excclassdesc}{ArgumentError}{}
\end{excclassdesc}
\begin{classdesc}{BigEndianStructure}{}
\end{classdesc}
\begin{funcdesc}{byref}{obj}
\end{funcdesc}
\begin{classdesc}{c_byte}{\optional{value}}
\end{classdesc}
\begin{classdesc}{c_char}{\optional{value}}
\end{classdesc}
\begin{classdesc}{c_char_p}{\optional{value}}
\end{classdesc}
\begin{classdesc}{c_double}{\optional{value}}
\end{classdesc}
\begin{classdesc}{c_float}{\optional{value}}
\end{classdesc}
\begin{classdesc}{c_int}{\optional{value}}
\end{classdesc}
\begin{classdesc}{c_int16}{\optional{value}}
\end{classdesc}
\begin{classdesc}{c_int32}{\optional{value}}
\end{classdesc}
\begin{classdesc}{c_int64}{\optional{value}}
\end{classdesc}
\begin{classdesc}{c_int8}{\optional{value}}
\end{classdesc}
\begin{classdesc}{c_long}{\optional{value}}
\end{classdesc}
\begin{classdesc}{c_longlong}{\optional{value}}
\end{classdesc}
\begin{classdesc}{c_short}{\optional{value}}
\end{classdesc}
\begin{classdesc}{c_size_t}{\optional{value}}
\end{classdesc}
\begin{classdesc}{c_ubyte}{\optional{value}}
\end{classdesc}
\begin{classdesc}{c_uint}{\optional{value}}
\end{classdesc}
\begin{classdesc}{c_uint16}{\optional{value}}
\end{classdesc}
\begin{classdesc}{c_uint32}{\optional{value}}
\end{classdesc}
\begin{classdesc}{c_uint64}{\optional{value}}
\end{classdesc}
\begin{classdesc}{c_uint8}{\optional{value}}
\end{classdesc}
\begin{classdesc}{c_ulong}{\optional{value}}
\end{classdesc}
\begin{classdesc}{c_ulonglong}{\optional{value}}
\end{classdesc}
\begin{classdesc}{c_ushort}{\optional{value}}
\end{classdesc}
\begin{classdesc}{c_void_p}{\optional{value}}
\end{classdesc}
\begin{classdesc}{c_wchar}{\optional{value}}
\end{classdesc}
\begin{classdesc}{c_wchar_p}{\optional{value}}
\end{classdesc}
\begin{funcdesc}{cast}{obj, type}
\end{funcdesc}
\begin{classdesc}{CDLL}{name, mode=RTLD_LOCAL, handle=None}
\end{classdesc}
\begin{datadesc}{cdll}
\end{datadesc}
\begin{funcdesc}{CFUNCTYPE}{restype, *argtypes}
\end{funcdesc}
\begin{funcdesc}{create_string_buffer}{init\optional{, size}}
\end{funcdesc}
\begin{funcdesc}{create_unicode_buffer}{init\optional{, size}}
\end{funcdesc}
\begin{funcdesc}{DllCanUnloadNow}{}
\end{funcdesc}
\begin{funcdesc}{DllGetClassObject}{}
\end{funcdesc}
\begin{funcdesc}{FormatError}{}
\end{funcdesc}
\begin{funcdesc}{GetLastError}{}
\end{funcdesc}
\begin{classdesc}{HRESULT}{}
\end{classdesc}
\begin{classdesc}{LibraryLoader}{dlltype}
\end{classdesc}
\begin{classdesc}{LittleEndianStructure}{}
\end{classdesc}
\begin{funcdesc}{memmove}{dst, src, count}
\end{funcdesc}
\begin{funcdesc}{memset}{dst, c, count}
\end{funcdesc}
\begin{classdesc}{OleDLL}{name, mode=RTLD_LOCAL, handle=None}
\end{classdesc}
\begin{datadesc}{oledll}
\end{datadesc}
\begin{funcdesc}{POINTER}{}
\end{funcdesc}
\begin{funcdesc}{pointer}{}
\end{funcdesc}
\begin{classdesc}{py_object}{}
\end{classdesc}
\begin{classdesc}{PyDLL}{name, mode=RTLD_LOCAL, handle=None}
\end{classdesc}
\begin{datadesc}{pydll}{}
\end{datadesc}
\begin{funcdesc}{PYFUNCTYPE}{restype, *argtypes}
\end{funcdesc}
\begin{funcdesc}{pythonapi}{}
\end{funcdesc}
\begin{funcdesc}{resize}{}
\end{funcdesc}
\begin{datadesc}{RTLD_GLOBAL}
\end{datadesc}
\begin{datadesc}{RTLD_LOCAL}
\end{datadesc}
\begin{funcdesc}{set_conversion_mode}{}
\end{funcdesc}
\begin{funcdesc}{sizeof}{}
\end{funcdesc}
\begin{funcdesc}{string_at}{address}
\end{funcdesc}
\begin{classdesc}{Structure}{}
\end{classdesc}
\begin{classdesc}{Union}{}
\end{classdesc}
\begin{classdesc}{WinDLL}{name, mode=RTLD_LOCAL, handle=None}
\end{classdesc}
\begin{datadesc}{windll}
\end{datadesc}
\begin{funcdesc}{WinError}{}
\end{funcdesc}
\begin{funcdesc}{WINFUNCTYPE}{restype, *argtypes}
\end{funcdesc}
\begin{funcdesc}{wstring_at}{address}
\end{funcdesc}