summaryrefslogtreecommitdiff
path: root/Parser/tokenizer.h
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2002-08-04 20:10:29 +0000
committerMartin v. Löwis <martin@v.loewis.de>2002-08-04 20:10:29 +0000
commita443206226aef629d95c95241f97e3a06f0f609f (patch)
treed325073920fbe3d56a51b1f6d26454e9b414830d /Parser/tokenizer.h
parente0a6c994fb8c410d9430ee4f4987ba550dad833c (diff)
downloadcpython-a443206226aef629d95c95241f97e3a06f0f609f.tar.gz
Make pgen compile with pydebug. Duplicate normalized names, as it may
be longer than the old string.
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 9782666fd8..f3bac74acd 100644
--- a/Parser/tokenizer.h
+++ b/Parser/tokenizer.h
@@ -45,8 +45,10 @@ struct tok_state {
int read_coding_spec; /* whether 'coding:...' has been read */
int issued_encoding_warning; /* whether non-ASCII warning was issued */
char *encoding;
+#ifndef PGEN
PyObject *decoding_readline; /* codecs.open(...).readline */
PyObject *decoding_buffer;
+#endif
const char* enc;
const char* str;
};