• Home
Name Date Size #Lines LOC

..--

gl_cv_cc_double_expbit0/12-May-2024-10298

gl_cv_func_frexp_works/12-May-2024-111108

gl_cv_func_frexpl_works/12-May-2024-142135

gl_cv_func_ldexpl_works/12-May-2024-5851

gl_cv_func_printf_directive_a/12-May-2024-9590

gl_cv_func_printf_directive_f/12-May-2024-8278

gl_cv_func_printf_directive_ls/12-May-2024-8379

gl_cv_func_printf_enomem/12-May-2024-7470

gl_cv_func_printf_flag_grouping/12-May-2024-3834

gl_cv_func_printf_flag_leftadjust/12-May-2024-4036

gl_cv_func_printf_flag_zero/12-May-2024-4137

gl_cv_func_printf_infinite/12-May-2024-136132

gl_cv_func_printf_infinite_long_double/12-May-2024-209204

gl_cv_func_printf_long_double/12-May-2024-5147

gl_cv_func_printf_precision/12-May-2024-5551

gl_cv_long_double_equals_double/12-May-2024-2521

gl_extern_inline/12-May-2024-10493

READMED12-May-20242.1 KiB8873

arg-nonnull.hD12-May-20241.2 KiB277

asnprintf.cD12-May-20241.1 KiB3714

c++defs.hD12-May-202414.1 KiB317161

float+.hD12-May-20245.5 KiB148108

fpucw.hD12-May-20244.6 KiB10935

frexp.cD12-May-2024342 2318

frexpl.cD12-May-2024349 2220

g-gnulib.hD12-May-20241.4 KiB4721

glib-gnulib.patchD12-May-202415.9 KiB461422

gnulib_math.h.inD12-May-202468.8 KiB2,4522,286

isinf.cD12-May-2024449 3126

isnan.cD12-May-20246.9 KiB190123

isnand-nolibm.hD12-May-20241.2 KiB3414

isnand.cD12-May-2024919 234

isnanf-nolibm.hD12-May-20241.5 KiB4118

isnanf.cD12-May-2024868 212

isnanl-nolibm.hD12-May-20241.2 KiB3414

isnanl.cD12-May-2024949 245

meson.buildD12-May-20249 KiB372329

printf-args.cD12-May-20246.4 KiB190142

printf-args.hD12-May-20243.8 KiB159112

printf-frexp.cD12-May-20245.2 KiB191129

printf-frexp.hD12-May-20241.1 KiB241

printf-frexpl.cD12-May-20241.1 KiB3813

printf-frexpl.hD12-May-20241.1 KiB241

printf-parse.cD12-May-202421.6 KiB641509

printf-parse.hD12-May-20245.1 KiB194135

printf.cD12-May-20243.2 KiB14692

printf.hD12-May-20241.6 KiB5332

signbitd.cD12-May-20242.1 KiB6534

signbitf.cD12-May-20242.1 KiB6534

signbitl.cD12-May-20242.1 KiB6534

vasnprintf.cD12-May-2024220 KiB5,6334,540

vasnprintf.hD12-May-20242.9 KiB8024

verify.hD12-May-202410.9 KiB28483

xsize.cD12-May-202478 43

xsize.hD12-May-20243.6 KiB12058

README

1The files
2
3 asnprintf.c
4 printf-args.c
5 printf-args.h
6 printf-parse.c
7 printf-parse.h
8 vasnprintf.c
9 vasnprintf.h
10
11are taken from the vasnprintf module of the GNUlib package, which can
12be found at:
13
14 http://www.gnu.org/software/gnulib/
15
16All files have been modified to include g-gnulib.h.
17
18vasnprintf.c has also been modified to include support for long long
19printing if the system printf doesn't. This code is protected by
20#ifndef HAVE_LONG_LONG_FORMAT.
21
22Code has been added to printf-args.[ch], printf-parse.c and vasnprintf.c
23to support printing of __int64 values with the I64 format modifier. This
24is protected by #ifdef HAVE_INT64_AND_I64.
25
26The files
27
28 printf.h
29 printf.c
30 g-gnulib.h
31
32have been written by me. printf.[hc] contain implementations of the
33remaining functions in the printf family based on vasnprintf.
34g-gnulib.h is included by all source files in order to move all
35exported functions to the _g_gnulib namespace, replace malloc by
36g_malloc and make sure that snprintf is only used if it implements
37C99 return value semantics.
38
39Matthias Clasen
40November 1, 2003
41
42To update:
43* Create an empty directory, put a configure.ac file into it.
44* Run gnulib-tool --lgpl=2 --import --lib=libgnu --source-base=lib \
45  --m4-base=m4 --doc-base=doc --tests-base=tests --aux-dir=. \
46  --no-conditional-dependencies --no-libtool --macro-prefix=gl \
47  isnand-nolibm isnanf-nolibm isnanl-nolibm printf-frexpl \
48  signbit vasnprintf
49* Then pick out the files that are already in glib/gnulib subdirectory
50  (the rest of the files are not needed):
51
52asnprintf.c
53c++defs.h
54float+.h
55fpucw.h
56gnulib_math.h.in (rename from math.in.h)
57isnan.c
58isnand.c
59isnand-nolibm.h
60isnanf.c
61isnanf-nolibm.h
62isnanl.c
63isnanl-nolibm.h
64printf-args.c
65printf-args.h
66printf-frexp.c
67printf-frexp.h
68printf-frexpl.c
69printf-frexpl.h
70printf-parse.c
71printf-parse.h
72signbitd.c
73signbitf.c
74signbitl.c
75vasnprintf.c
76vasnprintf.h
77verify.h
78xsize.h
79
80* Then look at the glib-gnulib.patch and re-introduce custom glib changes
81  contained in that patch.
82* If gnulib_math.h.in got some new @variables@, these will have to be
83  somehow set in meson.build, otherwise meson would warn about them
84  at configure stage
85
86LRN
87June 06, 2018
88