]> Savannah Git Hosting - gnulib.git/commit
fenv-environment: New module.
authorBruno Haible <bruno@clisp.org>
Sun, 5 Nov 2023 14:00:29 +0000 (15:00 +0100)
committerBruno Haible <bruno@clisp.org>
Sun, 5 Nov 2023 14:20:04 +0000 (15:20 +0100)
commitc19cabc0bf5d8e1afec9fd50fee47104000fa3e4
treebb4d8351a62721adf961b107e145e57b8422fc9e
parentfe2c2458ee6d0dcf752281e7230f254e339d0714
fenv-environment: New module.

* lib/fenv.in.h (fenv_t) [hppa]: Remove the __exception field.
(FE_DFL_ENV): Override if <fenv.h> exists but HAVE_FE_DFL_ENV is not
defined.
(fegetenv, fesetenv, feupdateenv, feholdexcept): New declarations.
* lib/fenv-env.c: New file, based on glibc.
* lib/fenv-env-hold.c: New file.
* lib/fenv-env-update.c: New file.
* m4/fenv-environment.m4: New file.
* m4/mathfunc.m4 (gl_MATHFUNC): Handle also the 'fenv_t *' type.
* m4/fenv_h.m4 (gl_FENV_H_DEFAULTS): Initialize REPLACE_FEGETENV,
REPLACE_FEHOLDEXCEPT, REPLACE_FESETENV, REPLACE_FEUPDATEENV.
* modules/fenv (Makefile.am): Substitute REPLACE_FEGETENV,
REPLACE_FEHOLDEXCEPT, REPLACE_FESETENV, REPLACE_FEUPDATEENV.
* modules/fenv-environment: New file.
* doc/posix-functions/fegetenv.texi: Mention the new module and the bugs
on glibc, macOS, AIX.
* doc/posix-functions/feholdexcept.texi: Mention the new module and the
bugs on glibc, musl libc, FreeBSD, AIX, mingw, MSVC.
* doc/posix-functions/fesetenv.texi: Mention the new module and the bugs
on musl libc, FreeBSD, NetBSD, AIX, Solaris, Cygwin, mingw, MSVC.
* doc/posix-functions/feupdateenv.texi: Mention the new module and the
bugs on glibc, musl libc, macOS, FreeBSD, AIX, Solaris, mingw, MSVC.
14 files changed:
ChangeLog
doc/posix-functions/fegetenv.texi
doc/posix-functions/feholdexcept.texi
doc/posix-functions/fesetenv.texi
doc/posix-functions/feupdateenv.texi
lib/fenv-env-hold.c [new file with mode: 0644]
lib/fenv-env-update.c [new file with mode: 0644]
lib/fenv-env.c [new file with mode: 0644]
lib/fenv.in.h
m4/fenv-environment.m4 [new file with mode: 0644]
m4/fenv_h.m4
m4/mathfunc.m4
modules/fenv
modules/fenv-environment [new file with mode: 0644]