mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Constify filenames and scripts. Fixes #651362.
This commit is contained in:
parent
0e88c9f65d
commit
95292d6caa
12 changed files with 123 additions and 118 deletions
|
@ -14,7 +14,7 @@
|
|||
#define FUTURE_POSSIBLE(FF) ((FF)->ff_last_lineno == -1)
|
||||
|
||||
static int
|
||||
future_check_features(PyFutureFeatures *ff, node *n, char *filename)
|
||||
future_check_features(PyFutureFeatures *ff, node *n, const char *filename)
|
||||
{
|
||||
int i;
|
||||
char *feature;
|
||||
|
@ -54,7 +54,7 @@ future_check_features(PyFutureFeatures *ff, node *n, char *filename)
|
|||
}
|
||||
|
||||
static void
|
||||
future_error(node *n, char *filename)
|
||||
future_error(node *n, const char *filename)
|
||||
{
|
||||
PyErr_SetString(PyExc_SyntaxError,
|
||||
"from __future__ imports must occur at the "
|
||||
|
@ -89,7 +89,7 @@ dotted_name: NAME ('.' NAME)*
|
|||
*/
|
||||
|
||||
static int
|
||||
future_parse(PyFutureFeatures *ff, node *n, char *filename)
|
||||
future_parse(PyFutureFeatures *ff, node *n, const char *filename)
|
||||
{
|
||||
int i, r;
|
||||
loop:
|
||||
|
@ -240,7 +240,7 @@ future_parse(PyFutureFeatures *ff, node *n, char *filename)
|
|||
}
|
||||
|
||||
PyFutureFeatures *
|
||||
PyNode_Future(node *n, char *filename)
|
||||
PyNode_Future(node *n, const char *filename)
|
||||
{
|
||||
PyFutureFeatures *ff;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue