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):
obj2ast_mod(PyObject* obj, mod_ty* out, PyArena* arena)
{
PyObject* tmp = NULL;
- tmp = tmp;
int isinstance;
+ tmp = tmp;
if (obj == Py_None) {
obj2ast_stmt(PyObject* obj, stmt_ty* out, PyArena* arena)
{
PyObject* tmp = NULL;
- tmp = tmp;
int isinstance;
+ tmp = tmp;
int lineno;
int col_offset;
obj2ast_expr(PyObject* obj, expr_ty* out, PyArena* arena)
{
PyObject* tmp = NULL;
- tmp = tmp;
int isinstance;
+ tmp = tmp;
int lineno;
int col_offset;
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) {
obj2ast_slice(PyObject* obj, slice_ty* out, PyArena* arena)
{
PyObject* tmp = NULL;
- tmp = tmp;
int isinstance;
+ tmp = tmp;
if (obj == Py_None) {
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) {
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) {
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) {
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) {
obj2ast_excepthandler(PyObject* obj, excepthandler_ty* out, PyArena* arena)
{
PyObject* tmp = NULL;
- tmp = tmp;
int isinstance;
+ tmp = tmp;
int lineno;
int col_offset;