@@ -38,19 +38,14 @@ \section{The Basics
3838The first bit that will be new is:
3939
4040\begin {verbatim }
41- staticforward PyTypeObject noddy_NoddyType;
41+ static PyTypeObject noddy_NoddyType;
4242\end {verbatim }
4343
4444This names the type object that will be defining further down in the
4545file. It can't be defined here because its definition has to refer to
4646functions that have no yet been defined, but we need to be able to
4747refer to it, hence the declaration.
4848
49- The \code {staticforward} is required to placate various brain dead
50- compilers. The actual definition of the object declared using
51- \code {staticforward} should use \code {statichere} instead of
52- \keyword {static}.
53-
5449\begin {verbatim }
5550typedef struct {
5651 PyObject_HEAD
@@ -156,7 +151,7 @@ \section{The Basics
156151Moving on, we come to the crunch --- the type object.
157152
158153\begin {verbatim }
159- statichere PyTypeObject noddy_NoddyType = {
154+ static PyTypeObject noddy_NoddyType = {
160155 PyObject_HEAD_INIT(NULL)
161156 0, /* ob_size */
162157 "Noddy", /* tp_name */
@@ -175,9 +170,6 @@ \section{The Basics
175170};
176171\end {verbatim }
177172
178- (Note the use of \code {statichere} instead of \keyword {static}, since
179- we used \code {staticforward} in the declaration.)
180-
181173Now if you go and look up the definition of \ctype {PyTypeObject} in
182174\file {object.h} you'll see that it has many, many more fields that the
183175definition above. The remaining fields will be filled with zeros by
0 commit comments