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
bcb017f3
Kaydet (Commit)
bcb017f3
authored
Kas 30, 2008
tarafından
Martin v. Löwis
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #4365: Add crtassem.h constants to the msvcrt module.
üst
98b1b02f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
0 deletions
+26
-0
NEWS
Misc/NEWS
+2
-0
msvcrtmodule.c
PC/msvcrtmodule.c
+24
-0
No files found.
Misc/NEWS
Dosyayı görüntüle @
bcb017f3
...
...
@@ -114,6 +114,8 @@ C-API
Extension Modules
-----------------
- Issue #4365: Add crtassem.h constants to the msvcrt module.
- Issue #4396: The parser module now correctly validates the with statement.
...
...
PC/msvcrtmodule.c
Dosyayı görüntüle @
bcb017f3
...
...
@@ -22,6 +22,12 @@
#include <conio.h>
#include <sys/locking.h>
#ifdef _MSC_VER
#if _MSC_VER >= 1500
#include <crtassem.h>
#endif
#endif
// Force the malloc heap to clean itself up, and free unused blocks
// back to the OS. (According to the docs, only works on NT.)
static
PyObject
*
...
...
@@ -298,6 +304,7 @@ static struct PyMethodDef msvcrt_functions[] = {
PyMODINIT_FUNC
initmsvcrt
(
void
)
{
int
st
;
PyObject
*
d
;
PyObject
*
m
=
Py_InitModule
(
"msvcrt"
,
msvcrt_functions
);
if
(
m
==
NULL
)
...
...
@@ -310,4 +317,21 @@ initmsvcrt(void)
insertint
(
d
,
"LK_NBRLCK"
,
_LK_NBRLCK
);
insertint
(
d
,
"LK_RLCK"
,
_LK_RLCK
);
insertint
(
d
,
"LK_UNLCK"
,
_LK_UNLCK
);
/* constants for the crt versions */
#ifdef _VC_ASSEMBLY_PUBLICKEYTOKEN
st
=
PyModule_AddStringConstant
(
m
,
"VC_ASSEMBLY_PUBLICKEYTOKEN"
,
_VC_ASSEMBLY_PUBLICKEYTOKEN
);
if
(
st
<
0
)
return
;
#endif
#ifdef _CRT_ASSEMBLY_VERSION
st
=
PyModule_AddStringConstant
(
m
,
"CRT_ASSEMBLY_VERSION"
,
_CRT_ASSEMBLY_VERSION
);
if
(
st
<
0
)
return
;
#endif
#ifdef __LIBRARIES_ASSEMBLY_NAME_PREFIX
st
=
PyModule_AddStringConstant
(
m
,
"LIBRARIES_ASSEMBLY_NAME_PREFIX"
,
__LIBRARIES_ASSEMBLY_NAME_PREFIX
);
if
(
st
<
0
)
return
;
#endif
}
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