File tree Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -3404,6 +3404,7 @@ joutput_stmt (cb_tree x)
3404
3404
#endif
3405
3405
int code ;
3406
3406
struct cb_field * f ;
3407
+ int putParen = 0 ;
3407
3408
3408
3409
stack_id = 0 ;
3409
3410
if (x == NULL ) {
@@ -3740,11 +3741,21 @@ joutput_stmt (cb_tree x)
3740
3741
joutput (";\n" );
3741
3742
break ;
3742
3743
case CB_TAG_LIST :
3743
- joutput_indent ("{" );
3744
+ if (x && CB_TREE_TAG (CB_VALUE (x )) == CB_TAG_PERFORM ) {
3745
+ putParen = 0 ;
3746
+ } else {
3747
+ putParen = 1 ;
3748
+ joutput_indent ("{" );
3749
+ }
3750
+
3744
3751
for (; x ; x = CB_CHAIN (x )) {
3745
3752
joutput_stmt (CB_VALUE (x ));
3746
3753
}
3747
- joutput_indent ("}" );
3754
+
3755
+ if (putParen ) {
3756
+ joutput_indent ("}" );
3757
+ }
3758
+
3748
3759
break ;
3749
3760
default :
3750
3761
fprintf (stderr , "Unexpected tree tag %d\n" , CB_TREE_TAG (x ));
You can’t perform that action at this time.
0 commit comments