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
12b2538a
Kaydet (Commit)
12b2538a
authored
Kas 05, 2015
tarafından
Serhiy Storchaka
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Reuse Py_STRINGIFY() macro in sre_lib.h and dynload_win.c.
üst
e20310fa
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
8 deletions
+4
-8
sre_lib.h
Modules/sre_lib.h
+2
-4
dynload_win.c
Python/dynload_win.c
+2
-4
No files found.
Modules/sre_lib.h
Dosyayı görüntüle @
12b2538a
...
@@ -367,14 +367,12 @@ SRE(info)(SRE_STATE* state, SRE_CODE* pattern)
...
@@ -367,14 +367,12 @@ SRE(info)(SRE_STATE* state, SRE_CODE* pattern)
#define RETURN_ON_FAILURE(i) \
#define RETURN_ON_FAILURE(i) \
do { RETURN_ON_ERROR(i); if (i == 0) RETURN_FAILURE; } while (0)
do { RETURN_ON_ERROR(i); if (i == 0) RETURN_FAILURE; } while (0)
#define SFY(x) #x
#define DATA_STACK_ALLOC(state, type, ptr) \
#define DATA_STACK_ALLOC(state, type, ptr) \
do { \
do { \
alloc_pos = state->data_stack_base; \
alloc_pos = state->data_stack_base; \
TRACE(("allocating %s in %" PY_FORMAT_SIZE_T "d " \
TRACE(("allocating %s in %" PY_FORMAT_SIZE_T "d " \
"(%" PY_FORMAT_SIZE_T "d)\n", \
"(%" PY_FORMAT_SIZE_T "d)\n", \
S
FY(type), alloc_pos, sizeof(type))); \
Py_STRINGI
FY(type), alloc_pos, sizeof(type))); \
if (sizeof(type) > state->data_stack_size - alloc_pos) { \
if (sizeof(type) > state->data_stack_size - alloc_pos) { \
int j = data_stack_grow(state, sizeof(type)); \
int j = data_stack_grow(state, sizeof(type)); \
if (j < 0) return j; \
if (j < 0) return j; \
...
@@ -387,7 +385,7 @@ do { \
...
@@ -387,7 +385,7 @@ do { \
#define DATA_STACK_LOOKUP_AT(state, type, ptr, pos) \
#define DATA_STACK_LOOKUP_AT(state, type, ptr, pos) \
do { \
do { \
TRACE(("looking up %s at %" PY_FORMAT_SIZE_T "d\n",
S
FY(type), pos)); \
TRACE(("looking up %s at %" PY_FORMAT_SIZE_T "d\n",
Py_STRINGI
FY(type), pos)); \
ptr = (type*)(state->data_stack+pos); \
ptr = (type*)(state->data_stack+pos); \
} while (0)
} while (0)
...
...
Python/dynload_win.c
Dosyayı görüntüle @
12b2538a
...
@@ -24,12 +24,10 @@ void _Py_DeactivateActCtx(ULONG_PTR cookie);
...
@@ -24,12 +24,10 @@ void _Py_DeactivateActCtx(ULONG_PTR cookie);
#define PYD_DEBUG_SUFFIX ""
#define PYD_DEBUG_SUFFIX ""
#endif
#endif
#define STRINGIZE2(x) #x
#define STRINGIZE(x) STRINGIZE2(x)
#ifdef PYD_PLATFORM_TAG
#ifdef PYD_PLATFORM_TAG
#define PYD_TAGGED_SUFFIX PYD_DEBUG_SUFFIX ".cp"
STRINGIZE(PY_MAJOR_VERSION) STRINGIZE
(PY_MINOR_VERSION) "-" PYD_PLATFORM_TAG ".pyd"
#define PYD_TAGGED_SUFFIX PYD_DEBUG_SUFFIX ".cp"
Py_STRINGIFY(PY_MAJOR_VERSION) Py_STRINGIFY
(PY_MINOR_VERSION) "-" PYD_PLATFORM_TAG ".pyd"
#else
#else
#define PYD_TAGGED_SUFFIX PYD_DEBUG_SUFFIX ".cp"
STRINGIZE(PY_MAJOR_VERSION) STRINGIZE
(PY_MINOR_VERSION) ".pyd"
#define PYD_TAGGED_SUFFIX PYD_DEBUG_SUFFIX ".cp"
Py_STRINGIFY(PY_MAJOR_VERSION) Py_STRINGIFY
(PY_MINOR_VERSION) ".pyd"
#endif
#endif
#define PYD_UNTAGGED_SUFFIX PYD_DEBUG_SUFFIX ".pyd"
#define PYD_UNTAGGED_SUFFIX PYD_DEBUG_SUFFIX ".pyd"
...
...
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