Changeset 184 for trunk/thune/files.c

Show
Ignore:
Timestamp:
06/12/06 01:58:22 (3 years ago)
Author:
krobillard
Message:

Thune -

Word lookup now uses an ordered binary search.
Renamed ur_setType as ur_initType.
Some error reporting improvements in eval.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/thune/files.c

    r89 r184  
    5858            if( ctx.vblkN ) 
    5959            { 
    60                 ur_setType( a1, UT_PORT ); 
     60                ur_initType( a1, UT_PORT ); 
    6161                a1->DEVICE_CLASS = it - ((OPortDevice**) arr->buf); 
    6262                a1->ctx          = ctx; 
     
    9797        logic = 1; 
    9898 
    99     ur_setType(tos, UT_LOGIC); 
     99    ur_initType(tos, UT_LOGIC); 
    100100    ur_logic(tos) = logic; 
    101101} 
     
    118118    else 
    119119    { 
    120         ur_setType(tos, UT_INT); 
     120        ur_initType(tos, UT_INT); 
    121121        ur_int(tos) = size; 
    122122    } 
     
    136136        status = 0; 
    137137 
    138     ur_setType(tos, UT_LOGIC); 
     138    ur_initType(tos, UT_LOGIC); 
    139139    ur_logic(tos) = status; 
    140140} 
     
    379379                    buf->used = n; 
    380380 
    381                     ur_setType( tos, UT_STRING ); 
     381                    ur_initType( tos, UT_STRING ); 
    382382                    //orRefineSet(REF_READ_BINARY) ? UT_BINARY : UT_STRING 
    383383                    ur_setSeries( tos, binN, 0 ); 
     
    579579    } 
    580580 
    581     ur_setType( tos, UT_BINARY ); 
     581    ur_initType( tos, UT_BINARY ); 
    582582    ur_setSeries( tos, binN, 0 ); 
    583583}