[Fribidi-discuss] Building fribidi on OSF1 alpha: snprintf

Behdad Esfahbod behdad at bamdad.org
Wed Jan 23 04:53:23 EST 2002


On Wed, 23 Jan 2002, Omer Zak wrote:
> Hello Nadav,
> On Wed, 23 Jan 2002, Nadav Har'El wrote:
[snip]
> > Why not use snprintf, and if snprintf is not available (you ARE using
> > autoconf, aren't you?) #define it to be sprintf?
> 
> Except for a minor detail, I wholeheartedly agree with this suggestion.
> The minor detail is that support for macros with variable number of
> arguments is needed.  gcc supports this, but some other platforms may not
> support this.
> 
> FriBidi does use autoconf.
> 
> The best solution to the problem is to find source code which implements
> snprintf in terms of vsprintf (and varargs macros).  Then have autoconf
> add this snprintf implementation (preferably with a warning written in
> bright red blood on the display) if the system doesn't support snprintf.

FriBidi uses snprintf just in fribidi_create_*.f which are not part of 
the library, and rarely used, just before making fribidi.  And I have 
replaced them with really safe sprintfs. Don't worry about it ;-).




>                                              --- Omer
> Famous last words:  "It would not happen to me."
> WARNING TO SPAMMERS:  at http://www.zak.co.il/spamwarning.html
> 
> 
> _______________________________________________
> Fribidi-discuss mailing list
> Fribidi-discuss at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/fribidi-discuss
> 

-- 
Behdad Esfahbod				3 Bahman 1380, 2002 Jan 23 
<behdad at bamdad dot org>		[Finger for Geek Code]

You have to know how to accept rejection and reject acceptance.
	-- Ray Bradbury, advice to writers 





More information about the FriBidi mailing list