Changeset 400

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

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

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • 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; 
  • trunk/thune/make.c

    r362 r400  
    13001300  (select! word sel -- value) 
    13011301  (context block -- value) 
     1302  (vector! count type -- value) 
    13021303*/ 
    13031304UR_CALL_PUB( uc_make ) 
     
    16871688        case UT_VECTOR: 
    16881689        { 
     1690#ifdef LANG_THUNE 
     1691            if( argc == 2 ) 
     1692            { 
     1693                if( !  ur_makeVectorCell( ur_s_prev(tos), res ) ) 
     1694                    goto error; 
     1695                if( ur_is(tos, UT_WORD) && (ur_atom(tos) == UT_DECIMAL) ) 
     1696                    ur_vectorDT(res) = UT_DECIMAL; 
     1697            } 
     1698            else 
     1699#endif 
     1700            { 
    16891701            // Make array before setting res in case GC is called. 
    16901702            if( !  ur_makeVectorCell( tos, res ) ) 
    16911703                goto error; 
     1704            } 
    16921705        } 
    16931706            break;