[Python-checkins] python/dist/src/Python newcompile.c, 1.1.2.117, 1.1.2.118

nascheme@users.sourceforge.net nascheme at users.sourceforge.net
Thu Oct 13 02:32:48 CEST 2005


Update of /cvsroot/python/python/dist/src/Python
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30515/Python

Modified Files:
      Tag: ast-branch
	newcompile.c 
Log Message:
Move comment to correct location.  Fix a bug in a debug print statement.


Index: newcompile.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/Attic/newcompile.c,v
retrieving revision 1.1.2.117
retrieving revision 1.1.2.118
diff -u -d -r1.1.2.117 -r1.1.2.118
--- newcompile.c	12 Oct 2005 23:36:09 -0000	1.1.2.117
+++ newcompile.c	13 Oct 2005 00:32:45 -0000	1.1.2.118
@@ -1414,10 +1414,6 @@
 	return b->b_iused++;
 }
 
-/* Add an opcode with no argument.
-   Returns 0 on failure, 1 on success.
-*/
-
 static void
 compiler_set_lineno(struct compiler *c, int off)
 {
@@ -1646,6 +1642,10 @@
 	return 0; /* not reachable */
 }
 
+/* Add an opcode with no argument.
+   Returns 0 on failure, 1 on success.
+*/
+
 static int
 compiler_addop(struct compiler *c, int opcode)
 {
@@ -3344,7 +3344,7 @@
 {
 	int i, n;
 
-	fprintf(stderr, "compile expr %d lineno %d %d\n", e->kind, e->lineno);
+	fprintf(stderr, "compile expr %d lineno %d\n", e->kind, e->lineno);
 	if (e->lineno > c->u->u_lineno) {
 		c->u->u_lineno = e->lineno;
 		c->u->u_lineno_set = false;



More information about the Python-checkins mailing list