summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2013-03-13 19:06:39 (GMT)
committerBenjamin Peterson <benjamin@python.org>2013-03-13 19:06:39 (GMT)
commit7701e6ef93be47b6d9646321ff95530653097d68 (patch)
treeff3b21ece3419a59035ce91526f022a4c45b915c /Python
parent327992330e13cd6663faa8400f9ff46daab828b0 (diff)
downloadcpython-7701e6ef93be47b6d9646321ff95530653097d68.zip
cpython-7701e6ef93be47b6d9646321ff95530653097d68.tar.gz
cpython-7701e6ef93be47b6d9646321ff95530653097d68.tar.bz2
make some freezing related stuff const
Diffstat (limited to 'Python')
-rw-r--r--Python/frozen.c4
-rw-r--r--Python/importlib.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/Python/frozen.c b/Python/frozen.c
index 25fdc17..9bc662b 100644
--- a/Python/frozen.c
+++ b/Python/frozen.c
@@ -28,7 +28,7 @@ static unsigned char M___hello__[] = {
#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 @@ static struct _frozen _PyImport_FrozenModules[] = {
/* 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;
diff --git a/Python/importlib.h b/Python/importlib.h
index 13db56d..b4aab83 100644
--- a/Python/importlib.h
+++ b/Python/importlib.h
@@ -1,5 +1,5 @@
/* Auto-generated by Modules/_freeze_importlib.c */
-unsigned char _Py_M__importlib[] = {
+const unsigned char _Py_M__importlib[] = {
99,0,0,0,0,0,0,0,0,0,0,0,0,6,0,0,
0,64,0,0,0,115,229,3,0,0,100,0,0,90,0,0,
100,130,0,90,1,0,100,4,0,100,5,0,132,0,0,90,