Quick Search:

Mode

Context

Displaying 3 lines of context. None | Less | More | Full

Other Diffs

Ignore

Blank Lines Whitespace: Expand:

Diff

1.94
 
1.95
 
MAIN:ragge:20030912151401
 
trees.c
_>407407 
 408408                 case LS:
 409409                 case RS:
<>410 -                case ASG LS:
 411 -                case ASG RS:
  410+                case LSEQ:
  411+                case RSEQ:
412412                         if(tsize(p->n_right->n_type, p->n_right->n_df, p->n_right->n_sue) > SZINT)
 413413                                 p->n_right = r = makety(r, INT, 0, 0, MKSUE(INT));
 414414                         break;
     
 !
456456 
 457457                 case CALL:
 458458                         p->n_right = r = strargs(p->n_right);
<>459 -                case UNARY CALL:
  459+                case UCALL:
460460                         if (!ISPTR(l->n_type))
 461461                                 uerror("illegal function");
 462462                         p->n_type = DECREF(l->n_type);
     
 !
13011301         case ICON :
 13021302         case FCON :
 13031303         case CALL :
<>1304 -        case UNARY CALL:
  1304+        case UCALL:
13051305         case UMUL:
 13061306                 {  return( OTHER ); }
 13071307         case UMINUS:
     
 !
13861386                 else if( mt12 & MPTI ) return( TYPL+LVAL+TYMATCH+PUN );
 13871387                 break;
 13881388 
<>1389 -        case ASG LS:
 1390 -        case ASG RS:
  1389+        case LSEQ:
  1390+        case RSEQ:
13911391                 if( mt12 & MINT ) return( TYPL+LVAL+OTHER );
 13921392                 break;
 13931393 
<>1394 -        case ASG MUL:
 1395 -        case ASG DIV:
  1394+        case MULEQ:
  1395+        case DIVEQ:
13961396                 if( mt12 & MDBI ) return( LVAL+TYMATCH );
 13971397                 break;
 13981398 
<>1399 -        case ASG MOD:
 1400 -        case ASG AND:
 1401 -        case ASG OR:
 1402 -        case ASG ER:
  1399+        case MODEQ:
  1400+        case ANDEQ:
  1401+        case OREQ:
  1402+        case EREQ:
14031403                 if (mt12 & MINT)
 14041404                         return(LVAL+TYMATCH);
 14051405                 break;
 14061406 
<>1407 -        case ASG PLUS:
 1408 -        case ASG MINUS:
  1407+        case PLUSEQ:
  1408+        case MINUSEQ:
14091409         case INCR:
 14101410         case DECR:
 14111411                 if (mt12 & MDBI)
     
 !
18831883                         delasgop(r);
 18841884                         ecode(r);
 18851885                 } else {
<>1886 -                        p->n_right = buildtree(NOASG p->n_op, ccopy(l),
  1886+                        p->n_right = buildtree(UNASG p->n_op, ccopy(l),
18871887                             p->n_right);
 18881888                         p->n_op = ASSIGN;
 18891889                         delasgop(p->n_right);
     
 !
19681968         case STARG:
 19691969         case STASG:
 19701970         case STCALL:
<>1971 -        case UNARY STCALL:
  1971+        case USTCALL:
19721972                 /* print out size */
 19731973                 /* use lhs size, in order to avoid hassles
 19741974                  * with the structure `.' operator
     
 !
20222022         case STARG:
 20232023         case STASG:
 20242024         case STCALL:
<>2025 -        case UNARY STCALL:
  2025+        case USTCALL:
20262026                 /* set up size parameters */
 20272027                 p->n_stsize = (tsize(STRTY,p->n_left->n_df,p->n_left->n_sue)+SZCHAR-1)/SZCHAR;
 20282028                 p->n_stalign = talign(STRTY,p->n_left->n_sue)/SZCHAR;
     
 !
21412141         SNAM(CAST,CAST)
 21422142         SNAM(STRING,STRING)
 21432143         SNAM(ADDROF,U&)
<> 2144+        SNAM(PLUSEQ,+=)
  2145+        SNAM(MINUSEQ,-=)
  2146+        SNAM(MULEQ,*=)
  2147+        SNAM(DIVEQ,/=)
  2148+        SNAM(MODEQ,%=)
  2149+        SNAM(ANDEQ,&=)
  2150+        SNAM(OREQ,|=)
  2151+        SNAM(EREQ,^=)
  2152+        SNAM(LSEQ,<<=)
  2153+        SNAM(RSEQ,>>=)
21442154         default:
 21452155                 cerror("bad copst %d", op);
 21462156         }
     
 !
21752185                 return BITYPE|ASGFLG|ASGOPFLG;
 21762186         case ADDROF:
 21772187                 return UTYPE;
<> 2188+        case PLUSEQ:
  2189+                return BITYPE|ASGFLG|ASGOPFLG|FLOFLG|SIMPFLG|COMMFLG;
  2190+        case MINUSEQ:
  2191+                return BITYPE|FLOFLG|SIMPFLG|ASGFLG|ASGOPFLG;
  2192+        case MULEQ:
  2193+                return BITYPE|FLOFLG|MULFLG|ASGFLG|ASGOPFLG;
  2194+        case OREQ:
  2195+        case EREQ:
  2196+        case ANDEQ:
  2197+                return BITYPE|SIMPFLG|COMMFLG|ASGFLG|ASGOPFLG;
  2198+        case DIVEQ:
  2199+                return BITYPE|FLOFLG|MULFLG|DIVFLG|ASGFLG|ASGOPFLG;
  2200+        case MODEQ:
  2201+                return BITYPE|DIVFLG|ASGFLG|ASGOPFLG;
  2202+        case LSEQ:
  2203+        case RSEQ:
  2204+                return BITYPE|SHFFLG|ASGFLG|ASGOPFLG;
<_21782205         }
 21792206         return 0; /* XXX gcc */
 21802207 }
FishEye: Open Source License registered to PCC.
Your maintenance has expired. You can renew your license at http://www.atlassian.com/fisheye/renew
Atlassian FishEye, CVS analysis. (Version:1.6.3 Build:build-336 2008-11-04) - Administration - Page generated 2014-09-16 11:28 +0200