diff options
author | Guido van Rossum <guido@python.org> | 1995-01-02 19:04:15 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1995-01-02 19:04:15 (GMT) |
commit | 1ae940a5870df2f706fa884afd533847f6b0b1a8 (patch) | |
tree | ac19577f141b553bd56f998a62478719d5b81cd4 /Python/compile.c | |
parent | 824de25fe2edade0ded378b4d602351272f4cf63 (diff) | |
download | cpython-1ae940a5870df2f706fa884afd533847f6b0b1a8.zip cpython-1ae940a5870df2f706fa884afd533847f6b0b1a8.tar.gz cpython-1ae940a5870df2f706fa884afd533847f6b0b1a8.tar.bz2 |
Lots of changes, most minor (fatal() instead of abort(), use of
err_fetch/err_restore and so on). But...
NOTE: import.c has been rewritten and all the DL stuff is now in the
new file importdl.c.
Diffstat (limited to 'Python/compile.c')
-rw-r--r-- | Python/compile.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Python/compile.c b/Python/compile.c index b3b610a..dbc6314 100644 --- a/Python/compile.c +++ b/Python/compile.c @@ -336,7 +336,7 @@ com_addbyte(c, byte) if (byte < 0 || byte > 255) { /* fprintf(stderr, "XXX compiling bad byte: %d\n", byte); - abort(); + fatal("com_addbyte: byte out of range"); */ err_setstr(SystemError, "com_addbyte: byte out of range"); c->c_errors++; @@ -2379,7 +2379,7 @@ optimize(c) int oparg; object *name; int fast_reserved; - object *error_type, *error_value; + object *error_type, *error_value, *error_traceback; #define NEXTOP() (*next_instr++) #define NEXTARG() (next_instr += 2, (next_instr[-1]<<8) + next_instr[-2]) @@ -2393,7 +2393,7 @@ optimize(c) } nlocals = 0; - err_get(&error_type, &error_value); + err_fetch(&error_type, &error_value, &error_traceback); next_instr = (unsigned char *) getstringvalue(c->c_code); for (;;) { @@ -2493,7 +2493,7 @@ optimize(c) } end: - err_setval(error_type, error_value); + err_restore(error_type, error_value, error_traceback); err: DECREF(locals); } |