diff Python/compile.c @ 5183:636757e812a4 legacy-trunk

Fix dumb bug calling parsestrplus with wrong node as argument. Add prototypes for parsestr() and parsestrplus() (unrelated, but seemed to make sense.)
author Guido van Rossum <guido@python.org>
date Tue, 11 Mar 1997 21:25:55 +0000
parents 8a0b80dc6e71
children 74c12704a0bd
line wrap: on
line diff
--- a/Python/compile.c	Tue Mar 11 18:43:26 1997 +0000
+++ b/Python/compile.c	Tue Mar 11 21:25:55 1997 +0000
@@ -383,6 +383,8 @@
 static int com_newlocal PROTO((struct compiling *, char *));
 static codeobject *icompile PROTO((struct _node *, struct compiling *));
 static codeobject *jcompile PROTO((struct _node *, char *, struct compiling *));
+static object *parsestrplus PROTO((node *));
+static object *parsestr PROTO((char *));
 
 static int
 com_init(c, filename)
@@ -2242,7 +2244,7 @@
 		return i == 0;
 
 	case STRING:
-		v = parsestrplus(n);
+		v = parsestr(STR(n));
 		if (v == NULL) {
 			err_clear();
 			break;