mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
make some freezing related stuff const
This commit is contained in:
parent
327992330e
commit
7701e6ef93
4 changed files with 9 additions and 9 deletions
|
@ -113,15 +113,15 @@ PyAPI_FUNC(int) PyImport_AppendInittab(
|
|||
|
||||
#ifndef Py_LIMITED_API
|
||||
struct _frozen {
|
||||
char *name; /* ASCII encoded string */
|
||||
unsigned char *code;
|
||||
const char *name; /* ASCII encoded string */
|
||||
const unsigned char *code;
|
||||
int size;
|
||||
};
|
||||
|
||||
/* Embedding apps may change this pointer to point to their favorite
|
||||
collection of frozen modules: */
|
||||
|
||||
PyAPI_DATA(struct _frozen *) PyImport_FrozenModules;
|
||||
PyAPI_DATA(const struct _frozen *) PyImport_FrozenModules;
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue