mirror of
https://git.savannah.gnu.org/git/gnulib.git
synced 2025-08-08 17:22:05 +03:00
* lib/error.c: Merge changes since 2018 from glibc. ----- The following changes are taken from glibc: (__error_internal, __error_at_line_internal): New functions, with most of the old error and error_at_line_internal but with va_list and with a new trailing mode_args, for wide character mode. (error_tail): Add trailing arg. (error_tail, __error_internal, __error_at_line_internal): Redo _LIBC implementation with respect to cancelation. [_LIBC]: Include <libc-lock.h>, not <bits/libc-lock.h>. ----- The following changes are specific to Gnulib: (__error_internal, __error_at_line_internal, error_tail) [!_LIBC]: Use macros to define away the new trailing arg, and to name the internal functions to verror and verror_at_line. (verror, verror_at_line) [!_LIBC]: Undef so that we omit the __gl_error_call business when defining these functions. * lib/error.in.h: Include stdarg.h. (verror, verror_at_line): New decls and macros. * m4/error_h.m4 ([gl_ERROR_H]): Always compile error.c if the verror module is also present. * modules/verror (Files, lib_SOURCES): Remove lib/verror.h, lib/verror.c. (Depends-on): Remove stdio, xvasprintf. (configure.ac-early): Define gl_HAVE_MODULE_VERROR so that the error module compiles error.c. Not sure if this is the standard way to do this, but it seems to work. * modules/verror (Include), tests/test-verror.c: Include error.h, not verror.h.
27 lines
394 B
Plaintext
27 lines
394 B
Plaintext
Description:
|
|
verror and verror_at_line functions: Error reporting with va_list.
|
|
|
|
Files:
|
|
|
|
Depends-on:
|
|
error
|
|
|
|
configure.ac-early:
|
|
AC_DEFUN([gl_HAVE_MODULE_VERROR])
|
|
|
|
configure.ac:
|
|
m4_ifdef([AM_XGETTEXT_OPTION],
|
|
[AM_][XGETTEXT_OPTION([--flag=verror:3:c-format])
|
|
AM_][XGETTEXT_OPTION([--flag=verror_at_line:5:c-format])])
|
|
|
|
Makefile.am:
|
|
|
|
Include:
|
|
<error.h>
|
|
|
|
License:
|
|
GPL
|
|
|
|
Maintainer:
|
|
Eric Blake
|