summaryrefslogtreecommitdiff
path: root/Parser/tokenizer.c
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2002-09-03 15:39:58 +0000
committerTim Peters <tim.peters@gmail.com>2002-09-03 15:39:58 +0000
commit06ad983e718fc630c80122fe3ab99edd42b5e77c (patch)
tree9d2d931956fd6514082355f9045c218b4a1d41a2 /Parser/tokenizer.c
parent862b378e21afb4e05e0e5e7ccf23451050109864 (diff)
downloadcpython-06ad983e718fc630c80122fe3ab99edd42b5e77c.tar.gz
Removed reliance on gcc/C99 extension.
Diffstat (limited to 'Parser/tokenizer.c')
-rw-r--r--Parser/tokenizer.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/Parser/tokenizer.c b/Parser/tokenizer.c
index c58aadbed7..749a59b68c 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) {