Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
e9fbc099
Kaydet (Commit)
e9fbc099
authored
Şub 18, 1995
tarafından
Guido van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
rename macstrerror to PyMac_StrError; no EINTR test in CW
üst
8a1e8eb6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
8 deletions
+13
-8
errors.c
Python/errors.c
+13
-8
No files found.
Python/errors.c
Dosyayı görüntüle @
e9fbc099
...
...
@@ -60,17 +60,20 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#include <errno.h>
#ifndef NT
#ifdef __CFM68K__
#pragma lib_export on
#endif
#ifdef macintosh
/*
** For the mac, there's a function macstrerror in macosmodule.c. We can't
** call it strerror(), though, since that is already defined (for Think C)
** in ANSI
/* Replace strerror with a Mac specific routine.
XXX PROBLEM: some positive errors have a meaning for MacOS,
but some library routines set Unix error numbers...
*/
#undef strerror
#define strerror macstrerror
#include "macdefs.h"
/* For CW to find EINTR */
#endif
/* !macintosh */
#define strerror PyMac_StrError
#endif
/* macintosh */
#ifndef NT
extern
char
*
strerror
PROTO
((
int
));
#endif
/* !NT */
...
...
@@ -175,8 +178,10 @@ err_errno(exc)
{
object
*
v
;
int
i
=
errno
;
#ifdef EINTR
if
(
i
==
EINTR
&&
sigcheck
())
return
NULL
;
#endif
v
=
mkvalue
(
"(is)"
,
i
,
strerror
(
i
));
if
(
v
!=
NULL
)
{
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