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
69f5c733
Unverified
Kaydet (Commit)
69f5c733
authored
Mar 30, 2018
tarafından
Nick Coghlan
Kaydeden (comit)
GitHub
Mar 30, 2018
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
bpo-33182: Fix pointer types in _testembed (GH-6310)
üst
52199520
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
5 deletions
+8
-5
2018-03-30-14-55-48.bpo-33182.CePczb.rst
...EWS.d/next/Build/2018-03-30-14-55-48.bpo-33182.CePczb.rst
+1
-0
_testembed.c
Programs/_testembed.c
+7
-5
No files found.
Misc/NEWS.d/next/Build/2018-03-30-14-55-48.bpo-33182.CePczb.rst
0 → 100644
Dosyayı görüntüle @
69f5c733
The embedding tests can once again be built with clang 6.0
Programs/_testembed.c
Dosyayı görüntüle @
69f5c733
...
...
@@ -166,16 +166,18 @@ static int test_pre_initialization_api(void)
/* bpo-33042: Ensure embedding apps can predefine sys module options */
static
int
test_pre_initialization_sys_options
(
void
)
{
/* We allocate a couple of the option dynamically, and then delete
/* We allocate a couple of the option
s
dynamically, and then delete
* them before calling Py_Initialize. This ensures the interpreter isn't
* relying on the caller to keep the passed in strings alive.
*/
wchar_t
*
static_warnoption
=
L"once"
;
wchar_t
*
static_xoption
=
L"also_not_an_option=2"
;
const
wchar_t
*
static_warnoption
=
L"once"
;
const
wchar_t
*
static_xoption
=
L"also_not_an_option=2"
;
size_t
warnoption_len
=
wcslen
(
static_warnoption
);
size_t
xoption_len
=
wcslen
(
static_xoption
);
wchar_t
*
dynamic_once_warnoption
=
calloc
(
warnoption_len
+
1
,
sizeof
(
wchar_t
));
wchar_t
*
dynamic_xoption
=
calloc
(
xoption_len
+
1
,
sizeof
(
wchar_t
));
wchar_t
*
dynamic_once_warnoption
=
\
(
wchar_t
*
)
calloc
(
warnoption_len
+
1
,
sizeof
(
wchar_t
));
wchar_t
*
dynamic_xoption
=
\
(
wchar_t
*
)
calloc
(
xoption_len
+
1
,
sizeof
(
wchar_t
));
wcsncpy
(
dynamic_once_warnoption
,
static_warnoption
,
warnoption_len
+
1
);
wcsncpy
(
dynamic_xoption
,
static_xoption
,
xoption_len
+
1
);
...
...
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