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
f8e3221f
Kaydet (Commit)
f8e3221f
authored
Kas 19, 2013
tarafından
Victor Stinner
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #9566, #19617: Fix more compiler warnings in compile.c on Windows 64-bit
üst
5323fb09
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
10 deletions
+13
-10
compile.c
Python/compile.c
+13
-10
No files found.
Python/compile.c
Dosyayı görüntüle @
f8e3221f
...
...
@@ -120,8 +120,8 @@ struct compiler_unit {
PyObject
*
u_private
;
/* for private name mangling */
in
t
u_argcount
;
/* number of arguments for block */
in
t
u_kwonlyargcount
;
/* number of keyword only arguments for block */
Py_ssize_
t
u_argcount
;
/* number of arguments for block */
Py_ssize_
t
u_kwonlyargcount
;
/* number of keyword only arguments for block */
/* Pointer to the most recently allocated block. By following b_list
members, you can reach all early allocated blocks. */
basicblock
*
u_blocks
;
...
...
@@ -170,7 +170,7 @@ static basicblock *compiler_new_block(struct compiler *);
static
int
compiler_next_instr
(
struct
compiler
*
,
basicblock
*
);
static
int
compiler_addop
(
struct
compiler
*
,
int
);
static
int
compiler_addop_o
(
struct
compiler
*
,
int
,
PyObject
*
,
PyObject
*
);
static
int
compiler_addop_i
(
struct
compiler
*
,
Py_ssize_
t
,
Py_ssize_t
);
static
int
compiler_addop_i
(
struct
compiler
*
,
in
t
,
Py_ssize_t
);
static
int
compiler_addop_j
(
struct
compiler
*
,
int
,
basicblock
*
,
int
);
static
basicblock
*
compiler_use_new_block
(
struct
compiler
*
);
static
int
compiler_error
(
struct
compiler
*
,
const
char
*
);
...
...
@@ -1074,7 +1074,7 @@ compiler_addop(struct compiler *c, int opcode)
return
1
;
}
static
in
t
static
Py_ssize_
t
compiler_add_o
(
struct
compiler
*
c
,
PyObject
*
dict
,
PyObject
*
o
)
{
PyObject
*
t
,
*
v
;
...
...
@@ -1176,22 +1176,22 @@ compiler_addop_name(struct compiler *c, int opcode, PyObject *dict,
*/
static
int
compiler_addop_i
(
struct
compiler
*
c
,
Py_ssize_
t
opcode
,
Py_ssize_t
oparg
)
compiler_addop_i
(
struct
compiler
*
c
,
in
t
opcode
,
Py_ssize_t
oparg
)
{
struct
instr
*
i
;
int
off
;
/* Integer arguments are limit to 16-bit. There is an extension for 32-bit
integer arguments. */
assert
((
-
2147483647
-
1
)
<=
op
code
);
assert
(
op
code
<=
2147483647
);
assert
((
-
2147483647
-
1
)
<=
op
arg
);
assert
(
op
arg
<=
2147483647
);
off
=
compiler_next_instr
(
c
,
c
->
u
->
u_curblock
);
if
(
off
<
0
)
return
0
;
i
=
&
c
->
u
->
u_curblock
->
b_instr
[
off
];
i
->
i_opcode
=
Py_SAFE_DOWNCAST
(
opcode
,
Py_ssize_t
,
int
)
;
i
->
i_oparg
=
oparg
;
i
->
i_opcode
=
opcode
;
i
->
i_oparg
=
Py_SAFE_DOWNCAST
(
oparg
,
Py_ssize_t
,
int
)
;
i
->
i_hasarg
=
1
;
compiler_set_lineno
(
c
,
off
);
return
1
;
...
...
@@ -4213,6 +4213,7 @@ makecode(struct compiler *c, struct assembler *a)
Py_ssize_t
nlocals
;
int
nlocals_int
;
int
flags
;
int
argcount
,
kwonlyargcount
;
tmp
=
dict_keys_inorder
(
c
->
u
->
u_consts
,
0
);
if
(
!
tmp
)
...
...
@@ -4250,7 +4251,9 @@ makecode(struct compiler *c, struct assembler *a)
Py_DECREF
(
consts
);
consts
=
tmp
;
co
=
PyCode_New
(
c
->
u
->
u_argcount
,
c
->
u
->
u_kwonlyargcount
,
argcount
=
Py_SAFE_DOWNCAST
(
c
->
u
->
u_argcount
,
Py_ssize_t
,
int
);
kwonlyargcount
=
Py_SAFE_DOWNCAST
(
c
->
u
->
u_kwonlyargcount
,
Py_ssize_t
,
int
);
co
=
PyCode_New
(
argcount
,
kwonlyargcount
,
nlocals_int
,
stackdepth
(
c
),
flags
,
bytecode
,
consts
,
names
,
varnames
,
freevars
,
cellvars
,
...
...
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