diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2008-06-13 07:50:45 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2008-06-13 07:50:45 (GMT) |
commit | 59683e852906736276df6b8146064666098071b5 (patch) | |
tree | 693dacf60dae3bf6cb3bcbca5465b3f286e43b92 /Modules | |
parent | 1c95155bd153e4b9434a42ae434f6f6221c042a2 (diff) | |
download | cpython-59683e852906736276df6b8146064666098071b5.zip cpython-59683e852906736276df6b8146064666098071b5.tar.gz cpython-59683e852906736276df6b8146064666098071b5.tar.bz2 |
Merged revisions 64226 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r64226 | martin.v.loewis | 2008-06-13 09:47:47 +0200 (Fr, 13 Jun 2008) | 2 lines
Make more symbols static.
........
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/_collectionsmodule.c | 10 | ||||
-rw-r--r-- | Modules/_localemodule.c | 2 | ||||
-rw-r--r-- | Modules/_tkinter.c | 4 | ||||
-rw-r--r-- | Modules/arraymodule.c | 2 | ||||
-rw-r--r-- | Modules/unicodedata_db.h | 4 |
5 files changed, 11 insertions, 11 deletions
diff --git a/Modules/_collectionsmodule.c b/Modules/_collectionsmodule.c index 02ffb56..db7017d 100644 --- a/Modules/_collectionsmodule.c +++ b/Modules/_collectionsmodule.c @@ -85,7 +85,7 @@ newblock(block *leftlink, block *rightlink, int len) { return b; } -void +static void freeblock(block *b) { if (numfreeblocks < MAXFREEBLOCKS) { @@ -898,7 +898,7 @@ typedef struct { int counter; /* number of items remaining for iteration */ } dequeiterobject; -PyTypeObject dequeiter_type; +static PyTypeObject dequeiter_type; static PyObject * deque_iter(dequeobject *deque) @@ -965,7 +965,7 @@ static PyMethodDef dequeiter_methods[] = { {NULL, NULL} /* sentinel */ }; -PyTypeObject dequeiter_type = { +static PyTypeObject dequeiter_type = { PyVarObject_HEAD_INIT(NULL, 0) "deque_iterator", /* tp_name */ sizeof(dequeiterobject), /* tp_basicsize */ @@ -1000,7 +1000,7 @@ PyTypeObject dequeiter_type = { /*********************** Deque Reverse Iterator **************************/ -PyTypeObject dequereviter_type; +static PyTypeObject dequereviter_type; static PyObject * deque_reviter(dequeobject *deque) @@ -1047,7 +1047,7 @@ dequereviter_next(dequeiterobject *it) return item; } -PyTypeObject dequereviter_type = { +static PyTypeObject dequereviter_type = { PyVarObject_HEAD_INIT(NULL, 0) "deque_reverse_iterator", /* tp_name */ sizeof(dequeiterobject), /* tp_basicsize */ diff --git a/Modules/_localemodule.c b/Modules/_localemodule.c index 50c72c9..37b7ec1 100644 --- a/Modules/_localemodule.c +++ b/Modules/_localemodule.c @@ -387,7 +387,7 @@ PyLocale_getdefaultlocale(PyObject* self) #ifdef HAVE_LANGINFO_H #define LANGINFO(X) {#X, X} -struct langinfo_constant{ +static struct langinfo_constant{ char* name; int value; } langinfo_constants[] = diff --git a/Modules/_tkinter.c b/Modules/_tkinter.c index 40db86e..cb0ab42 100644 --- a/Modules/_tkinter.c +++ b/Modules/_tkinter.c @@ -488,7 +488,7 @@ Split(char *list) lists. SplitObj walks through a nested tuple, finding string objects that need to be split. */ -PyObject * +static PyObject * SplitObj(PyObject *arg) { if (PyTuple_Check(arg)) { @@ -1435,7 +1435,7 @@ varname_converter(PyObject *in, void *_out) return 0; } -void +static void var_perform(VarEvent *ev) { *(ev->res) = ev->func(ev->self, ev->args, ev->flags); diff --git a/Modules/arraymodule.c b/Modules/arraymodule.c index 5fa525f..da2e9c2 100644 --- a/Modules/arraymodule.c +++ b/Modules/arraymodule.c @@ -1493,7 +1493,7 @@ static PyGetSetDef array_getsets [] = { {NULL} }; -PyMethodDef array_methods[] = { +static PyMethodDef array_methods[] = { {"append", (PyCFunction)array_append, METH_O, append_doc}, {"buffer_info", (PyCFunction)array_buffer_info, METH_NOARGS, diff --git a/Modules/unicodedata_db.h b/Modules/unicodedata_db.h index d68466a..f56e446 100644 --- a/Modules/unicodedata_db.h +++ b/Modules/unicodedata_db.h @@ -228,7 +228,7 @@ const _PyUnicode_DatabaseRecord _PyUnicode_Database_Records[] = { #define TOTAL_FIRST 356 #define TOTAL_LAST 53 struct reindex{int start;short count,index;}; -struct reindex nfc_first[] = { +static struct reindex nfc_first[] = { { 60, 2, 0}, { 65, 15, 3}, { 82, 8, 19}, @@ -425,7 +425,7 @@ struct reindex nfc_first[] = { {0,0,0} }; -struct reindex nfc_last[] = { +static struct reindex nfc_last[] = { { 768, 4, 0}, { 774, 6, 5}, { 783, 0, 12}, |