Changeset 184 for trunk/thune/unix

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/unix/os.c

    r131 r184  
    5757        logic = 1; 
    5858 
    59     ur_setType( tos, UT_LOGIC ); 
     59    ur_initType( tos, UT_LOGIC ); 
    6060    ur_logic(tos) = logic; 
    6161} 
     
    8787            memCpy( str->ptr.c, tmp, len ); 
    8888 
    89             ur_setType( tos, UT_STRING /*UT_FILE*/ ); 
     89            ur_initType( tos, UT_STRING /*UT_FILE*/ ); 
    9090            ur_setSeries( tos, binN, 0 ); 
    9191            return; 
     
    129129        return -1; 
    130130 
    131     ur_setType( res, UT_TIME ); 
     131    ur_initType( res, UT_TIME ); 
    132132    ur_seconds(res) = (double) buf.st_mtime; 
    133133    return 0; 
     
    168168    ur_seconds(tos) = ((double) tp.tv_sec) + ((double) tp.tv_usec) * 0.000001; 
    169169 
    170     ur_setType( tos, UT_TIME ); 
     170    ur_initType( tos, UT_TIME ); 
    171171} 
    172172 
     
    202202        closedir( dir ); 
    203203 
    204         ur_setType(res, UT_BLOCK); 
     204        ur_initType(res, UT_BLOCK); 
    205205        ur_setSeries(res, blkN, 0); 
    206206    }