Login
Username:

Password:

Remember me



Lost Password?

Register now!
Sections
Who's Online
66 user(s) are online (50 user(s) are browsing Forums)

Members: 0
Guests: 66

more...
Support us!
Recent OS4 Files
OS4Depot.net
Report message:*
 

Re: vswprintf implementation (need floating point support)

Subject: Re: vswprintf implementation (need floating point support)
by kas1e on 2019/10/12 21:21:04

@salas00

Is by some luck you have fwprintf() realisation for os4 too ?

I just have some part like this:

if ( mPriorityStdout <= priority_ )
    {
        
fwprintf(stdoutL"%ls"text_);
        if ( 
mUseFlush )
            
fflush(stdout);
    }

    if ( 
mPriorityStderr <= priority_ )
    {
        
fwprintf(stderrL"%ls"text_);
        if ( 
mUseFlush )
            
fflush(stderr);
    }

    if ( 
mFile && mPriorityFile <= priority_ )
    {
        
fwprintf(mFileL"%ls"text_);
        if ( 
mUseFlush )
            
fflush(mFile);
    }


I currently just replace it on:

if ( mPriorityStdout <= priority_ )
    {
        
fprintf(stdout"%ls"text_);
        if ( 
mUseFlush )
            
fflush(stdout);
    }

    if ( 
mPriorityStderr <= priority_ )
    {
        
fprintf(stderr"%ls"text_);
        if ( 
mUseFlush )
            
fflush(stderr);
    }

    if ( 
mFile && mPriorityFile <= priority_ )
    {
        
fprintf(mFile"%ls"text_);
        if ( 
mUseFlush )
            
fflush(mFile);
    }


I.e. remove "w" and "L" things. It works, but not sure how rigth is it.
Powered by XOOPS 2.0 © 2001-2016 The XOOPS Project