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
48deae12
Kaydet (Commit)
48deae12
authored
Haz 03, 2011
tarafından
Benjamin Peterson
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
some horrible preprocessing tricks to automatically update the tag
üst
dd5be06e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
import.c
Python/import.c
+10
-2
No files found.
Python/import.c
Dosyayı görüntüle @
48deae12
...
...
@@ -110,8 +110,12 @@ typedef unsigned short mode_t;
TAG and PYC_TAG_UNICODE must change for each major Python release. The magic
number will take care of any bytecode changes that occur during development.
*/
#define QUOTE(arg) #arg
#define STRIFY(name) QUOTE(name)
#define MAJOR STRIFY(PY_MAJOR_VERSION)
#define MINOR STRIFY(PY_MINOR_VERSION)
#define MAGIC (3180 | ((long)'\r'<<16) | ((long)'\n'<<24))
#define TAG "cpython-
32"
#define TAG "cpython-
" MAJOR MINOR;
#define CACHEDIR "__pycache__"
static
const
Py_UNICODE
CACHEDIR_UNICODE
[]
=
{
'_'
,
'_'
,
'p'
,
'y'
,
'c'
,
'a'
,
'c'
,
'h'
,
'e'
,
'_'
,
'_'
,
'\0'
};
...
...
@@ -119,7 +123,11 @@ static const Py_UNICODE CACHEDIR_UNICODE[] = {
static
long
pyc_magic
=
MAGIC
;
static
const
char
*
pyc_tag
=
TAG
;
static
const
Py_UNICODE
PYC_TAG_UNICODE
[]
=
{
'c'
,
'p'
,
'y'
,
't'
,
'h'
,
'o'
,
'n'
,
'-'
,
'3'
,
'2'
,
'\0'
};
'c'
,
'p'
,
'y'
,
't'
,
'h'
,
'o'
,
'n'
,
'-'
,
PY_MAJOR_VERSION
+
48
,
PY_MINOR_VERSION
+
48
,
'\0'
};
#undef QUOTE
#undef STRIFY
#undef MAJOR
#undef MINOR
/* See _PyImport_FixupExtensionObject() below */
static
PyObject
*
extensions
=
NULL
;
...
...
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