]> granicus.if.org Git - python/commitdiff
Make some private symbols static.
authorGuido van Rossum <guido@python.org>
Sat, 14 Apr 2001 17:55:09 +0000 (17:55 +0000)
committerGuido van Rossum <guido@python.org>
Sat, 14 Apr 2001 17:55:09 +0000 (17:55 +0000)
Modules/posixmodule.c
Objects/fileobject.c
Objects/frameobject.c
Python/compile.c
Python/exceptions.c

index 5575b9feb96fa78bb277ba56e035e00b88a9cb34..cb8a1d1cd903c71b9ccf263b41ae4e14fd59e986 100644 (file)
@@ -3836,7 +3836,7 @@ static char posix_strerror__doc__[] =
 "strerror(code) -> string\n\
 Translate an error code to a message string.";
 
-PyObject *
+static PyObject *
 posix_strerror(PyObject *self, PyObject *args)
 {
        int code;
index 27e21de154ba646e51d8ffb5043acec8e5d64626..9af03b7a8e95423d6b453c666576acd1303ad8aa 100644 (file)
@@ -222,7 +222,7 @@ typedef off_t Py_off_t;
 
 /* a portable fseek() function
    return 0 on success, non-zero on failure (with errno set) */
-int
+static int
 _portable_fseek(FILE *fp, Py_off_t offset, int whence)
 {
 #if defined(HAVE_FSEEKO)
@@ -257,7 +257,7 @@ _portable_fseek(FILE *fp, Py_off_t offset, int whence)
 /* a portable ftell() function
    Return -1 on failure with errno set appropriately, current file
    position on success */
-Py_off_t
+static Py_off_t
 _portable_ftell(FILE* fp)
 {
 #if SIZEOF_FPOS_T >= 8 && defined(HAVE_LARGEFILE_SUPPORT)
index 74e701223218d5c2dbf343b835e22dfe2c2339ce..64d166cc25dddb751f96491f3b8a72b32feca659 100644 (file)
@@ -251,7 +251,7 @@ PyFrame_BlockPop(PyFrameObject *f)
 
 /* Convert between "fast" version of locals and dictionary version */
 
-void
+static void
 map_to_dict(PyObject *map, int nmap, PyObject *dict, PyObject **values,
            int deref)
 {
index 1fb85e752ea0113be8bc651cc29a4f059f00ee36..0939f059c40ff1bb2e5a377a3b3d91cad12e8580 100644 (file)
@@ -374,7 +374,8 @@ struct compiling {
         PyFutureFeatures *c_future; /* pointer to module's __future__ */
 };
 
-int is_free(int v)
+static int
+is_free(int v)
 {
        if ((v & (USE | DEF_FREE))
            && !(v & (DEF_LOCAL | DEF_PARAM | DEF_GLOBAL)))
index f262ef2a97d3f6d59ba8e8fd6aae4507f831736d..ad8021e0db1a0c26d042cd00943d34aae18c1e82 100644 (file)
@@ -420,7 +420,7 @@ SystemExit__init__(PyObject *self, PyObject *args)
 }
 
 
-PyMethodDef SystemExit_methods[] = {
+static PyMethodDef SystemExit_methods[] = {
     { "__init__", SystemExit__init__, METH_VARARGS},
     {NULL, NULL}
 };
@@ -836,7 +836,7 @@ SyntaxError__str__(PyObject *self, PyObject *args)
 }
 
 
-PyMethodDef SyntaxError_methods[] = {
+static PyMethodDef SyntaxError_methods[] = {
     {"__init__", SyntaxError__init__, METH_VARARGS},
     {"__str__",  SyntaxError__str__, METH_VARARGS},
     {NULL, NULL}