diff options
author | Tim Peters <tim.peters@gmail.com> | 2002-09-03 15:39:58 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2002-09-03 15:39:58 (GMT) |
commit | 17db21ffd0659ba3eb864b161cc2c4f63849e62e (patch) | |
tree | 9c5dca0763327e529f1cd78c4cbb32bd478c5314 /Parser | |
parent | 8709a420c46aac08c2e692ab8fe181c1deb61e11 (diff) | |
download | cpython-17db21ffd0659ba3eb864b161cc2c4f63849e62e.zip cpython-17db21ffd0659ba3eb864b161cc2c4f63849e62e.tar.gz cpython-17db21ffd0659ba3eb864b161cc2c4f63849e62e.tar.bz2 |
Removed reliance on gcc/C99 extension.
Diffstat (limited to 'Parser')
-rw-r--r-- | Parser/tokenizer.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Parser/tokenizer.c b/Parser/tokenizer.c index c58aadb..749a59b 100644 --- a/Parser/tokenizer.c +++ b/Parser/tokenizer.c @@ -255,11 +255,13 @@ static int check_coding_spec(const char* line, int size, struct tok_state *tok, int set_readline(struct tok_state *, const char *)) { + char * cs; int r = 1; + if (tok->cont_line) /* It's a continuation line, so it can't be a coding spec. */ return 1; - char* cs = get_coding_spec(line, size); + cs = get_coding_spec(line, size); if (cs != NULL) { tok->read_coding_spec = 1; if (tok->encoding == NULL) { |