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
d5a6a389
Unverified
Kaydet (Commit)
d5a6a389
authored
Ara 11, 2018
tarafından
Steve Dower
Kaydeden (comit)
GitHub
Ara 11, 2018
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
bpo-34977: Remove unused preprocessor definition (GH-11092)
üst
4824385f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
12 deletions
+0
-12
python_uwp.cpp
PC/python_uwp.cpp
+0
-12
No files found.
PC/python_uwp.cpp
Dosyayı görüntüle @
d5a6a389
...
@@ -7,12 +7,8 @@
...
@@ -7,12 +7,8 @@
#include <Windows.h>
#include <Windows.h>
#include <shellapi.h>
#include <shellapi.h>
#ifdef PYTHON_UWP_SUPPORTED
#include <winrt\Windows.ApplicationModel.h>
#include <winrt\Windows.ApplicationModel.h>
#include <winrt\Windows.Storage.h>
#include <winrt\Windows.Storage.h>
#else
#include <string>
#endif
#ifdef PYTHONW
#ifdef PYTHONW
#ifdef _DEBUG
#ifdef _DEBUG
...
@@ -31,7 +27,6 @@ const wchar_t *PROGNAME = L"python.exe";
...
@@ -31,7 +27,6 @@ const wchar_t *PROGNAME = L"python.exe";
static
void
static
void
set_user_base
()
set_user_base
()
{
{
#ifdef PYTHON_UWP_SUPPORTED
wchar_t
envBuffer
[
2048
];
wchar_t
envBuffer
[
2048
];
try
{
try
{
const
auto
appData
=
winrt
::
Windows
::
Storage
::
ApplicationData
::
Current
();
const
auto
appData
=
winrt
::
Windows
::
Storage
::
ApplicationData
::
Current
();
...
@@ -49,17 +44,12 @@ set_user_base()
...
@@ -49,17 +44,12 @@ set_user_base()
}
}
}
catch
(...)
{
}
catch
(...)
{
}
}
#endif
}
}
static
const
wchar_t
*
static
const
wchar_t
*
get_argv0
(
const
wchar_t
*
argv0
)
get_argv0
(
const
wchar_t
*
argv0
)
{
{
#ifdef PYTHON_UWP_SUPPORTED
winrt
::
hstring
installPath
;
winrt
::
hstring
installPath
;
#else
std
::
wstring
installPath
;
#endif
const
wchar_t
*
launcherPath
;
const
wchar_t
*
launcherPath
;
wchar_t
*
buffer
;
wchar_t
*
buffer
;
size_t
len
;
size_t
len
;
...
@@ -79,7 +69,6 @@ get_argv0(const wchar_t *argv0)
...
@@ -79,7 +69,6 @@ get_argv0(const wchar_t *argv0)
return
buffer
;
return
buffer
;
}
}
#ifdef PYTHON_UWP_SUPPORTED
try
{
try
{
const
auto
package
=
winrt
::
Windows
::
ApplicationModel
::
Package
::
Current
();
const
auto
package
=
winrt
::
Windows
::
ApplicationModel
::
Package
::
Current
();
if
(
package
)
{
if
(
package
)
{
...
@@ -91,7 +80,6 @@ get_argv0(const wchar_t *argv0)
...
@@ -91,7 +80,6 @@ get_argv0(const wchar_t *argv0)
}
}
catch
(...)
{
catch
(...)
{
}
}
#endif
if
(
!
installPath
.
empty
())
{
if
(
!
installPath
.
empty
())
{
len
=
installPath
.
size
()
+
wcslen
(
PROGNAME
)
+
2
;
len
=
installPath
.
size
()
+
wcslen
(
PROGNAME
)
+
2
;
...
...
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