diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2002-12-11 14:04:59 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2002-12-11 14:04:59 (GMT) |
commit | 95292d6caa3af3196c5b9f5f95dae209815c09e5 (patch) | |
tree | 193e6e6a45f1e1319e4bb4ba07a3fee838a2ca5d /Python/future.c | |
parent | 0e88c9f65d163c0c8551d0f079a19b71a8a9e3ca (diff) | |
download | cpython-95292d6caa3af3196c5b9f5f95dae209815c09e5.zip cpython-95292d6caa3af3196c5b9f5f95dae209815c09e5.tar.gz cpython-95292d6caa3af3196c5b9f5f95dae209815c09e5.tar.bz2 |
Constify filenames and scripts. Fixes #651362.
Diffstat (limited to 'Python/future.c')
-rw-r--r-- | Python/future.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Python/future.c b/Python/future.c index beec9fc..377ad9a 100644 --- a/Python/future.c +++ b/Python/future.c @@ -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; |