There's a new module in Gnulib, "vasnprintf-posix", that I believe should allow us to have a working snprintf under mingw. I think that it also adds support for the "z" format type modifier, so that we could get rid of a bunch of casts in calls to printf and related functions.
I haven't tried it yet. Full message available at http://article.gmane.org/gmane.comp.lib.gnulib.bugs/9511 -------------------- Start of forwarded message -------------------- Path: news.gmane.org!not-for-mail From: Bruno Haible <[EMAIL PROTECTED]> Newsgroups: gmane.comp.lib.gnulib.bugs Subject: new module 'vasnprintf-posix' Date: Mon, 5 Mar 2007 00:28:55 +0100 The module vasnprintf-posix defines a vasnprintf() function that supports POSIX format strings with all frills. 2007-03-04 Bruno Haible <[EMAIL PROTECTED]> * modules/vasnprintf-posix: New file. * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h, printf-frexpl.h. (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed. * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from gl_FUNC_VASNPRINTF. (gl_FUNC_VASNPRINTF): Invoke it. * m4/vasnprintf-posix.m4: New file. * m4/printf.m4: New file. =========================== modules/vasnprintf-posix ========================= Description: POSIX compatible vsprintf with automatic memory allocation and bounded output size. Files: m4/vasnprintf-posix.m4 m4/printf.m4 Depends-on: vasnprintf isnan-nolibm isnanl-nolibm printf-frexp printf-frexpl configure.ac: gl_FUNC_VASNPRINTF_POSIX Makefile.am: Include: "vasnprintf.h" License: LGPL Maintainer: Bruno Haible [...] -------------------- End of forwarded message -------------------- -- "...In the UNIX world, people tend to interpret `non-technical user' as meaning someone who's only ever written one device driver." --Daniel Pead _______________________________________________ pspp-dev mailing list [email protected] http://lists.gnu.org/mailman/listinfo/pspp-dev
