comparison Python/Python-ast.c @ 66255:b9be45f433b9

c89 declarations
author Benjamin Peterson <benjamin@python.org>
date Sat, 20 Nov 2010 02:01:45 +0000
parents e37344a8f0c9
children c64ed6da48b9
comparison
equal deleted inserted replaced
66253:e37344a8f0c9 66255:b9be45f433b9
3373 3373
3374 int 3374 int
3375 obj2ast_mod(PyObject* obj, mod_ty* out, PyArena* arena) 3375 obj2ast_mod(PyObject* obj, mod_ty* out, PyArena* arena)
3376 { 3376 {
3377 PyObject* tmp = NULL; 3377 PyObject* tmp = NULL;
3378 int isinstance;
3378 tmp = tmp; 3379 tmp = tmp;
3379 int isinstance;
3380 3380
3381 3381
3382 if (obj == Py_None) { 3382 if (obj == Py_None) {
3383 *out = NULL; 3383 *out = NULL;
3384 return 0; 3384 return 0;
3522 3522
3523 int 3523 int
3524 obj2ast_stmt(PyObject* obj, stmt_ty* out, PyArena* arena) 3524 obj2ast_stmt(PyObject* obj, stmt_ty* out, PyArena* arena)
3525 { 3525 {
3526 PyObject* tmp = NULL; 3526 PyObject* tmp = NULL;
3527 int isinstance;
3527 tmp = tmp; 3528 tmp = tmp;
3528 int isinstance;
3529 3529
3530 int lineno; 3530 int lineno;
3531 int col_offset; 3531 int col_offset;
3532 3532
3533 if (obj == Py_None) { 3533 if (obj == Py_None) {
4718 4718
4719 int 4719 int
4720 obj2ast_expr(PyObject* obj, expr_ty* out, PyArena* arena) 4720 obj2ast_expr(PyObject* obj, expr_ty* out, PyArena* arena)
4721 { 4721 {
4722 PyObject* tmp = NULL; 4722 PyObject* tmp = NULL;
4723 int isinstance;
4723 tmp = tmp; 4724 tmp = tmp;
4724 int isinstance;
4725 4725
4726 int lineno; 4726 int lineno;
4727 int col_offset; 4727 int col_offset;
4728 4728
4729 if (obj == Py_None) { 4729 if (obj == Py_None) {
5834 5834
5835 int 5835 int
5836 obj2ast_expr_context(PyObject* obj, expr_context_ty* out, PyArena* arena) 5836 obj2ast_expr_context(PyObject* obj, expr_context_ty* out, PyArena* arena)
5837 { 5837 {
5838 PyObject* tmp = NULL; 5838 PyObject* tmp = NULL;
5839 int isinstance;
5839 tmp = tmp; 5840 tmp = tmp;
5840 int isinstance;
5841 5841
5842 isinstance = PyObject_IsInstance(obj, (PyObject *)Load_type); 5842 isinstance = PyObject_IsInstance(obj, (PyObject *)Load_type);
5843 if (isinstance == -1) { 5843 if (isinstance == -1) {
5844 return 1; 5844 return 1;
5845 } 5845 }
5894 5894
5895 int 5895 int
5896 obj2ast_slice(PyObject* obj, slice_ty* out, PyArena* arena) 5896 obj2ast_slice(PyObject* obj, slice_ty* out, PyArena* arena)
5897 { 5897 {
5898 PyObject* tmp = NULL; 5898 PyObject* tmp = NULL;
5899 int isinstance;
5899 tmp = tmp; 5900 tmp = tmp;
5900 int isinstance;
5901 5901
5902 5902
5903 if (obj == Py_None) { 5903 if (obj == Py_None) {
5904 *out = NULL; 5904 *out = NULL;
5905 return 0; 5905 return 0;
6017 6017
6018 int 6018 int
6019 obj2ast_boolop(PyObject* obj, boolop_ty* out, PyArena* arena) 6019 obj2ast_boolop(PyObject* obj, boolop_ty* out, PyArena* arena)
6020 { 6020 {
6021 PyObject* tmp = NULL; 6021 PyObject* tmp = NULL;
6022 int isinstance;
6022 tmp = tmp; 6023 tmp = tmp;
6023 int isinstance;
6024 6024
6025 isinstance = PyObject_IsInstance(obj, (PyObject *)And_type); 6025 isinstance = PyObject_IsInstance(obj, (PyObject *)And_type);
6026 if (isinstance == -1) { 6026 if (isinstance == -1) {
6027 return 1; 6027 return 1;
6028 } 6028 }
6045 6045
6046 int 6046 int
6047 obj2ast_operator(PyObject* obj, operator_ty* out, PyArena* arena) 6047 obj2ast_operator(PyObject* obj, operator_ty* out, PyArena* arena)
6048 { 6048 {
6049 PyObject* tmp = NULL; 6049 PyObject* tmp = NULL;
6050 int isinstance;
6050 tmp = tmp; 6051 tmp = tmp;
6051 int isinstance;
6052 6052
6053 isinstance = PyObject_IsInstance(obj, (PyObject *)Add_type); 6053 isinstance = PyObject_IsInstance(obj, (PyObject *)Add_type);
6054 if (isinstance == -1) { 6054 if (isinstance == -1) {
6055 return 1; 6055 return 1;
6056 } 6056 }
6153 6153
6154 int 6154 int
6155 obj2ast_unaryop(PyObject* obj, unaryop_ty* out, PyArena* arena) 6155 obj2ast_unaryop(PyObject* obj, unaryop_ty* out, PyArena* arena)
6156 { 6156 {
6157 PyObject* tmp = NULL; 6157 PyObject* tmp = NULL;
6158 int isinstance;
6158 tmp = tmp; 6159 tmp = tmp;
6159 int isinstance;
6160 6160
6161 isinstance = PyObject_IsInstance(obj, (PyObject *)Invert_type); 6161 isinstance = PyObject_IsInstance(obj, (PyObject *)Invert_type);
6162 if (isinstance == -1) { 6162 if (isinstance == -1) {
6163 return 1; 6163 return 1;
6164 } 6164 }
6197 6197
6198 int 6198 int
6199 obj2ast_cmpop(PyObject* obj, cmpop_ty* out, PyArena* arena) 6199 obj2ast_cmpop(PyObject* obj, cmpop_ty* out, PyArena* arena)
6200 { 6200 {
6201 PyObject* tmp = NULL; 6201 PyObject* tmp = NULL;
6202 int isinstance;
6202 tmp = tmp; 6203 tmp = tmp;
6203 int isinstance;
6204 6204
6205 isinstance = PyObject_IsInstance(obj, (PyObject *)Eq_type); 6205 isinstance = PyObject_IsInstance(obj, (PyObject *)Eq_type);
6206 if (isinstance == -1) { 6206 if (isinstance == -1) {
6207 return 1; 6207 return 1;
6208 } 6208 }
6353 6353
6354 int 6354 int
6355 obj2ast_excepthandler(PyObject* obj, excepthandler_ty* out, PyArena* arena) 6355 obj2ast_excepthandler(PyObject* obj, excepthandler_ty* out, PyArena* arena)
6356 { 6356 {
6357 PyObject* tmp = NULL; 6357 PyObject* tmp = NULL;
6358 int isinstance;
6358 tmp = tmp; 6359 tmp = tmp;
6359 int isinstance;
6360 6360
6361 int lineno; 6361 int lineno;
6362 int col_offset; 6362 int col_offset;
6363 6363
6364 if (obj == Py_None) { 6364 if (obj == Py_None) {