diff options
| author | Guido van Rossum <guido@python.org> | 1997-03-11 21:25:55 +0000 |
|---|---|---|
| committer | Guido van Rossum <guido@python.org> | 1997-03-11 21:25:55 +0000 |
| commit | 742bc047a4d64f62fb2ce4f3f9d9f4303bef94a5 (patch) | |
| tree | 5d919e286289d9e001d7dafbdb52aed7c37d82b8 /Python | |
| parent | 5138bb64c1a109127dbf4cac8ad03230124530f2 (diff) | |
| download | cpython-742bc047a4d64f62fb2ce4f3f9d9f4303bef94a5.tar.gz | |
Fix dumb bug calling parsestrplus with wrong node as argument.
Add prototypes for parsestr() and parsestrplus() (unrelated, but
seemed to make sense.)
Diffstat (limited to 'Python')
| -rw-r--r-- | Python/compile.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Python/compile.c b/Python/compile.c index 36c78aa801..9f7d1f8401 100644 --- a/Python/compile.c +++ b/Python/compile.c @@ -383,6 +383,8 @@ static int com_argdefs PROTO((struct compiling *, node *)); 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 @@ is_constant_false(c, n) return i == 0; case STRING: - v = parsestrplus(n); + v = parsestr(STR(n)); if (v == NULL) { err_clear(); break; |
