Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e82c169

Browse files
committed
Merged revisions 86540 via svnmerge from
svn+ssh://[email protected]/python/branches/py3k ........ r86540 | benjamin.peterson | 2010-11-19 20:01:45 -0600 (Fri, 19 Nov 2010) | 1 line c89 declarations ........
1 parent aab9585 commit e82c169

2 files changed

Lines changed: 11 additions & 11 deletions

File tree

Parser/asdl_c.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,9 +366,9 @@ def funcHeader(self, name):
366366
self.emit("obj2ast_%s(PyObject* obj, %s* out, PyArena* arena)" % (name, ctype), 0)
367367
self.emit("{", 0)
368368
self.emit("PyObject* tmp = NULL;", 1)
369+
self.emit("int isinstance;", 1)
369370
# Prevent compiler warnings about unused variable.
370371
self.emit("tmp = tmp;", 1)
371-
self.emit("int isinstance;", 1)
372372
self.emit("", 0)
373373

374374
def sumTrailer(self, name, add_label=False):

Python/Python-ast.c

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3379,8 +3379,8 @@ int
33793379
obj2ast_mod(PyObject* obj, mod_ty* out, PyArena* arena)
33803380
{
33813381
PyObject* tmp = NULL;
3382-
tmp = tmp;
33833382
int isinstance;
3383+
tmp = tmp;
33843384

33853385

33863386
if (obj == Py_None) {
@@ -3528,8 +3528,8 @@ int
35283528
obj2ast_stmt(PyObject* obj, stmt_ty* out, PyArena* arena)
35293529
{
35303530
PyObject* tmp = NULL;
3531-
tmp = tmp;
35323531
int isinstance;
3532+
tmp = tmp;
35333533

35343534
int lineno;
35353535
int col_offset;
@@ -4725,8 +4725,8 @@ int
47254725
obj2ast_expr(PyObject* obj, expr_ty* out, PyArena* arena)
47264726
{
47274727
PyObject* tmp = NULL;
4728-
tmp = tmp;
47294728
int isinstance;
4729+
tmp = tmp;
47304730

47314731
int lineno;
47324732
int col_offset;
@@ -5841,8 +5841,8 @@ int
58415841
obj2ast_expr_context(PyObject* obj, expr_context_ty* out, PyArena* arena)
58425842
{
58435843
PyObject* tmp = NULL;
5844-
tmp = tmp;
58455844
int isinstance;
5845+
tmp = tmp;
58465846

58475847
isinstance = PyObject_IsInstance(obj, (PyObject *)Load_type);
58485848
if (isinstance == -1) {
@@ -5901,8 +5901,8 @@ int
59015901
obj2ast_slice(PyObject* obj, slice_ty* out, PyArena* arena)
59025902
{
59035903
PyObject* tmp = NULL;
5904-
tmp = tmp;
59055904
int isinstance;
5905+
tmp = tmp;
59065906

59075907

59085908
if (obj == Py_None) {
@@ -6024,8 +6024,8 @@ int
60246024
obj2ast_boolop(PyObject* obj, boolop_ty* out, PyArena* arena)
60256025
{
60266026
PyObject* tmp = NULL;
6027-
tmp = tmp;
60286027
int isinstance;
6028+
tmp = tmp;
60296029

60306030
isinstance = PyObject_IsInstance(obj, (PyObject *)And_type);
60316031
if (isinstance == -1) {
@@ -6052,8 +6052,8 @@ int
60526052
obj2ast_operator(PyObject* obj, operator_ty* out, PyArena* arena)
60536053
{
60546054
PyObject* tmp = NULL;
6055-
tmp = tmp;
60566055
int isinstance;
6056+
tmp = tmp;
60576057

60586058
isinstance = PyObject_IsInstance(obj, (PyObject *)Add_type);
60596059
if (isinstance == -1) {
@@ -6160,8 +6160,8 @@ int
61606160
obj2ast_unaryop(PyObject* obj, unaryop_ty* out, PyArena* arena)
61616161
{
61626162
PyObject* tmp = NULL;
6163-
tmp = tmp;
61646163
int isinstance;
6164+
tmp = tmp;
61656165

61666166
isinstance = PyObject_IsInstance(obj, (PyObject *)Invert_type);
61676167
if (isinstance == -1) {
@@ -6204,8 +6204,8 @@ int
62046204
obj2ast_cmpop(PyObject* obj, cmpop_ty* out, PyArena* arena)
62056205
{
62066206
PyObject* tmp = NULL;
6207-
tmp = tmp;
62086207
int isinstance;
6208+
tmp = tmp;
62096209

62106210
isinstance = PyObject_IsInstance(obj, (PyObject *)Eq_type);
62116211
if (isinstance == -1) {
@@ -6360,8 +6360,8 @@ int
63606360
obj2ast_excepthandler(PyObject* obj, excepthandler_ty* out, PyArena* arena)
63616361
{
63626362
PyObject* tmp = NULL;
6363-
tmp = tmp;
63646363
int isinstance;
6364+
tmp = tmp;
63656365

63666366
int lineno;
63676367
int col_offset;

0 commit comments

Comments
 (0)