Changeset 400 for branches/thune

Show
Ignore:
Timestamp:
05/28/07 05:18:08 (18 months ago)
Author:
krobillard
Message:

Thune - Can now pass vector! type to 'make.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/thune/thread_safe/make.c

    r387 r400  
    13421342  (select! word sel -- value) 
    13431343  (context block -- value) 
     1344  (vector! count type -- value) 
    13441345*/ 
    13451346UR_CALL_PUB( uc_make ) 
     
    17271728        case UT_VECTOR: 
    17281729        { 
     1730#ifdef LANG_THUNE 
     1731            if( argc == 2 ) 
     1732            { 
     1733                if( !  ur_makeVectorCell( ut, ur_s_prev(tos), res ) ) 
     1734                    goto error; 
     1735                if( ur_is(tos, UT_WORD) && (ur_atom(tos) == UT_DECIMAL) ) 
     1736                    ur_vectorDT(res) = UT_DECIMAL; 
     1737            } 
     1738            else 
     1739#endif 
     1740            { 
    17291741            // Make array before setting res in case GC is called. 
    17301742            if( !  ur_makeVectorCell( ut, tos, res ) ) 
    17311743                goto error; 
     1744            } 
    17321745        } 
    17331746            break;