Skip to content

Commit 59683e8

Browse files
committed
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. ........
1 parent 1c95155 commit 59683e8

6 files changed

Lines changed: 13 additions & 13 deletions

File tree

Modules/_collectionsmodule.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ newblock(block *leftlink, block *rightlink, int len) {
8585
return b;
8686
}
8787

88-
void
88+
static void
8989
freeblock(block *b)
9090
{
9191
if (numfreeblocks < MAXFREEBLOCKS) {
@@ -898,7 +898,7 @@ typedef struct {
898898
int counter; /* number of items remaining for iteration */
899899
} dequeiterobject;
900900

901-
PyTypeObject dequeiter_type;
901+
static PyTypeObject dequeiter_type;
902902

903903
static PyObject *
904904
deque_iter(dequeobject *deque)
@@ -965,7 +965,7 @@ static PyMethodDef dequeiter_methods[] = {
965965
{NULL, NULL} /* sentinel */
966966
};
967967

968-
PyTypeObject dequeiter_type = {
968+
static PyTypeObject dequeiter_type = {
969969
PyVarObject_HEAD_INIT(NULL, 0)
970970
"deque_iterator", /* tp_name */
971971
sizeof(dequeiterobject), /* tp_basicsize */
@@ -1000,7 +1000,7 @@ PyTypeObject dequeiter_type = {
10001000

10011001
/*********************** Deque Reverse Iterator **************************/
10021002

1003-
PyTypeObject dequereviter_type;
1003+
static PyTypeObject dequereviter_type;
10041004

10051005
static PyObject *
10061006
deque_reviter(dequeobject *deque)
@@ -1047,7 +1047,7 @@ dequereviter_next(dequeiterobject *it)
10471047
return item;
10481048
}
10491049

1050-
PyTypeObject dequereviter_type = {
1050+
static PyTypeObject dequereviter_type = {
10511051
PyVarObject_HEAD_INIT(NULL, 0)
10521052
"deque_reverse_iterator", /* tp_name */
10531053
sizeof(dequeiterobject), /* tp_basicsize */

Modules/_localemodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ PyLocale_getdefaultlocale(PyObject* self)
387387

388388
#ifdef HAVE_LANGINFO_H
389389
#define LANGINFO(X) {#X, X}
390-
struct langinfo_constant{
390+
static struct langinfo_constant{
391391
char* name;
392392
int value;
393393
} langinfo_constants[] =

Modules/_tkinter.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,7 @@ Split(char *list)
488488
lists. SplitObj walks through a nested tuple, finding string objects that
489489
need to be split. */
490490

491-
PyObject *
491+
static PyObject *
492492
SplitObj(PyObject *arg)
493493
{
494494
if (PyTuple_Check(arg)) {
@@ -1435,7 +1435,7 @@ varname_converter(PyObject *in, void *_out)
14351435
return 0;
14361436
}
14371437

1438-
void
1438+
static void
14391439
var_perform(VarEvent *ev)
14401440
{
14411441
*(ev->res) = ev->func(ev->self, ev->args, ev->flags);

Modules/arraymodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1493,7 +1493,7 @@ static PyGetSetDef array_getsets [] = {
14931493
{NULL}
14941494
};
14951495

1496-
PyMethodDef array_methods[] = {
1496+
static PyMethodDef array_methods[] = {
14971497
{"append", (PyCFunction)array_append, METH_O,
14981498
append_doc},
14991499
{"buffer_info", (PyCFunction)array_buffer_info, METH_NOARGS,

Modules/unicodedata_db.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ const _PyUnicode_DatabaseRecord _PyUnicode_Database_Records[] = {
228228
#define TOTAL_FIRST 356
229229
#define TOTAL_LAST 53
230230
struct reindex{int start;short count,index;};
231-
struct reindex nfc_first[] = {
231+
static struct reindex nfc_first[] = {
232232
{ 60, 2, 0},
233233
{ 65, 15, 3},
234234
{ 82, 8, 19},
@@ -425,7 +425,7 @@ struct reindex nfc_first[] = {
425425
{0,0,0}
426426
};
427427

428-
struct reindex nfc_last[] = {
428+
static struct reindex nfc_last[] = {
429429
{ 768, 4, 0},
430430
{ 774, 6, 5},
431431
{ 783, 0, 12},

Tools/unicode/makeunicodedata.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -234,12 +234,12 @@ def makeunicodedata(unicode, trace):
234234
print("#define TOTAL_FIRST",total_first, file=fp)
235235
print("#define TOTAL_LAST",total_last, file=fp)
236236
print("struct reindex{int start;short count,index;};", file=fp)
237-
print("struct reindex nfc_first[] = {", file=fp)
237+
print("static struct reindex nfc_first[] = {", file=fp)
238238
for start,end in comp_first_ranges:
239239
print(" { %d, %d, %d}," % (start,end-start,comp_first[start]), file=fp)
240240
print(" {0,0,0}", file=fp)
241241
print("};\n", file=fp)
242-
print("struct reindex nfc_last[] = {", file=fp)
242+
print("static struct reindex nfc_last[] = {", file=fp)
243243
for start,end in comp_last_ranges:
244244
print(" { %d, %d, %d}," % (start,end-start,comp_last[start]), file=fp)
245245
print(" {0,0,0}", file=fp)

0 commit comments

Comments
 (0)