changeset 317:3dfac70ef7e1

asm statement, valued statement syntactically passed.
author kono
date Wed, 16 Jun 2004 21:13:56 +0900
parents 22d92986c7f7
children 9fe0b32a7d57
files Changes mc-parse.c
diffstat 2 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/Changes	Wed Jun 16 13:15:01 2004 +0900
+++ b/Changes	Wed Jun 16 21:13:56 2004 +0900
@@ -4967,3 +4967,4 @@
 無視ってもいいんだけど...
 
 association list を使って、unwind すれば良いんだけどね。
+それは、全体的に手直しした方が良い。後回し。
--- a/mc-parse.c	Wed Jun 16 13:15:01 2004 +0900
+++ b/mc-parse.c	Wed Jun 16 21:13:56 2004 +0900
@@ -3149,7 +3149,9 @@
 	break;
     case LPAR:
 	conv->lpar_();
-	if(typeid(getsym(0))) { /* cast */
+	getsym(0);
+	if(sym==VOLATILE) getsym(0);
+	if(typeid(sym)) { /* cast */
 	    t=typename();
 	    conv->return_type_(t,0,0);
 	    conv->rpar_();
@@ -3171,7 +3173,6 @@
 	    return e1;
 	} else if (sym==LC) {
 	    // statement in expression
-	    getsym(0);
 	    docomp(1);
 	    e1 = lastexp; lastexp = 0;
 	} else {