void AddStmt( TREEPTR stmt ) { WalkExprTree( stmt, ChkStringLeaf, NoOp, NoOp, DoConstFold ); stmt = ExprNode( 0, OPR_STMT, stmt ); stmt->op.src_loc = SrcLoc; stmt->op.unroll_count = UnrollCount; if( FirstStmt == NULL ) FirstStmt = stmt; if( LastStmt != NULL ) { LastStmt->left = stmt; } LastStmt = stmt; }
void DumpStmt( TREEPTR tree ) { printf( "line %3.3u: ", tree->op.src_loc.line ); WalkExprTree( tree->right, DumpOpnd, DumpPrefix, DumpInfix, DumpPostfix ); printf( "\n" ); }
void DumpExpr( TREEPTR tree ) { WalkExprTree( tree, DumpOpnd, DumpPrefix, DumpInfix, DumpPostfix ); printf( "\n" ); }