Skip to content

Commit 4ebd72f

Browse files
committed
Move lineno / line_start to minimize scope
1 parent 38f190e commit 4ebd72f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Parser/parsetok.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,8 +188,6 @@ parsetok(struct tok_state *tok, grammar *g, int start, perrdetail *err_ret,
188188
node *n;
189189
int started = 0;
190190
int col_offset;
191-
int lineno;
192-
const char *line_start;
193191

194192
if ((ps = PyParser_New(g, start)) == NULL) {
195193
err_ret->error = E_NOMEM;
@@ -207,6 +205,8 @@ parsetok(struct tok_state *tok, grammar *g, int start, perrdetail *err_ret,
207205
size_t len;
208206
char *str;
209207
col_offset = -1;
208+
int lineno;
209+
const char *line_start;
210210

211211
type = PyTokenizer_Get(tok, &a, &b);
212212
if (type == ERRORTOKEN) {

0 commit comments

Comments
 (0)