Subject: Re: commit - removed snprintf
From: sam th (firstname.lastname@example.org)
Date: Wed Nov 01 2000 - 03:00:47 CST
-----BEGIN PGP SIGNED MESSAGE-----
On Wed, 1 Nov 2000, Caolan McNamara wrote:
> At 10:32 01.11.00 +0400, Vlad Harchev wrote:
> >On Wed, 1 Nov 2000, sam th wrote:
> > Hi Sam,
> > > -----BEGIN PGP SIGNED MESSAGE-----
> > > Hash: SHA1
> > >
> > > Some of the recently committed code included snprintf calls (spec. in
> > > xap_EncodingManager.cpp). Sadly, snprintf is not yet universally
> > > available, and is not present on PPC BeOS. Therefore, these snprintf's
> > > have been replaced by sprintf. If you (Vlad) desperately want snprint,
> > > then you need to find some way to do it so that PPC BeOS still compiles.
> > I think I have a nice idea on how to cleanly use snprintf on one arch and
> >sprintf on other without using #ifdefs - the use of CPP macros.
> Use a configure test and add a snprintf implementation when its not found ?
> its what I do.
> test: http://research.cys.de/autoconf-archive/C_Support/ac_func_snprintf.html
> implementation: http://www.ijs.si/software/snprintf/
Just two problems with this:
1) we don't use autoconf
2) the impl. is under the artistic license, which is non-GPL compatible.
However, if someone does find a freely available and easy to steal
snprintf, I would be amenable to that solution.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.1 (GNU/Linux)
Comment: For info see http://www.gnupg.org
-----END PGP SIGNATURE-----
This archive was generated by hypermail 2b25 : Wed Nov 01 2000 - 02:56:18 CST