diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2006-03-22 09:28:35 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2006-03-22 09:28:35 (GMT) |
commit | 227b5339edcdcc9ca6322a2217b75db11b69048f (patch) | |
tree | 8829d0c1b2ac9474b386499ca0fda37700f72bd8 /Modules | |
parent | 914a81841f881122f95eb5a9330a3ef96de174cd (diff) | |
download | cpython-227b5339edcdcc9ca6322a2217b75db11b69048f.zip cpython-227b5339edcdcc9ca6322a2217b75db11b69048f.tar.gz cpython-227b5339edcdcc9ca6322a2217b75db11b69048f.tar.bz2 |
Finish getting rid of statichere/staticforward
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/_bsddb.c | 12 | ||||
-rw-r--r-- | Modules/_csv.c | 6 | ||||
-rw-r--r-- | Modules/_ctypes/_ctypes.c | 2 | ||||
-rw-r--r-- | Modules/_elementtree.c | 12 | ||||
-rw-r--r-- | Modules/_lsprof.c | 4 | ||||
-rw-r--r-- | Modules/_tkinter.c | 4 | ||||
-rw-r--r-- | Modules/datetimemodule.c | 6 |
7 files changed, 23 insertions, 23 deletions
diff --git a/Modules/_bsddb.c b/Modules/_bsddb.c index 9d0893e..8e9ec0f 100644 --- a/Modules/_bsddb.c +++ b/Modules/_bsddb.c @@ -283,7 +283,7 @@ typedef struct { -staticforward PyTypeObject DB_Type, DBCursor_Type, DBEnv_Type, DBTxn_Type, DBLock_Type; +static PyTypeObject DB_Type, DBCursor_Type, DBEnv_Type, DBTxn_Type, DBLock_Type; #define DBObject_Check(v) ((v)->ob_type == &DB_Type) #define DBCursorObject_Check(v) ((v)->ob_type == &DBCursor_Type) @@ -4823,7 +4823,7 @@ DBLock_getattr(DBLockObject* self, char *name) return NULL; } -statichere PyTypeObject DB_Type = { +static PyTypeObject DB_Type = { PyObject_HEAD_INIT(NULL) 0, /*ob_size*/ "DB", /*tp_name*/ @@ -4856,7 +4856,7 @@ statichere PyTypeObject DB_Type = { }; -statichere PyTypeObject DBCursor_Type = { +static PyTypeObject DBCursor_Type = { PyObject_HEAD_INIT(NULL) 0, /*ob_size*/ "DBCursor", /*tp_name*/ @@ -4889,7 +4889,7 @@ statichere PyTypeObject DBCursor_Type = { }; -statichere PyTypeObject DBEnv_Type = { +static PyTypeObject DBEnv_Type = { PyObject_HEAD_INIT(NULL) 0, /*ob_size*/ "DBEnv", /*tp_name*/ @@ -4921,7 +4921,7 @@ statichere PyTypeObject DBEnv_Type = { #endif }; -statichere PyTypeObject DBTxn_Type = { +static PyTypeObject DBTxn_Type = { PyObject_HEAD_INIT(NULL) 0, /*ob_size*/ "DBTxn", /*tp_name*/ @@ -4954,7 +4954,7 @@ statichere PyTypeObject DBTxn_Type = { }; -statichere PyTypeObject DBLock_Type = { +static PyTypeObject DBLock_Type = { PyObject_HEAD_INIT(NULL) 0, /*ob_size*/ "DBLock", /*tp_name*/ diff --git a/Modules/_csv.c b/Modules/_csv.c index da5ae0d..469cd64 100644 --- a/Modules/_csv.c +++ b/Modules/_csv.c @@ -83,7 +83,7 @@ typedef struct { int strict; /* raise exception on bad CSV */ } DialectObj; -staticforward PyTypeObject Dialect_Type; +static PyTypeObject Dialect_Type; typedef struct { PyObject_HEAD @@ -101,7 +101,7 @@ typedef struct { unsigned long line_num; /* Source-file line number */ } ReaderObj; -staticforward PyTypeObject Reader_Type; +static PyTypeObject Reader_Type; #define ReaderObject_Check(v) ((v)->ob_type == &Reader_Type) @@ -118,7 +118,7 @@ typedef struct { int num_fields; /* number of fields in record */ } WriterObj; -staticforward PyTypeObject Writer_Type; +static PyTypeObject Writer_Type; /* * DIALECT class diff --git a/Modules/_ctypes/_ctypes.c b/Modules/_ctypes/_ctypes.c index bf88af8..3a7d3ef 100644 --- a/Modules/_ctypes/_ctypes.c +++ b/Modules/_ctypes/_ctypes.c @@ -591,7 +591,7 @@ PointerType_set_type(PyTypeObject *self, PyObject *type) return Py_None; } -staticforward PyObject *_byref(PyObject *); +static PyObject *_byref(PyObject *); static PyObject * PointerType_from_param(PyObject *type, PyObject *value) diff --git a/Modules/_elementtree.c b/Modules/_elementtree.c index 06ae24c..7e36ea3 100644 --- a/Modules/_elementtree.c +++ b/Modules/_elementtree.c @@ -267,7 +267,7 @@ typedef struct { } ElementObject; -staticforward PyTypeObject Element_Type; +static PyTypeObject Element_Type; #define Element_CheckExact(op) ((op)->ob_type == &Element_Type) @@ -1396,7 +1396,7 @@ static PySequenceMethods element_as_sequence = { element_setslice, }; -statichere PyTypeObject Element_Type = { +static PyTypeObject Element_Type = { PyObject_HEAD_INIT(NULL) 0, "Element", sizeof(ElementObject), 0, /* methods */ @@ -1435,7 +1435,7 @@ typedef struct { } TreeBuilderObject; -staticforward PyTypeObject TreeBuilder_Type; +static PyTypeObject TreeBuilder_Type; #define TreeBuilder_CheckExact(op) ((op)->ob_type == &TreeBuilder_Type) @@ -1805,7 +1805,7 @@ treebuilder_getattr(TreeBuilderObject* self, char* name) return Py_FindMethod(treebuilder_methods, (PyObject*) self, name); } -statichere PyTypeObject TreeBuilder_Type = { +static PyTypeObject TreeBuilder_Type = { PyObject_HEAD_INIT(NULL) 0, "TreeBuilder", sizeof(TreeBuilderObject), 0, /* methods */ @@ -1849,7 +1849,7 @@ typedef struct { } XMLParserObject; -staticforward PyTypeObject XMLParser_Type; +static PyTypeObject XMLParser_Type; /* helpers */ @@ -2580,7 +2580,7 @@ xmlparser_getattr(XMLParserObject* self, char* name) return res; } -statichere PyTypeObject XMLParser_Type = { +static PyTypeObject XMLParser_Type = { PyObject_HEAD_INIT(NULL) 0, "XMLParser", sizeof(XMLParserObject), 0, /* methods */ diff --git a/Modules/_lsprof.c b/Modules/_lsprof.c index dddab8e..17c71e9 100644 --- a/Modules/_lsprof.c +++ b/Modules/_lsprof.c @@ -117,7 +117,7 @@ typedef struct { #define POF_BUILTINS 0x004 #define POF_NOMEMORY 0x100 -staticforward PyTypeObject PyProfiler_Type; +static PyTypeObject PyProfiler_Type; #define PyProfiler_Check(op) PyObject_TypeCheck(op, &PyProfiler_Type) #define PyProfiler_CheckExact(op) ((op)->ob_type == &PyProfiler_Type) @@ -798,7 +798,7 @@ Profiler(custom_timer=None, time_unit=None, subcalls=True, builtins=True)\n\ is, in seconds).\n\ "); -statichere PyTypeObject PyProfiler_Type = { +static PyTypeObject PyProfiler_Type = { PyObject_HEAD_INIT(NULL) 0, /* ob_size */ "_lsprof.Profiler", /* tp_name */ diff --git a/Modules/_tkinter.c b/Modules/_tkinter.c index b85e158..e8efaa7 100644 --- a/Modules/_tkinter.c +++ b/Modules/_tkinter.c @@ -720,7 +720,7 @@ typedef struct { PyObject *string; /* This cannot cause cycles. */ } PyTclObject; -staticforward PyTypeObject PyTclObject_Type; +static PyTypeObject PyTclObject_Type; #define PyTclObject_Check(v) ((v)->ob_type == &PyTclObject_Type) static PyObject * @@ -858,7 +858,7 @@ static PyMethodDef PyTclObject_methods[] = { {0} }; -statichere PyTypeObject PyTclObject_Type = { +static PyTypeObject PyTclObject_Type = { PyObject_HEAD_INIT(NULL) 0, /*ob_size*/ "_tkinter.Tcl_Obj", /*tp_name*/ diff --git a/Modules/datetimemodule.c b/Modules/datetimemodule.c index 199ee65..b011729 100644 --- a/Modules/datetimemodule.c +++ b/Modules/datetimemodule.c @@ -2931,7 +2931,7 @@ static PyMethodDef tzinfo_methods[] = { static char tzinfo_doc[] = PyDoc_STR("Abstract base class for time zone info objects."); -statichere PyTypeObject PyDateTime_TZInfoType = { +static PyTypeObject PyDateTime_TZInfoType = { PyObject_HEAD_INIT(NULL) 0, /* ob_size */ "datetime.tzinfo", /* tp_name */ @@ -3451,7 +3451,7 @@ static PyNumberMethods time_as_number = { (inquiry)time_nonzero, /* nb_nonzero */ }; -statichere PyTypeObject PyDateTime_TimeType = { +static PyTypeObject PyDateTime_TimeType = { PyObject_HEAD_INIT(NULL) 0, /* ob_size */ "datetime.time", /* tp_name */ @@ -4536,7 +4536,7 @@ static PyNumberMethods datetime_as_number = { 0, /* nb_nonzero */ }; -statichere PyTypeObject PyDateTime_DateTimeType = { +static PyTypeObject PyDateTime_DateTimeType = { PyObject_HEAD_INIT(NULL) 0, /* ob_size */ "datetime.datetime", /* tp_name */ |