Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
0e9e98ed
Commit
0e9e98ed
authored
Nov 20, 2010
by
Benjamin Peterson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
c89 declarations
parent
5b066817
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
11 deletions
+11
-11
Parser/asdl_c.py
Parser/asdl_c.py
+1
-1
Python/Python-ast.c
Python/Python-ast.c
+10
-10
No files found.
Parser/asdl_c.py
View file @
0e9e98ed
...
...
@@ -366,9 +366,9 @@ class Obj2ModVisitor(PickleVisitor):
self
.
emit
(
"obj2ast_%s(PyObject* obj, %s* out, PyArena* arena)"
%
(
name
,
ctype
),
0
)
self
.
emit
(
"{"
,
0
)
self
.
emit
(
"PyObject* tmp = NULL;"
,
1
)
self
.
emit
(
"int isinstance;"
,
1
)
# Prevent compiler warnings about unused variable.
self
.
emit
(
"tmp = tmp;"
,
1
)
self
.
emit
(
"int isinstance;"
,
1
)
self
.
emit
(
""
,
0
)
def
sumTrailer
(
self
,
name
,
add_label
=
False
):
...
...
Python/Python-ast.c
View file @
0e9e98ed
...
...
@@ -3375,8 +3375,8 @@ int
obj2ast_mod
(
PyObject
*
obj
,
mod_ty
*
out
,
PyArena
*
arena
)
{
PyObject
*
tmp
=
NULL
;
tmp
=
tmp
;
int
isinstance
;
tmp
=
tmp
;
if
(
obj
==
Py_None
)
{
...
...
@@ -3524,8 +3524,8 @@ int
obj2ast_stmt
(
PyObject
*
obj
,
stmt_ty
*
out
,
PyArena
*
arena
)
{
PyObject
*
tmp
=
NULL
;
tmp
=
tmp
;
int
isinstance
;
tmp
=
tmp
;
int
lineno
;
int
col_offset
;
...
...
@@ -4720,8 +4720,8 @@ int
obj2ast_expr
(
PyObject
*
obj
,
expr_ty
*
out
,
PyArena
*
arena
)
{
PyObject
*
tmp
=
NULL
;
tmp
=
tmp
;
int
isinstance
;
tmp
=
tmp
;
int
lineno
;
int
col_offset
;
...
...
@@ -5836,8 +5836,8 @@ int
obj2ast_expr_context
(
PyObject
*
obj
,
expr_context_ty
*
out
,
PyArena
*
arena
)
{
PyObject
*
tmp
=
NULL
;
tmp
=
tmp
;
int
isinstance
;
tmp
=
tmp
;
isinstance
=
PyObject_IsInstance
(
obj
,
(
PyObject
*
)
Load_type
);
if
(
isinstance
==
-
1
)
{
...
...
@@ -5896,8 +5896,8 @@ int
obj2ast_slice
(
PyObject
*
obj
,
slice_ty
*
out
,
PyArena
*
arena
)
{
PyObject
*
tmp
=
NULL
;
tmp
=
tmp
;
int
isinstance
;
tmp
=
tmp
;
if
(
obj
==
Py_None
)
{
...
...
@@ -6019,8 +6019,8 @@ int
obj2ast_boolop
(
PyObject
*
obj
,
boolop_ty
*
out
,
PyArena
*
arena
)
{
PyObject
*
tmp
=
NULL
;
tmp
=
tmp
;
int
isinstance
;
tmp
=
tmp
;
isinstance
=
PyObject_IsInstance
(
obj
,
(
PyObject
*
)
And_type
);
if
(
isinstance
==
-
1
)
{
...
...
@@ -6047,8 +6047,8 @@ int
obj2ast_operator
(
PyObject
*
obj
,
operator_ty
*
out
,
PyArena
*
arena
)
{
PyObject
*
tmp
=
NULL
;
tmp
=
tmp
;
int
isinstance
;
tmp
=
tmp
;
isinstance
=
PyObject_IsInstance
(
obj
,
(
PyObject
*
)
Add_type
);
if
(
isinstance
==
-
1
)
{
...
...
@@ -6155,8 +6155,8 @@ int
obj2ast_unaryop
(
PyObject
*
obj
,
unaryop_ty
*
out
,
PyArena
*
arena
)
{
PyObject
*
tmp
=
NULL
;
tmp
=
tmp
;
int
isinstance
;
tmp
=
tmp
;
isinstance
=
PyObject_IsInstance
(
obj
,
(
PyObject
*
)
Invert_type
);
if
(
isinstance
==
-
1
)
{
...
...
@@ -6199,8 +6199,8 @@ int
obj2ast_cmpop
(
PyObject
*
obj
,
cmpop_ty
*
out
,
PyArena
*
arena
)
{
PyObject
*
tmp
=
NULL
;
tmp
=
tmp
;
int
isinstance
;
tmp
=
tmp
;
isinstance
=
PyObject_IsInstance
(
obj
,
(
PyObject
*
)
Eq_type
);
if
(
isinstance
==
-
1
)
{
...
...
@@ -6355,8 +6355,8 @@ int
obj2ast_excepthandler
(
PyObject
*
obj
,
excepthandler_ty
*
out
,
PyArena
*
arena
)
{
PyObject
*
tmp
=
NULL
;
tmp
=
tmp
;
int
isinstance
;
tmp
=
tmp
;
int
lineno
;
int
col_offset
;
...
...
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