changeset 71:be313430f90b

*** empty log message ***
author kono
date Mon, 24 Feb 2003 11:59:26 +0900
parents 2e84590720a6
children 3b5d293cea36
files conv/c.c mc-parse.c
diffstat 2 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/conv/c.c	Mon Feb 24 11:42:53 2003 +0900
+++ b/conv/c.c	Mon Feb 24 11:59:26 2003 +0900
@@ -387,12 +387,11 @@
 
 void
 switch_body_(){
-    fprintf(vout,") {");
+    fprintf(vout,")");
 }
 
 void
 switch_end_(){
-    fprintf(vout,"}");
 }
 
 void
--- a/mc-parse.c	Mon Feb 24 11:42:53 2003 +0900
+++ b/mc-parse.c	Mon Feb 24 11:59:26 2003 +0900
@@ -1275,8 +1275,8 @@
     slfree=lfree;
     bexpr(expr(0),0,l1=fwdlabel());
     lfree=slfree;
+    conv->if_then_();
     checksym(RPAR);
-    conv->if_then_();
     statement();
     checkret();
     if(sym==ELSE) {	
@@ -1499,6 +1499,8 @@
     int slfree,e,e1;
 
     if(getsym()==SM) {	
+	conv->return_();
+	conv->return_end_();
 	getsym();
 	retpending = 1;
 	return;