summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorThomas Heller <theller@ctypes.org>2002-04-24 06:35:11 (GMT)
committerThomas Heller <theller@ctypes.org>2002-04-24 06:35:11 (GMT)
commit8da4b59221097ede17b8729d5413ab7651a9d167 (patch)
treed53faf71ae7cfceb3e521b381dbf80b9932fa5bf /Doc
parent3b04d635a250c82b03d9c477d38fd640daf386c2 (diff)
downloadcpython-8da4b59221097ede17b8729d5413ab7651a9d167.zip
cpython-8da4b59221097ede17b8729d5413ab7651a9d167.tar.gz
cpython-8da4b59221097ede17b8729d5413ab7651a9d167.tar.bz2
Fix a small mistake and complete some function prototypes.
SF Patch #547813.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/api/newtypes.tex8
1 files changed, 4 insertions, 4 deletions
diff --git a/Doc/api/newtypes.tex b/Doc/api/newtypes.tex
index f982dec..8d862db 100644
--- a/Doc/api/newtypes.tex
+++ b/Doc/api/newtypes.tex
@@ -226,7 +226,7 @@ binding flag.
\begin{datadesc}{METH_VARARGS}
This is the typical calling convention, where the methods have the
- type \ctype{PyMethodDef}. The function expects two
+ type \ctype{PyCFunction}. The function expects two
\ctype{PyObject*} values. The first one is the \var{self} object for
methods; for module functions, it has the value given to
\cfunction{Py_InitModule4()} (or \NULL{} if
@@ -1151,7 +1151,7 @@ if dictoffset is not aligned on sizeof(void*):
The function signature is
\begin{verbatim}
-tp_init(PyObject *self, PyObject *args, PyObject *kwds)
+int tp_init(PyObject *self, PyObject *args, PyObject *kwds)
\end{verbatim}
The self argument is the instance to be initialized; the \var{args}
@@ -1179,7 +1179,7 @@ tp_init(PyObject *self, PyObject *args, PyObject *kwds)
The function signature is
\begin{verbatim}
-tp_alloc(PyTypeObject *self, int nitems)
+PyObject *tp_alloc(PyTypeObject *self, int nitems)
\end{verbatim}
The purpose of this function is to separate memory allocation from
@@ -1215,7 +1215,7 @@ tp_alloc(PyTypeObject *self, int nitems)
The function signature is
\begin{verbatim}
-tp_new(PyTypeObject *subtype, PyObject *args, PyObject *kwds)
+PyObject *tp_new(PyTypeObject *subtype, PyObject *args, PyObject *kwds)
\end{verbatim}
The subtype argument is the type of the object being created; the