summaryrefslogtreecommitdiff
path: root/Include/code.h
diff options
context:
space:
mode:
authorVinay Sajip <vinay_sajip@yahoo.co.uk>2017-01-27 13:05:09 +0000
committerVinay Sajip <vinay_sajip@yahoo.co.uk>2017-01-27 13:05:09 +0000
commitd45d8652710e51576367db00b226b8465e6c5ce6 (patch)
treeeeb12605abc98507852e82848382c2e739991708 /Include/code.h
parent6ccbbb38caa79f9eb9b93b5767f3787fc80cbac1 (diff)
parentbbbab3c96168cea9f872f90da0a385b50f62ca70 (diff)
downloadcpython-d45d8652710e51576367db00b226b8465e6c5ce6.tar.gz
Closes #28784: Merged update from 3.6.
Diffstat (limited to 'Include/code.h')
-rw-r--r--Include/code.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/Include/code.h b/Include/code.h
index c5fce3c963..385258f93c 100644
--- a/Include/code.h
+++ b/Include/code.h
@@ -37,7 +37,7 @@ typedef struct {
for tracebacks and debuggers; otherwise, constant de-duplication
would collapse identical functions/lambdas defined on different lines.
*/
- unsigned char *co_cell2arg; /* Maps cell vars which are arguments. */
+ Py_ssize_t *co_cell2arg; /* Maps cell vars which are arguments. */
PyObject *co_filename; /* unicode (where it was loaded from) */
PyObject *co_name; /* unicode (name, for reference) */
PyObject *co_lnotab; /* string (encoding addr<->lineno mapping) See
@@ -84,9 +84,8 @@ typedef struct {
#define CO_FUTURE_GENERATOR_STOP 0x80000
/* This value is found in the co_cell2arg array when the associated cell
- variable does not correspond to an argument. The maximum number of
- arguments is 255 (indexed up to 254), so 255 work as a special flag.*/
-#define CO_CELL_NOT_AN_ARG 255
+ variable does not correspond to an argument. */
+#define CO_CELL_NOT_AN_ARG (-1)
/* This should be defined if a future statement modifies the syntax.
For example, when a keyword is added.