]> granicus.if.org Git - python/commitdiff
Removed reliance on gcc/C99 extension.
authorTim Peters <tim.peters@gmail.com>
Tue, 3 Sep 2002 15:39:58 +0000 (15:39 +0000)
committerTim Peters <tim.peters@gmail.com>
Tue, 3 Sep 2002 15:39:58 +0000 (15:39 +0000)
Parser/tokenizer.c

index c58aadbed751a7bc66a49e2b9200f146c75cd7d4..749a59b68c285b49d98484d159128080f3c4cdf5 100644 (file)
@@ -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) {