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
cfc8831f
Unverified
Kaydet (Commit)
cfc8831f
authored
Agu 01, 2018
tarafından
Victor Stinner
Kaydeden (comit)
GitHub
Agu 01, 2018
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Define _Py_NO_RETURN for Microsoft C compiler (GH-8606)
üst
fc96437d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
6 deletions
+8
-6
pyerrors.h
Include/pyerrors.h
+5
-3
pylifecycle.h
Include/pylifecycle.h
+2
-2
pylifecycle.c
Python/pylifecycle.c
+1
-1
No files found.
Include/pyerrors.h
Dosyayı görüntüle @
cfc8831f
...
@@ -97,13 +97,15 @@ PyAPI_FUNC(void) PyErr_SetExcInfo(PyObject *, PyObject *, PyObject *);
...
@@ -97,13 +97,15 @@ PyAPI_FUNC(void) PyErr_SetExcInfo(PyObject *, PyObject *, PyObject *);
(defined(__GNUC_MAJOR__) && \
(defined(__GNUC_MAJOR__) && \
((__GNUC_MAJOR__ >= 3) || \
((__GNUC_MAJOR__ >= 3) || \
(__GNUC_MAJOR__ == 2) && (__GNUC_MINOR__ >= 5)))
(__GNUC_MAJOR__ == 2) && (__GNUC_MINOR__ >= 5)))
#define _Py_NO_RETURN __attribute__((__noreturn__))
# define _Py_NO_RETURN __attribute__((__noreturn__))
#elif defined(_MSC_VER)
# define _Py_NO_RETURN __declspec(noreturn)
#else
#else
#define _Py_NO_RETURN
#
define _Py_NO_RETURN
#endif
#endif
/* Defined in Python/pylifecycle.c */
/* Defined in Python/pylifecycle.c */
PyAPI_FUNC
(
void
)
Py_FatalError
(
const
char
*
message
)
_Py_NO_RETURN
;
PyAPI_FUNC
(
void
)
_Py_NO_RETURN
Py_FatalError
(
const
char
*
message
)
;
#if defined(Py_DEBUG) || defined(Py_LIMITED_API)
#if defined(Py_DEBUG) || defined(Py_LIMITED_API)
#define _PyErr_OCCURRED() PyErr_Occurred()
#define _PyErr_OCCURRED() PyErr_Occurred()
...
...
Include/pylifecycle.h
Dosyayı görüntüle @
cfc8831f
...
@@ -86,7 +86,7 @@ PyAPI_FUNC(void) Py_InitializeEx(int);
...
@@ -86,7 +86,7 @@ PyAPI_FUNC(void) Py_InitializeEx(int);
#ifndef Py_LIMITED_API
#ifndef Py_LIMITED_API
PyAPI_FUNC
(
_PyInitError
)
_Py_InitializeFromConfig
(
PyAPI_FUNC
(
_PyInitError
)
_Py_InitializeFromConfig
(
const
_PyCoreConfig
*
config
);
const
_PyCoreConfig
*
config
);
PyAPI_FUNC
(
void
)
_Py_
FatalInitError
(
_PyInitError
err
)
_Py_NO_RETURN
;
PyAPI_FUNC
(
void
)
_Py_
NO_RETURN
_Py_FatalInitError
(
_PyInitError
err
)
;
#endif
#endif
PyAPI_FUNC
(
void
)
Py_Finalize
(
void
);
PyAPI_FUNC
(
void
)
Py_Finalize
(
void
);
PyAPI_FUNC
(
int
)
Py_FinalizeEx
(
void
);
PyAPI_FUNC
(
int
)
Py_FinalizeEx
(
void
);
...
@@ -105,7 +105,7 @@ PyAPI_FUNC(void) _Py_PyAtExit(void (*func)(PyObject *), PyObject *);
...
@@ -105,7 +105,7 @@ PyAPI_FUNC(void) _Py_PyAtExit(void (*func)(PyObject *), PyObject *);
#endif
#endif
PyAPI_FUNC
(
int
)
Py_AtExit
(
void
(
*
func
)(
void
));
PyAPI_FUNC
(
int
)
Py_AtExit
(
void
(
*
func
)(
void
));
PyAPI_FUNC
(
void
)
Py_Exit
(
int
)
_Py_NO_RETURN
;
PyAPI_FUNC
(
void
)
_Py_NO_RETURN
Py_Exit
(
int
)
;
/* Restore signals that the interpreter has called SIG_IGN on to SIG_DFL. */
/* Restore signals that the interpreter has called SIG_IGN on to SIG_DFL. */
#ifndef Py_LIMITED_API
#ifndef Py_LIMITED_API
...
...
Python/pylifecycle.c
Dosyayı görüntüle @
cfc8831f
...
@@ -2212,7 +2212,7 @@ call_ll_exitfuncs(void)
...
@@ -2212,7 +2212,7 @@ call_ll_exitfuncs(void)
fflush
(
stderr
);
fflush
(
stderr
);
}
}
void
void
_Py_NO_RETURN
Py_Exit
(
int
sts
)
Py_Exit
(
int
sts
)
{
{
if
(
Py_FinalizeEx
()
<
0
)
{
if
(
Py_FinalizeEx
()
<
0
)
{
...
...
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