Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
e9fbc099
Commit
e9fbc099
authored
Feb 18, 1995
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rename macstrerror to PyMac_StrError; no EINTR test in CW
parent
8a1e8eb6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
8 deletions
+13
-8
Python/errors.c
Python/errors.c
+13
-8
No files found.
Python/errors.c
View file @
e9fbc099
...
@@ -60,17 +60,20 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
...
@@ -60,17 +60,20 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#include <errno.h>
#include <errno.h>
#ifndef NT
#ifdef __CFM68K__
#pragma lib_export on
#endif
#ifdef macintosh
#ifdef macintosh
/*
/* Replace strerror with a Mac specific routine.
** For the mac, there's a function macstrerror in macosmodule.c. We can't
XXX PROBLEM: some positive errors have a meaning for MacOS,
** call it strerror(), though, since that is already defined (for Think C)
but some library routines set Unix error numbers...
** in ANSI
*/
*/
#undef strerror
#undef strerror
#define strerror macstrerror
#define strerror PyMac_StrError
#include "macdefs.h"
/* For CW to find EINTR */
#endif
/* macintosh */
#endif
/* !macintosh */
#ifndef NT
extern
char
*
strerror
PROTO
((
int
));
extern
char
*
strerror
PROTO
((
int
));
#endif
/* !NT */
#endif
/* !NT */
...
@@ -175,8 +178,10 @@ err_errno(exc)
...
@@ -175,8 +178,10 @@ err_errno(exc)
{
{
object
*
v
;
object
*
v
;
int
i
=
errno
;
int
i
=
errno
;
#ifdef EINTR
if
(
i
==
EINTR
&&
sigcheck
())
if
(
i
==
EINTR
&&
sigcheck
())
return
NULL
;
return
NULL
;
#endif
v
=
mkvalue
(
"(is)"
,
i
,
strerror
(
i
));
v
=
mkvalue
(
"(is)"
,
i
,
strerror
(
i
));
if
(
v
!=
NULL
)
{
if
(
v
!=
NULL
)
{
err_setval
(
exc
,
v
);
err_setval
(
exc
,
v
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment