changeset 306:1ec915dcd2d1

struct return size error
author kono
date Wed, 09 Jun 2004 15:59:06 +0900
parents 117baacd1ed0
children fda28752d301
files mc-parse.c test/tstdarg.c
diffstat 2 files changed, 5 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/mc-parse.c	Wed Jun 09 15:18:32 2004 +0900
+++ b/mc-parse.c	Wed Jun 09 15:59:06 2004 +0900
@@ -2035,7 +2035,8 @@
 		gexpr(cadr(e),0);
 	    } else {
 		type = caddr(struct_return);
-		e1 = rvalue_t(cadr(struct_return),INT); /* size */
+		// e1 = rvalue_t(cadr(struct_return),INT); /* size */
+		e1 = cadr(struct_return); /* size */
 		gexpr(list4(STASS,rvalue(car(struct_return)),e,e1),0);
 	    }
 	} else {
@@ -4739,8 +4740,8 @@
 		    cheapp--;
 		    getline();
 		}
-	    } else if (c==' '||c=='\t') {
-		cheapp--;
+//	    } else if (c==' '||c=='\t') {
+//		cheapp--;
 	    } else if (c=='\n') {
 		cheapp--;
 		getline();
--- a/test/tstdarg.c	Wed Jun 09 15:18:32 2004 +0900
+++ b/test/tstdarg.c	Wed Jun 09 15:59:06 2004 +0900
@@ -52,5 +52,5 @@
 #endif
     var_args("dddddd",(double)1,(double)2,(double)3,(double)4,(double)5,(double)6);
     var_args("ssssss","1","2","3","4","5","6");
-    
+    return 0; 
 }