Mercurial > cpython-lru_cache-weakref
diff Python/frozen.c @ 82649:a06fc2c2342a
make some freezing related stuff const
| author | Benjamin Peterson <benjamin@python.org> |
|---|---|
| date | Wed, 13 Mar 2013 14:06:39 -0500 |
| parents | 2dd046be2c88 |
| children |
line wrap: on
line diff
--- a/Python/frozen.c Wed Mar 13 11:09:08 2013 -0700 +++ b/Python/frozen.c Wed Mar 13 14:06:39 2013 -0500 @@ -28,7 +28,7 @@ #define SIZE (int)sizeof(M___hello__) -static struct _frozen _PyImport_FrozenModules[] = { +static const struct _frozen _PyImport_FrozenModules[] = { /* importlib */ {"_frozen_importlib", _Py_M__importlib, (int)sizeof(_Py_M__importlib)}, /* Test module */ @@ -42,4 +42,4 @@ /* Embedding apps may change this pointer to point to their favorite collection of frozen modules: */ -struct _frozen *PyImport_FrozenModules = _PyImport_FrozenModules; +const struct _frozen *PyImport_FrozenModules = _PyImport_FrozenModules;
