[Python-checkins] r43543 - python/trunk/Python/compile.c (original) (raw)

jeremy.hylton python-checkins at python.org
Sat Apr 1 18🔞03 CEST 2006


Author: jeremy.hylton Date: Sat Apr 1 18🔞02 2006 New Revision: 43543

Modified: python/trunk/Python/compile.c Log: Expand comments on line numbers and blocks. Reorder compiler_set_lineno() call for consistency.

Modified: python/trunk/Python/compile.c

--- python/trunk/Python/compile.c (original) +++ python/trunk/Python/compile.c Sat Apr 1 18🔞02 2006 @@ -58,8 +58,9 @@ };

typedef struct basicblock_ { - /* next block in the list of blocks for a unit (don't confuse with - * b_next) */

@@ -1194,7 +1197,7 @@ return NULL; } memset((void *)b, 0, sizeof(basicblock)); - assert (b->b_next == NULL);

+/* Set the i_lineno member of the instruction at offse off if the

@@ -1618,6 +1627,7 @@ i->i_jabs = 1; else i->i_jrel = 1; + compiler_set_lineno(c, off); return 1; }

@@ -2230,7 +2240,7 @@ ADDOP(c, POP_BLOCK); } compiler_pop_fblock(c, LOOP, loop); - if (orelse != NULL) + if (orelse != NULL) /* what if orelse is just pass? */ VISIT_SEQ(c, stmt, s->v.While.orelse); compiler_use_next_block(c, end);

@@ -2610,8 +2620,10 @@ { int i, n;

@@ -3486,6 +3498,9 @@ { int i, n;



More information about the Python-checkins mailing list