%Fp printf format specifier

Uwe Bonnes bon at elektron.ikp.physik.tu-darmstadt.de
Wed Mar 2 13:24:27 CST 2005


>>>>> "Jesse" == Jesse Allen <the3dfxdude at gmail.com> writes:

    Jesse> On Wed, 2 Mar 2005 11:51:57 -0700, Jesse Allen
    Jesse> <the3dfxdude at gmail.com> wrote:
    >> Right now in current CVS, our *printf will handle any strings.  For
    >> any type numbers (except %n), they are forwarded to libc's printf by


    Jesse> Oops, we handle %p differently too: /* output a pointer */ else
    Jesse> if( flags.Format == 'p' ) { char pointer[10];

    Jesse>             flags.PadZero = 0; if( flags.Alternate )
    Jesse> sprintf(pointer, "0X%08lX", va_arg(valist, long)); else
    Jesse> sprintf(pointer, "%08lX", va_arg(valist, long)); r =
    Jesse> pf_output_format_A( out, pointer, -1, &flags ); }

    Jesse> I don't think it will allow an 'F' to get stuck in an sprintf
    Jesse> call.  If it did, then yeah, calling out libc's sprintf would
    Jesse> mess it up.  Do we have a test case for %Fp?  Uwe, what version
    Jesse> of wine do you got?  I think only an older version would pass it
    Jesse> on.

Most recent CVS...
-- 
Uwe Bonnes                bon at elektron.ikp.physik.tu-darmstadt.de

Institut fuer Kernphysik  Schlossgartenstrasse 9  64289 Darmstadt
--------- Tel. 06151 162516 -------- Fax. 06151 164321 ----------



More information about the wine-devel mailing list