Hash :
2886cca8
Author :
Date :
2023-01-12T16:51:15
error: Work around an Android problem. * lib/error.in.h: Renamed from lib/error.h. (_GL_ATTRIBUTE_SPEC_PRINTF_ERROR): New macro. (error): Consider HAVE_ERROR and REPLACE_ERROR. (error_at_line): Consider HAVE_ERROR_AT_LINE and REPLACE_ERROR_AT_LINE. * m4/error_h.m4: New file, partially based on m4/error.m4. * m4/error.m4 (gl_ERROR): Remove the test for error_at_line. * modules/error-h: New file. * modules/error (Files): Remove lib/error.h. (Depends-on): Add error-h. Update conditions. (configure.ac): Require gl_ERROR_H. Update condition. * doc/glibc-headers/error.texi: Mention the 'error-h' module. * doc/glibc-functions/error.texi: Mention the Android problem. * config/srclist.txt: Add comment regarding error.h.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
Description:
error and error_at_line functions: Error reporting.
Files:
lib/error.c
m4/error.m4
Depends-on:
error-h
stdio
getprogname
strerror [test $GL_GENERATE_ERROR_H = true]
unistd [test $GL_GENERATE_ERROR_H = true]
msvc-nothrow [test $GL_GENERATE_ERROR_H = true]
configure.ac:
AC_REQUIRE([gl_ERROR_H])
gl_ERROR
gl_CONDITIONAL([GL_COND_OBJ_ERROR], [test $GL_GENERATE_ERROR_H = true])
AM_COND_IF([GL_COND_OBJ_ERROR], [
gl_PREREQ_ERROR
])
m4_ifdef([AM_XGETTEXT_OPTION],
[AM_][XGETTEXT_OPTION([--flag=error:3:c-format])
AM_][XGETTEXT_OPTION([--flag=error_at_line:5:c-format])])
Makefile.am:
if GL_COND_OBJ_ERROR
lib_SOURCES += error.c
endif
Include:
"error.h"
License:
LGPLv2+
Maintainer:
all, glibc