mirror of
https://github.com/python/cpython.git
synced 2025-10-21 06:02:21 +00:00
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.
This commit is contained in:
parent
824de25fe2
commit
1ae940a587
15 changed files with 1871 additions and 1089 deletions
|
@ -406,6 +406,10 @@ rd_object(fp)
|
|||
FILE *fp;
|
||||
{
|
||||
RFILE rf;
|
||||
if (err_occurred()) {
|
||||
fprintf(stderr, "XXX rd_object called with exception set\n");
|
||||
return NULL;
|
||||
}
|
||||
rf.fp = fp;
|
||||
return r_object(&rf);
|
||||
}
|
||||
|
@ -416,6 +420,10 @@ rds_object(str, len)
|
|||
int len;
|
||||
{
|
||||
RFILE rf;
|
||||
if (err_occurred()) {
|
||||
fprintf(stderr, "XXX rds_object called with exception set\n");
|
||||
return NULL;
|
||||
}
|
||||
rf.fp = NULL;
|
||||
rf.str = NULL;
|
||||
rf.ptr = str;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue