In message <[EMAIL PROTECTED]> on Mon, 13 Mar 2006 10:05:38 +0100, [EMAIL 
PROTECTED] said:

Stefan.Neis> > > Is the patch tested on windows ?
Stefan.Neis> > > "z" modifier - I'm not sure that this is portable.
Stefan.Neis> >   
Stefan.Neis> > if I remember correctly windows doesn't support this
Stefan.Neis> > modifier (at least I was told this as we discussed this
Stefan.Neis> > for another project)
Stefan.Neis> 
Stefan.Neis> I'm not exactly sure, but I believe it's an extension of
Stefan.Neis> glibc (or maybe of C99 ?). At least, it doesn't seem to
Stefan.Neis> be supported by older Unix systems either, e.g. it's
Stefan.Neis> apparently not supported by Solaris 7.

I'm sorry to disrupt this cozy discussion, but does it really matter
if z conforms to some formal standard or not?  After all, we're not
trying to *replace* printf and friends, we're just building something
that works for our purposes and more, and most of all, works
everywhere independently of the current libc.  If we wanted to write a
replacemeent for printf and friends, we wouldn't have prefixed it with
BIO_, and then this discussion would actually be relevant!

My stand on this is that it's good that BIO_printf and friends works
in compatible ways with printf, AND it is a good thing to make use of
good extensions that are available elsewhere even if they aren't part
of a formal standard.

So, the real question is, do we have any use for the z modifier?  That
is the question that should be discussed, not if z is formalised or
not.

In my opinion we do need z, since size_t isn't always unsigned (with
Visual C 6, for example), and that some compilers pester us with
warnings if a size_t is used with a %lu specifier and even break
builds (with Visual C, for instance, last time I battled with this).

Cheers,
Richard

-----
Please consider sponsoring my work on free software.
See http://www.free.lp.se/sponsoring.html for details.

-- 
Richard Levitte                         [EMAIL PROTECTED]
                                        http://richard.levitte.org/

"When I became a man I put away childish things, including
 the fear of childishness and the desire to be very grown up."
                                                -- C.S. Lewis
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [email protected]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to