|
| 1 | + |
1 | 2 | /*
|
2 | 3 | pygame-ce - Python Game Library
|
3 | 4 | Copyright (C) 2000-2001 Pete Shinners
|
@@ -269,7 +270,7 @@ pg_get_sdl_version(PyObject *self, PyObject *args, PyObject *kwargs)
|
269 | 270 | SDL_VERSION(&version);
|
270 | 271 | #endif
|
271 | 272 |
|
272 |
| - char *keywords[] = {"linked", NULL}; |
| 273 | + static char *keywords[] = {"linked", NULL}; |
273 | 274 |
|
274 | 275 | if (!PyArg_ParseTupleAndKeywords(args, kwargs, "|p", keywords, &linked)) {
|
275 | 276 | return NULL; /* Exception already set. */
|
@@ -1196,15 +1197,15 @@ _pg_buffer_is_byteswapped(Py_buffer *view)
|
1196 | 1197 | switch (view->format[0]) {
|
1197 | 1198 | case '<':
|
1198 | 1199 | #if SDL_BYTEORDER == SDL_LIL_ENDIAN
|
1199 |
| - /* Use macros to make analyzer happy */ |
| 1200 | + /* Use macros to make static analyzer happy */ |
1200 | 1201 | return 0;
|
1201 | 1202 | #else
|
1202 | 1203 | return 1;
|
1203 | 1204 | #endif
|
1204 | 1205 | case '>':
|
1205 | 1206 | case '!':
|
1206 | 1207 | #if SDL_BYTEORDER == SDL_BIG_ENDIAN
|
1207 |
| - /* Use macros to make analyzer happy */ |
| 1208 | + /* Use macros to make static analyzer happy */ |
1208 | 1209 | return 0;
|
1209 | 1210 | #else
|
1210 | 1211 | return 1;
|
@@ -2011,7 +2012,7 @@ pygame_parachute(int sig)
|
2011 | 2012 | #endif
|
2012 | 2013 | }
|
2013 | 2014 |
|
2014 |
| -int fatal_signals[] = { |
| 2015 | +static int fatal_signals[] = { |
2015 | 2016 | SIGSEGV,
|
2016 | 2017 | #ifdef SIGBUS
|
2017 | 2018 | SIGBUS,
|
@@ -2083,7 +2084,7 @@ load_submodule(const char *parent, PyObject *mod, const char *alias);
|
2083 | 2084 |
|
2084 | 2085 | /* bind functions to python */
|
2085 | 2086 |
|
2086 |
| -PyMethodDef _base_methods[] = { |
| 2087 | +static PyMethodDef _base_methods[] = { |
2087 | 2088 | {"init", (PyCFunction)pg_init, METH_NOARGS, DOC_INIT},
|
2088 | 2089 | {"quit", (PyCFunction)pg_quit, METH_NOARGS, DOC_QUIT},
|
2089 | 2090 | {"get_init", (PyCFunction)pg_base_get_init, METH_NOARGS, DOC_GETINIT},
|
|
0 commit comments