"strerror(code) -> string\n\
Translate an error code to a message string.";
-PyObject *
+static PyObject *
posix_strerror(PyObject *self, PyObject *args)
{
int code;
/* 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)
/* 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)
/* 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)
{
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)))
}
-PyMethodDef SystemExit_methods[] = {
+static PyMethodDef SystemExit_methods[] = {
{ "__init__", SystemExit__init__, METH_VARARGS},
{NULL, NULL}
};
}
-PyMethodDef SyntaxError_methods[] = {
+static PyMethodDef SyntaxError_methods[] = {
{"__init__", SyntaxError__init__, METH_VARARGS},
{"__str__", SyntaxError__str__, METH_VARARGS},
{NULL, NULL}