Lines Matching refs:statement
37 static void copy_statement(struct statement *src, struct statement *dst);
46 static struct statement * dup_statement(struct statement *stmt)
48 struct statement *dup = alloc_statement(stmt->pos, stmt->type);
197 struct statement *stmt = alloc_statement(expr->pos, STMT_COMPOUND);
198 copy_statement(expr->statement, stmt);
200 expr->statement = stmt;
219 /* Initializer list statement */
331 static struct statement *copy_one_statement(struct statement *stmt)
340 struct statement *newstmt = dup_statement(stmt);
369 struct statement *new = alloc_statement(stmt->pos, STMT_COMPOUND);
376 struct statement *valt = stmt->if_true;
377 struct statement *valf = stmt->if_false;
414 struct statement *switch_stmt = copy_one_statement(stmt->switch_statement);
460 warning(stmt->pos, "trying to copy statement type %d", stmt->type);
467 * Copy a statement tree from 'src' to 'dst', where both
475 static void copy_statement(struct statement *src, struct statement *dst)
477 struct statement *stmt;
518 struct statement *stmt = alloc_statement(expr->pos, STMT_COMPOUND);
533 expr->statement = stmt;
559 struct statement *decl = alloc_statement(expr->pos, STMT_DECLARATION);