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
c2f665e7
Kaydet (Commit)
c2f665e7
authored
Şub 11, 2014
tarafından
Benjamin Peterson
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
don't put runtime values in array initializer for C89 compliance (closes #20588)
üst
f0560d95
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
4 deletions
+14
-4
NEWS
Misc/NEWS
+2
-0
asdl_c.py
Parser/asdl_c.py
+6
-2
Python-ast.c
Python/Python-ast.c
+6
-2
No files found.
Misc/NEWS
Dosyayı görüntüle @
c2f665e7
...
@@ -10,6 +10,8 @@ What's New in Python 3.3.5 release candidate 1?
...
@@ -10,6 +10,8 @@ What's New in Python 3.3.5 release candidate 1?
Core and Builtins
Core and Builtins
-----------------
-----------------
- Issue #20588: Make Python-ast.c C89 compliant.
- Issue #20437: Fixed 21 potential bugs when deleting objects references.
- Issue #20437: Fixed 21 potential bugs when deleting objects references.
- Issue #20538: UTF-7 incremental decoder produced inconsistant string when
- Issue #20538: UTF-7 incremental decoder produced inconsistant string when
...
...
Parser/asdl_c.py
Dosyayı görüntüle @
c2f665e7
...
@@ -1150,10 +1150,14 @@ PyObject* PyAST_mod2obj(mod_ty t)
...
@@ -1150,10 +1150,14 @@ PyObject* PyAST_mod2obj(mod_ty t)
mod_ty PyAST_obj2mod(PyObject* ast, PyArena* arena, int mode)
mod_ty PyAST_obj2mod(PyObject* ast, PyArena* arena, int mode)
{
{
mod_ty res;
mod_ty res;
PyObject *req_type[] = {(PyObject*)Module_type, (PyObject*)Expression_type,
PyObject *req_type[3];
(PyObject*)Interactive_type};
char *req_name[] = {"Module", "Expression", "Interactive"};
char *req_name[] = {"Module", "Expression", "Interactive"};
int isinstance;
int isinstance;
req_type[0] = (PyObject*)Module_type;
req_type[1] = (PyObject*)Expression_type;
req_type[2] = (PyObject*)Interactive_type;
assert(0 <= mode && mode <= 2);
assert(0 <= mode && mode <= 2);
init_types();
init_types();
...
...
Python/Python-ast.c
Dosyayı görüntüle @
c2f665e7
...
@@ -6957,10 +6957,14 @@ PyObject* PyAST_mod2obj(mod_ty t)
...
@@ -6957,10 +6957,14 @@ PyObject* PyAST_mod2obj(mod_ty t)
mod_ty
PyAST_obj2mod
(
PyObject
*
ast
,
PyArena
*
arena
,
int
mode
)
mod_ty
PyAST_obj2mod
(
PyObject
*
ast
,
PyArena
*
arena
,
int
mode
)
{
{
mod_ty
res
;
mod_ty
res
;
PyObject
*
req_type
[]
=
{(
PyObject
*
)
Module_type
,
(
PyObject
*
)
Expression_type
,
PyObject
*
req_type
[
3
];
(
PyObject
*
)
Interactive_type
};
char
*
req_name
[]
=
{
"Module"
,
"Expression"
,
"Interactive"
};
char
*
req_name
[]
=
{
"Module"
,
"Expression"
,
"Interactive"
};
int
isinstance
;
int
isinstance
;
req_type
[
0
]
=
(
PyObject
*
)
Module_type
;
req_type
[
1
]
=
(
PyObject
*
)
Expression_type
;
req_type
[
2
]
=
(
PyObject
*
)
Interactive_type
;
assert
(
0
<=
mode
&&
mode
<=
2
);
assert
(
0
<=
mode
&&
mode
<=
2
);
init_types
();
init_types
();
...
...
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