Show
Ignore:
Timestamp:
08/07/07 23:33:56 (1 year ago)
Author:
Gregor
Message:

MERGE: DMD 1.019

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/dmdfe/cast.c

    r657 r740  
    8888 */ 
    8989 
    90 int Expression::implicitConvTo(Type *t) 
     90MATCH Expression::implicitConvTo(Type *t) 
    9191{ 
    9292#if 0 
     
    105105    return e->implicitConvTo(t); 
    106106    } 
    107     int match = type->implicitConvTo(t); 
     107    MATCH match = type->implicitConvTo(t); 
    108108    if (match) 
    109109    return match; 
     
    130130 
    131131 
    132 int IntegerExp::implicitConvTo(Type *t) 
     132MATCH IntegerExp::implicitConvTo(Type *t) 
    133133{ 
    134134#if 0 
     
    143143 
    144144    if (type->implicitConvTo(t) == MATCHnomatch && t->ty == Tenum) 
     145    { 
    145146    return MATCHnomatch; 
     147    } 
    146148 
    147149    switch (ty) 
     
    303305 
    304306Lyes: 
     307    //printf("MATCHconvert\n"); 
    305308    return MATCHconvert; 
    306309 
    307310Lno: 
     311    //printf("MATCHnomatch\n"); 
    308312    return MATCHnomatch; 
    309313} 
    310314 
    311 int NullExp::implicitConvTo(Type *t) 
     315MATCH NullExp::implicitConvTo(Type *t) 
    312316{ 
    313317#if 0 
     
    330334} 
    331335 
    332 int StringExp::implicitConvTo(Type *t) 
     336MATCH StringExp::implicitConvTo(Type *t) 
    333337{   MATCH m; 
    334338 
     
    382386} 
    383387 
    384 int ArrayLiteralExp::implicitConvTo(Type *t) 
     388MATCH ArrayLiteralExp::implicitConvTo(Type *t) 
    385389{   MATCH result = MATCHexact; 
    386390 
     
    410414} 
    411415 
    412 int AssocArrayLiteralExp::implicitConvTo(Type *t) 
     416MATCH AssocArrayLiteralExp::implicitConvTo(Type *t) 
    413417{   MATCH result = MATCHexact; 
    414418 
     
    437441} 
    438442 
    439 int AddrExp::implicitConvTo(Type *t) 
     443MATCH AddrExp::implicitConvTo(Type *t) 
    440444{ 
    441445#if 0 
     
    443447    toChars(), type->toChars(), t->toChars()); 
    444448#endif 
    445     int result; 
     449    MATCH result; 
    446450 
    447451    result = type->implicitConvTo(t); 
     
    469473} 
    470474 
    471 int SymOffExp::implicitConvTo(Type *t) 
     475MATCH SymOffExp::implicitConvTo(Type *t) 
    472476{ 
    473477#if 0 
     
    475479    toChars(), type->toChars(), t->toChars()); 
    476480#endif 
    477     int result; 
     481    MATCH result; 
    478482 
    479483    result = type->implicitConvTo(t); 
     
    498502} 
    499503 
    500 int DelegateExp::implicitConvTo(Type *t) 
     504MATCH DelegateExp::implicitConvTo(Type *t) 
    501505{ 
    502506#if 0 
     
    504508    toChars(), type->toChars(), t->toChars()); 
    505509#endif 
    506     int result; 
     510    MATCH result; 
    507511 
    508512    result = type->implicitConvTo(t); 
     
    518522    { 
    519523        if (func && func->overloadExactMatch(t->next)) 
    520         result = 2
     524        result = MATCHexact
    521525    } 
    522526    } 
     
    524528} 
    525529 
    526 int CondExp::implicitConvTo(Type *t) 
    527 { 
    528     int m1; 
    529     int m2; 
     530MATCH CondExp::implicitConvTo(Type *t) 
     531{ 
     532    MATCH m1; 
     533    MATCH m2; 
    530534 
    531535    m1 = e1->implicitConvTo(t);