From: Benjamin Peterson Date: Thu, 19 Jan 2012 13:48:11 +0000 (-0500) Subject: only check this when parsing python X-Git-Tag: v3.3.0a1~340 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=79c1f964387a54259cd974507a6b0430331a7751;p=thirdparty%2FPython%2Fcpython.git only check this when parsing python --- diff --git a/Parser/parsetok.c b/Parser/parsetok.c index 9b2d7306ff6b..ad5f7ba5d4c2 100644 --- a/Parser/parsetok.c +++ b/Parser/parsetok.c @@ -225,6 +225,7 @@ parsetok(struct tok_state *tok, grammar *g, int start, perrdetail *err_ret, n = ps->p_tree; ps->p_tree = NULL; +#ifndef PGEN /* Check that the source for a single input statement really is a single statement by looking at what is left in the buffer after parsing. Trailing whitespace and comments @@ -241,6 +242,7 @@ parsetok(struct tok_state *tok, grammar *g, int start, perrdetail *err_ret, n = NULL; } } +#endif } else n = NULL;