Kaydet (Commit) 51ffac6d authored tarafından Skip Montanaro's avatar Skip Montanaro

dump HAVE_FOPENRF stuff - obsolete

üst a5616d22
...@@ -151,14 +151,7 @@ open_the_file(PyFileObject *f, char *name, char *mode) ...@@ -151,14 +151,7 @@ open_the_file(PyFileObject *f, char *name, char *mode)
return NULL; return NULL;
} }
errno = 0; errno = 0;
#ifdef HAVE_FOPENRF
if (*mode == '*') {
FILE *fopenRF();
f->f_fp = fopenRF(name, mode+1);
}
else
#endif
{
if (strcmp(mode, "U") == 0 || strcmp(mode, "rU") == 0) if (strcmp(mode, "U") == 0 || strcmp(mode, "rU") == 0)
mode = "rb"; mode = "rb";
#ifdef MS_WINDOWS #ifdef MS_WINDOWS
...@@ -181,7 +174,7 @@ open_the_file(PyFileObject *f, char *name, char *mode) ...@@ -181,7 +174,7 @@ open_the_file(PyFileObject *f, char *name, char *mode)
f->f_fp = fopen(name, mode); f->f_fp = fopen(name, mode);
Py_END_ALLOW_THREADS Py_END_ALLOW_THREADS
} }
}
if (f->f_fp == NULL) { if (f->f_fp == NULL) {
#ifdef _MSC_VER #ifdef _MSC_VER
/* MSVC 6 (Microsoft) leaves errno at 0 for bad mode strings, /* MSVC 6 (Microsoft) leaves errno at 0 for bad mode strings,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment