Complete.Org: Mailing Lists: Archives: freeciv-dev: May 2001:
[Freeciv-Dev] [PATCH] _final_ *snprintf cleanup. (PR#774)
Home

[Freeciv-Dev] [PATCH] _final_ *snprintf cleanup. (PR#774)

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev@xxxxxxxxxxx
Cc: bugs@xxxxxxxxxxxxxxxxxxx
Subject: [Freeciv-Dev] [PATCH] _final_ *snprintf cleanup. (PR#774)
From: Gaute B Strokkenes <gs234@xxxxxxxxx>
Date: Fri, 18 May 2001 04:59:34 -0700 (PDT)

The attached patch supercedes all of my previous patches, and does the
following:

  * Use an autoconf test rather than a runtime test to check if a
    given vsnprintf() is suitable.

  * Change vsnprintf() test to accept C89 as well C99 return value
    semantics.

  * Changed vsnprintf wrapper to have C89 return value semantics, even
    if the underlying implementation is C99.

  * Changed all uses of my_vsnprintf() and friends to expect C89
    rather than C99 return values.

The only drawback is that this makes it slighly harder to
cross-compile Freeciv, though in practise I doubt that this is
possible anyway.

Attachment: vsnprintf_autostuff.diff
Description: Text Data

-- 
Big Gaute                               http://www.srcf.ucam.org/~gs234/
Disco oil bussing will create a throbbing naugahide pipeline running
 straight to the tropics from the rug producing regions
 and devalue the dollar!

[Prev in Thread] Current Thread [Next in Thread]