Changeset 54 for trunk/orca/error.c

Show
Ignore:
Timestamp:
02/17/06 15:30:01 (3 years ago)
Author:
krobillard
Message:

Now using orDecimal() & orInt() where appropriate.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/orca/error.c

    r42 r54  
    6868                OBlock* vblk = orBlockPtr( ctx.vblkN ); 
    6969                val = vblk->values + wrd; 
    70                 if( val->type == OT_OBJECT ) 
     70                if( orIs(val, OT_OBJECT) ) 
    7171                { 
    7272                    ctx = val->ctx; 
    7373                    blk = 0; 
    7474                } 
    75                 else if( val->type == OT_BLOCK ) 
     75                else if( orIs(val, OT_BLOCK) ) 
    7676                { 
    7777                    orGlobalCtx( ctx ); 
     
    111111void orDisarmNative( OValue* a1 ) 
    112112{ 
    113     if( a1->type == OT_ERROR ) 
     113    if( orIs(a1, OT_ERROR) ) 
    114114    { 
    115115        OValue* val; 
     
    119119                            OT_WORD, orEnv->atom_error, 
    120120                            OR_LPATH_END ); 
    121         if( val && (val->type == OT_OBJECT) ) 
     121        if( val && orIs(val, OT_OBJECT) ) 
    122122        { 
    123123            int errType; 
     
    155155                                 OR_LPATH_END ); 
    156156            ++val; 
    157             if( tval && tval->type == OT_BLOCK ) 
     157            if( tval && orIs(tval, OT_BLOCK) ) 
    158158            { 
    159159                OBlock* blk = orBLOCK(tval); 
     
    165165            } 
    166166            orSetTF( val, OT_INTEGER ); 
    167             val->integer = errType; 
     167            orInt(val) = errType; 
    168168end_type: 
    169169 
     
    171171            ++val; 
    172172            orSetTF( val, OT_INTEGER ); 
    173             val->integer = a1->error.msg; 
     173            orInt(val) = a1->error.msg; 
    174174            */ 
    175175