Mercurial > hg > CbC > old > device
comparison mc-inline.c @ 890:9d5da127f462
inline partial struct init in declaration.
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Sun, 06 Apr 2014 12:49:08 +0900 |
parents | 6a92d3e8a4b5 |
children | 8bdd5061cb8f |
comparison
equal
deleted
inserted
replaced
889:6a92d3e8a4b5 | 890:9d5da127f462 |
---|---|
1497 car(e2),cadr(e2),caddr(e2),cadddr(e2)), | 1497 car(e2),cadr(e2),caddr(e2),cadddr(e2)), |
1498 caddr(e1)); | 1498 caddr(e1)); |
1499 #endif | 1499 #endif |
1500 case CAST: | 1500 case CAST: |
1501 if (e2==0) { | 1501 if (e2==0) { |
1502 // casted empty structure (struct hoge){} | 1502 error(-1); |
1503 // I think we can skip it. It means nothing in declaration | |
1504 // but it make zero fill, we have to handle it later | |
1505 return 0; | 1503 return 0; |
1506 } else if (car(e2)==DECL_DATA) { | 1504 } else if (car(e2)==DECL_DATA) { |
1507 // casted initialized structure (struct hoge){...} | 1505 // casted initialized structure (struct hoge){...} |
1508 return list3(DECL_DATA,pexpr(cadr(e2)),caddr(e2)); | 1506 return list3(DECL_DATA,pexpr(cadr(e2)),caddr(e2)); |
1509 } | 1507 } |