mirror of
https://github.com/python/cpython.git
synced 2025-08-26 03:34:43 +00:00
Issue #25923: Added more const qualifiers to signatures of static and private functions.
This commit is contained in:
parent
2d06e84455
commit
ef1585eb9a
60 changed files with 210 additions and 191 deletions
|
@ -160,7 +160,7 @@ PyTypeObject PySTEntry_Type = {
|
|||
};
|
||||
|
||||
static int symtable_analyze(struct symtable *st);
|
||||
static int symtable_warn(struct symtable *st, char *msg, int lineno);
|
||||
static int symtable_warn(struct symtable *st, const char *msg, int lineno);
|
||||
static int symtable_enter_block(struct symtable *st, identifier name,
|
||||
_Py_block_ty block, void *ast, int lineno,
|
||||
int col_offset);
|
||||
|
@ -903,7 +903,7 @@ symtable_analyze(struct symtable *st)
|
|||
|
||||
|
||||
static int
|
||||
symtable_warn(struct symtable *st, char *msg, int lineno)
|
||||
symtable_warn(struct symtable *st, const char *msg, int lineno)
|
||||
{
|
||||
PyObject *message = PyUnicode_FromString(msg);
|
||||
if (message == NULL)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue