Mercurial > cpython-lru_cache-weakref
changeset 47678:a35da94e05fc legacy-trunk
Make more symbols static.
| author | Martin v. Löwis <martin@v.loewis.de> |
|---|---|
| date | Fri, 13 Jun 2008 07:47:47 +0000 |
| parents | 38d0467f5ec7 |
| children | 6434dd704d60 |
| files | Modules/_collectionsmodule.c Modules/_localemodule.c Modules/_tkinter.c Modules/arraymodule.c Modules/unicodedata_db.h Tools/unicode/makeunicodedata.py |
| diffstat | 6 files changed, 13 insertions(+), 13 deletions(-) [+] |
line wrap: on
line diff
--- a/Modules/_collectionsmodule.c Fri Jun 13 07:08:48 2008 +0000 +++ b/Modules/_collectionsmodule.c Fri Jun 13 07:47:47 2008 +0000 @@ -85,7 +85,7 @@ return b; } -void +static void freeblock(block *b) { if (numfreeblocks < MAXFREEBLOCKS) { @@ -957,7 +957,7 @@ int counter; /* number of items remaining for iteration */ } dequeiterobject; -PyTypeObject dequeiter_type; +static PyTypeObject dequeiter_type; static PyObject * deque_iter(dequeobject *deque) @@ -1024,7 +1024,7 @@ {NULL, NULL} /* sentinel */ }; -PyTypeObject dequeiter_type = { +static PyTypeObject dequeiter_type = { PyVarObject_HEAD_INIT(NULL, 0) "deque_iterator", /* tp_name */ sizeof(dequeiterobject), /* tp_basicsize */ @@ -1059,7 +1059,7 @@ /*********************** Deque Reverse Iterator **************************/ -PyTypeObject dequereviter_type; +static PyTypeObject dequereviter_type; static PyObject * deque_reviter(dequeobject *deque) @@ -1106,7 +1106,7 @@ return item; } -PyTypeObject dequereviter_type = { +static PyTypeObject dequereviter_type = { PyVarObject_HEAD_INIT(NULL, 0) "deque_reverse_iterator", /* tp_name */ sizeof(dequeiterobject), /* tp_basicsize */
--- a/Modules/_localemodule.c Fri Jun 13 07:08:48 2008 +0000 +++ b/Modules/_localemodule.c Fri Jun 13 07:47:47 2008 +0000 @@ -444,7 +444,7 @@ #ifdef HAVE_LANGINFO_H #define LANGINFO(X) {#X, X} -struct langinfo_constant{ +static struct langinfo_constant{ char* name; int value; } langinfo_constants[] =
--- a/Modules/_tkinter.c Fri Jun 13 07:08:48 2008 +0000 +++ b/Modules/_tkinter.c Fri Jun 13 07:47:47 2008 +0000 @@ -490,7 +490,7 @@ 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)) { @@ -1523,7 +1523,7 @@ return 0; } -void +static void var_perform(VarEvent *ev) { *(ev->res) = ev->func(ev->self, ev->args, ev->flags);
--- a/Modules/arraymodule.c Fri Jun 13 07:08:48 2008 +0000 +++ b/Modules/arraymodule.c Fri Jun 13 07:47:47 2008 +0000 @@ -1546,7 +1546,7 @@ {NULL} }; -PyMethodDef array_methods[] = { +static PyMethodDef array_methods[] = { {"append", (PyCFunction)array_append, METH_O, append_doc}, {"buffer_info", (PyCFunction)array_buffer_info, METH_NOARGS,
--- a/Modules/unicodedata_db.h Fri Jun 13 07:08:48 2008 +0000 +++ b/Modules/unicodedata_db.h Fri Jun 13 07:47:47 2008 +0000 @@ -228,7 +228,7 @@ #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 @@ {0,0,0} }; -struct reindex nfc_last[] = { +static struct reindex nfc_last[] = { { 768, 4, 0}, { 774, 6, 5}, { 783, 0, 12},
--- a/Tools/unicode/makeunicodedata.py Fri Jun 13 07:08:48 2008 +0000 +++ b/Tools/unicode/makeunicodedata.py Fri Jun 13 07:47:47 2008 +0000 @@ -229,12 +229,12 @@ print >>fp, "#define TOTAL_FIRST",total_first print >>fp, "#define TOTAL_LAST",total_last print >>fp, "struct reindex{int start;short count,index;};" - print >>fp, "struct reindex nfc_first[] = {" + print >>fp, "static struct reindex nfc_first[] = {" for start,end in comp_first_ranges: print >>fp," { %d, %d, %d}," % (start,end-start,comp_first[start]) print >>fp," {0,0,0}" print >>fp,"};\n" - print >>fp, "struct reindex nfc_last[] = {" + print >>fp, "static struct reindex nfc_last[] = {" for start,end in comp_last_ranges: print >>fp," { %d, %d, %d}," % (start,end-start,comp_last[start]) print >>fp," {0,0,0}"
