>From 2e284ca8234add2723d0cfaa0594f2be08b7f393 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Fri, 17 Mar 2023 12:47:49 +0100 Subject: [PATCH 4/6] vasnwprintf-posix: New module. * m4/vasnwprintf-posix.m4: New file. * modules/vasnwprintf-posix: New file, based on modules/vasnprintf-posix. --- ChangeLog | 7 +++++++ m4/vasnwprintf-posix.m4 | 21 ++++++++++++++++++++ modules/vasnwprintf-posix | 42 +++++++++++++++++++++++++++++++++++++++ 3 files changed, 70 insertions(+) create mode 100644 m4/vasnwprintf-posix.m4 create mode 100644 modules/vasnwprintf-posix diff --git a/ChangeLog b/ChangeLog index d1a3edde04..ea52155e29 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2023-03-17 Bruno Haible + + vasnwprintf-posix: New module. + * m4/vasnwprintf-posix.m4: New file. + * modules/vasnwprintf-posix: New file, based on + modules/vasnprintf-posix. + 2023-03-17 Bruno Haible vasnprintf-posix: Relicense under LGPLv2+. diff --git a/m4/vasnwprintf-posix.m4 b/m4/vasnwprintf-posix.m4 new file mode 100644 index 0000000000..9561bcf2b6 --- /dev/null +++ b/m4/vasnwprintf-posix.m4 @@ -0,0 +1,21 @@ +# vasnwprintf-posix.m4 serial 1 +dnl Copyright (C) 2007-2023 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +AC_DEFUN([gl_FUNC_VASNWPRINTF_POSIX], +[ + gl_FUNC_VASNWPRINTF + gl_PREREQ_VASNPRINTF_LONG_DOUBLE + gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE + gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE + gl_PREREQ_VASNPRINTF_DIRECTIVE_A + gl_PREREQ_VASNPRINTF_DIRECTIVE_F + gl_PREREQ_VASNPRINTF_DIRECTIVE_LS + gl_PREREQ_VASNPRINTF_FLAG_GROUPING + gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST + gl_PREREQ_VASNPRINTF_FLAG_ZERO + gl_PREREQ_VASNPRINTF_PRECISION + gl_PREREQ_VASNPRINTF_ENOMEM +]) diff --git a/modules/vasnwprintf-posix b/modules/vasnwprintf-posix new file mode 100644 index 0000000000..ca14e64866 --- /dev/null +++ b/modules/vasnwprintf-posix @@ -0,0 +1,42 @@ +Description: +POSIX compatible vswprintf with automatic memory allocation and bounded output +size. + +Comment: +This module should not be used as a dependency from a test module, +otherwise when this module occurs as a tests-related module, it will +have side effects on the compilation of the 'vasnwprintf' module, if +that module occurs among the main modules in lib/. + +Files: +m4/vasnwprintf-posix.m4 +m4/printf.m4 +m4/math_h.m4 + +Depends-on: +vasnwprintf +isnand-nolibm +isnanl-nolibm +frexp-nolibm +frexpl-nolibm +printf-frexp +printf-frexpl +signbit +fpucw +nocrash +printf-safe +multiarch + +configure.ac: +gl_FUNC_VASNWPRINTF_POSIX + +Makefile.am: + +Include: +"vasnwprintf.h" + +License: +LGPLv2+ + +Maintainer: +all -- 2.34.1