summaryrefslogtreecommitdiffstats
path: root/Parser/tokenizer.h
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1993-05-12 11:35:44 (GMT)
committerGuido van Rossum <guido@python.org>1993-05-12 11:35:44 (GMT)
commita849b834f1e86bec20027654c91bb4cc74de5c8d (patch)
tree9889abb429019cd73a52e225b1f9ddbc4d4b87ee /Parser/tokenizer.h
parentb2c6556fb0d309a04e37c2c9937fed16284cd00f (diff)
downloadcpython-a849b834f1e86bec20027654c91bb4cc74de5c8d.zip
cpython-a849b834f1e86bec20027654c91bb4cc74de5c8d.tar.gz
cpython-a849b834f1e86bec20027654c91bb4cc74de5c8d.tar.bz2
* selectmodule.c: fix (another!) two memory leaks -- this time in list2set
* tokenizer.[ch]: allow continuation without \ inside () [] {}.
Diffstat (limited to 'Parser/tokenizer.h')
-rw-r--r--Parser/tokenizer.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Parser/tokenizer.h b/Parser/tokenizer.h
index 9abc598..bdef859 100644
--- a/Parser/tokenizer.h
+++ b/Parser/tokenizer.h
@@ -46,6 +46,8 @@ struct tok_state {
int pendin; /* Pending indents (if > 0) or dedents (if < 0) */
char *prompt, *nextprompt; /* For interactive prompting */
int lineno; /* Current line number */
+ int level; /* () [] {} Parentheses nesting level */
+ /* Used to allow free continuations inside them */
};
extern struct tok_state *tok_setups PROTO((char *));