]> granicus.if.org Git - python/commitdiff
Remove now-obsolete staticforward/statichere discussion.
authorFred Drake <fdrake@acm.org>
Wed, 17 Jul 2002 16:40:39 +0000 (16:40 +0000)
committerFred Drake <fdrake@acm.org>
Wed, 17 Jul 2002 16:40:39 +0000 (16:40 +0000)
Doc/ext/newtypes.tex

index 12e728ba50b0ba6e9c72fb7eeb7d7e0f272ad1ca..4763d18515371b5de3d674f4ba9670c6f68968f6 100644 (file)
@@ -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