comparison Python/Python-ast.c @ 66256:51f72c5fe28e 3.1

Merged revisions 86540 via svnmerge from svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r86540 | benjamin.peterson | 2010-11-19 20:01:45 -0600 (Fri, 19 Nov 2010) | 1 line c89 declarations ........
author Benjamin Peterson <benjamin@python.org>
date Sat, 20 Nov 2010 02:04:14 +0000
parents 350898e095aa
children d22aa5ae7762
comparison
equal deleted inserted replaced
66254:350898e095aa 66256:51f72c5fe28e
3377 3377
3378 int 3378 int
3379 obj2ast_mod(PyObject* obj, mod_ty* out, PyArena* arena) 3379 obj2ast_mod(PyObject* obj, mod_ty* out, PyArena* arena)
3380 { 3380 {
3381 PyObject* tmp = NULL; 3381 PyObject* tmp = NULL;
3382 int isinstance;
3382 tmp = tmp; 3383 tmp = tmp;
3383 int isinstance;
3384 3384
3385 3385
3386 if (obj == Py_None) { 3386 if (obj == Py_None) {
3387 *out = NULL; 3387 *out = NULL;
3388 return 0; 3388 return 0;
3526 3526
3527 int 3527 int
3528 obj2ast_stmt(PyObject* obj, stmt_ty* out, PyArena* arena) 3528 obj2ast_stmt(PyObject* obj, stmt_ty* out, PyArena* arena)
3529 { 3529 {
3530 PyObject* tmp = NULL; 3530 PyObject* tmp = NULL;
3531 int isinstance;
3531 tmp = tmp; 3532 tmp = tmp;
3532 int isinstance;
3533 3533
3534 int lineno; 3534 int lineno;
3535 int col_offset; 3535 int col_offset;
3536 3536
3537 if (obj == Py_None) { 3537 if (obj == Py_None) {
4723 4723
4724 int 4724 int
4725 obj2ast_expr(PyObject* obj, expr_ty* out, PyArena* arena) 4725 obj2ast_expr(PyObject* obj, expr_ty* out, PyArena* arena)
4726 { 4726 {
4727 PyObject* tmp = NULL; 4727 PyObject* tmp = NULL;
4728 int isinstance;
4728 tmp = tmp; 4729 tmp = tmp;
4729 int isinstance;
4730 4730
4731 int lineno; 4731 int lineno;
4732 int col_offset; 4732 int col_offset;
4733 4733
4734 if (obj == Py_None) { 4734 if (obj == Py_None) {
5839 5839
5840 int 5840 int
5841 obj2ast_expr_context(PyObject* obj, expr_context_ty* out, PyArena* arena) 5841 obj2ast_expr_context(PyObject* obj, expr_context_ty* out, PyArena* arena)
5842 { 5842 {
5843 PyObject* tmp = NULL; 5843 PyObject* tmp = NULL;
5844 int isinstance;
5844 tmp = tmp; 5845 tmp = tmp;
5845 int isinstance;
5846 5846
5847 isinstance = PyObject_IsInstance(obj, (PyObject *)Load_type); 5847 isinstance = PyObject_IsInstance(obj, (PyObject *)Load_type);
5848 if (isinstance == -1) { 5848 if (isinstance == -1) {
5849 return 1; 5849 return 1;
5850 } 5850 }
5899 5899
5900 int 5900 int
5901 obj2ast_slice(PyObject* obj, slice_ty* out, PyArena* arena) 5901 obj2ast_slice(PyObject* obj, slice_ty* out, PyArena* arena)
5902 { 5902 {
5903 PyObject* tmp = NULL; 5903 PyObject* tmp = NULL;
5904 int isinstance;
5904 tmp = tmp; 5905 tmp = tmp;
5905 int isinstance;
5906 5906
5907 5907
5908 if (obj == Py_None) { 5908 if (obj == Py_None) {
5909 *out = NULL; 5909 *out = NULL;
5910 return 0; 5910 return 0;
6022 6022
6023 int 6023 int
6024 obj2ast_boolop(PyObject* obj, boolop_ty* out, PyArena* arena) 6024 obj2ast_boolop(PyObject* obj, boolop_ty* out, PyArena* arena)
6025 { 6025 {
6026 PyObject* tmp = NULL; 6026 PyObject* tmp = NULL;
6027 int isinstance;
6027 tmp = tmp; 6028 tmp = tmp;
6028 int isinstance;
6029 6029
6030 isinstance = PyObject_IsInstance(obj, (PyObject *)And_type); 6030 isinstance = PyObject_IsInstance(obj, (PyObject *)And_type);
6031 if (isinstance == -1) { 6031 if (isinstance == -1) {
6032 return 1; 6032 return 1;
6033 } 6033 }
6050 6050
6051 int 6051 int
6052 obj2ast_operator(PyObject* obj, operator_ty* out, PyArena* arena) 6052 obj2ast_operator(PyObject* obj, operator_ty* out, PyArena* arena)
6053 { 6053 {
6054 PyObject* tmp = NULL; 6054 PyObject* tmp = NULL;
6055 int isinstance;
6055 tmp = tmp; 6056 tmp = tmp;
6056 int isinstance;
6057 6057
6058 isinstance = PyObject_IsInstance(obj, (PyObject *)Add_type); 6058 isinstance = PyObject_IsInstance(obj, (PyObject *)Add_type);
6059 if (isinstance == -1) { 6059 if (isinstance == -1) {
6060 return 1; 6060 return 1;
6061 } 6061 }
6158 6158
6159 int 6159 int
6160 obj2ast_unaryop(PyObject* obj, unaryop_ty* out, PyArena* arena) 6160 obj2ast_unaryop(PyObject* obj, unaryop_ty* out, PyArena* arena)
6161 { 6161 {
6162 PyObject* tmp = NULL; 6162 PyObject* tmp = NULL;
6163 int isinstance;
6163 tmp = tmp; 6164 tmp = tmp;
6164 int isinstance;
6165 6165
6166 isinstance = PyObject_IsInstance(obj, (PyObject *)Invert_type); 6166 isinstance = PyObject_IsInstance(obj, (PyObject *)Invert_type);
6167 if (isinstance == -1) { 6167 if (isinstance == -1) {
6168 return 1; 6168 return 1;
6169 } 6169 }
6202 6202
6203 int 6203 int
6204 obj2ast_cmpop(PyObject* obj, cmpop_ty* out, PyArena* arena) 6204 obj2ast_cmpop(PyObject* obj, cmpop_ty* out, PyArena* arena)
6205 { 6205 {
6206 PyObject* tmp = NULL; 6206 PyObject* tmp = NULL;
6207 int isinstance;
6207 tmp = tmp; 6208 tmp = tmp;
6208 int isinstance;
6209 6209
6210 isinstance = PyObject_IsInstance(obj, (PyObject *)Eq_type); 6210 isinstance = PyObject_IsInstance(obj, (PyObject *)Eq_type);
6211 if (isinstance == -1) { 6211 if (isinstance == -1) {
6212 return 1; 6212 return 1;
6213 } 6213 }
6358 6358
6359 int 6359 int
6360 obj2ast_excepthandler(PyObject* obj, excepthandler_ty* out, PyArena* arena) 6360 obj2ast_excepthandler(PyObject* obj, excepthandler_ty* out, PyArena* arena)
6361 { 6361 {
6362 PyObject* tmp = NULL; 6362 PyObject* tmp = NULL;
6363 int isinstance;
6363 tmp = tmp; 6364 tmp = tmp;
6364 int isinstance;
6365 6365
6366 int lineno; 6366 int lineno;
6367 int col_offset; 6367 int col_offset;
6368 6368
6369 if (obj == Py_None) { 6369 if (obj == Py_None) {