summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2002-07-17 16:40:39 (GMT)
committerFred Drake <fdrake@acm.org>2002-07-17 16:40:39 (GMT)
commita3cd9bbaa3eee560ea4da30710f9d42b8ed4a7c7 (patch)
tree0348e189ad041eb00b8f17c7e071e9460b3e3694 /Doc
parent938ace69a0e112424a2f426a4881d1fd1fc922d2 (diff)
downloadcpython-a3cd9bbaa3eee560ea4da30710f9d42b8ed4a7c7.zip
cpython-a3cd9bbaa3eee560ea4da30710f9d42b8ed4a7c7.tar.gz
cpython-a3cd9bbaa3eee560ea4da30710f9d42b8ed4a7c7.tar.bz2
Remove now-obsolete staticforward/statichere discussion.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/ext/newtypes.tex12
1 files changed, 2 insertions, 10 deletions
diff --git a/Doc/ext/newtypes.tex b/Doc/ext/newtypes.tex
index 12e728b..4763d18 100644
--- a/Doc/ext/newtypes.tex
+++ b/Doc/ext/newtypes.tex
@@ -38,7 +38,7 @@ seem familiar from the last chapter.
The first bit that will be new is:
\begin{verbatim}
-staticforward PyTypeObject noddy_NoddyType;
+static PyTypeObject noddy_NoddyType;
\end{verbatim}
This names the type object that will be defining further down in the
@@ -46,11 +46,6 @@ file. It can't be defined here because its definition has to refer to
functions that have no yet been defined, but we need to be able to
refer to it, hence the declaration.
-The \code{staticforward} is required to placate various brain dead
-compilers. The actual definition of the object declared using
-\code{staticforward} should use \code{statichere} instead of
-\keyword{static}.
-
\begin{verbatim}
typedef struct {
PyObject_HEAD
@@ -156,7 +151,7 @@ Python objects, one would decref them here.
Moving on, we come to the crunch --- the type object.
\begin{verbatim}
-statichere PyTypeObject noddy_NoddyType = {
+static PyTypeObject noddy_NoddyType = {
PyObject_HEAD_INIT(NULL)
0, /* ob_size */
"Noddy", /* tp_name */
@@ -175,9 +170,6 @@ statichere PyTypeObject noddy_NoddyType = {
};
\end{verbatim}
-(Note the use of \code{statichere} instead of \keyword{static}, since
-we used \code{staticforward} in the declaration.)
-
Now if you go and look up the definition of \ctype{PyTypeObject} in
\file{object.h} you'll see that it has many, many more fields that the
definition above. The remaining fields will be filled with zeros by