Changeset 455 for branches/thune

Show
Ignore:
Timestamp:
08/27/07 21:05:56 (15 months ago)
Author:
krobillard
Message:

Added ur_sizeofUrlanEnv() & ur_thread() to hide UrlanEnv? structure.
ur_makeStringT() now returns UString*.

Location:
branches/thune/thread_safe
Files:
3 modified

Legend:

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

    r453 r455  
    668668  Special characters are translated. 
    669669*/ 
    670 UIndex ur_makeStringT( UThread* ut, UCell* res, const char* txt, int len ) 
     670UString* ur_makeStringT( UThread* ut, UCell* res, const char* txt, int len ) 
    671671{ 
    672672    UIndex strN; 
     
    711711                ur_initString( res, strN, 0 ); 
    712712                ur_setEncoding( res, UR_ENC_UTF16 ); 
    713                 return strN; 
     713                return str; 
    714714            } 
    715715            *out++ = ch; 
     
    723723 
    724724    ur_initString( res, strN, 0 ); 
    725     return strN; 
     725    return str; 
    726726} 
    727727 
     
    17831783                if( spA ) 
    17841784                { 
    1785                     binN = ur_makeString( res, spA, spB - spA ); 
     1785                    ur_makeString( res, spA, spB - spA ); 
    17861786                } 
    17871787                else 
  • branches/thune/thread_safe/urlan.c

    r453 r455  
    444444#endif 
    445445 
     446 
     447int ur_sizeofUrlanEnv() 
     448{ 
     449    return sizeof(UrlanEnv); 
     450} 
     451 
     452 
     453UThread* ur_thread( UrlanEnv* env ) 
     454{ 
     455    return env->threads; 
     456} 
     457 
     458 
    446459/** 
    447460  Initialize UrlanEnv. 
  • branches/thune/thread_safe/urlan.h

    r453 r455  
    509509extern int ur_encodingCharSize[UR_ENC_COUNT]; 
    510510 
     511int     ur_sizeofUrlanEnv(); 
    511512int     ur_startup( UrlanEnv*, UDatatype* custom, int customCount ); 
    512513void    ur_shutdown( UrlanEnv* ); 
     
    514515void    ur_disable( UrlanEnv*, int envFlags ); 
    515516void    ur_freezeEnv( UThread*, int binCount, int blkCount ); 
     517UThread* ur_thread( UrlanEnv* ); 
    516518UThread* ur_threadMake( UrlanEnv*, int binCount, int blkCount ); 
    517519void     ur_threadFree( UThread* ); 
     
    551553UIndex  ur_makeBinaryT( UThread*, int size, UBinary** ptr ); 
    552554UIndex  ur_makeBinaryFrom( UThread*, const UCell* ); 
    553 UIndex ur_makeStringT( UThread*, UCell*, const char* txt, int len ); 
     555UString* ur_makeStringT( UThread*, UCell*, const char* txt, int len ); 
    554556UIndex  ur_makeVectorT( UThread*, int size, UArray** ptr ); 
    555557UIndex  ur_makeResourceT( UThread*, int dataType, int size, UResource** );