Hash :
49d66352
Author :
Date :
2023-07-17T19:11:38
mbchar: Reduce size of 'struct mbchar'. * modules/mbfile (configure.ac): Define GNULIB_MBFILE as an indicator. * lib/mbchar.h (MBCHAR_BUF_SIZE): Set to 4. (struct mbchar): Disable member 'buf' if the module 'mbfile' is not in use.
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 40 41
Description:
Multibyte character I/O.
Files:
lib/mbfile.h
lib/mbfile.c
m4/mbfile.m4
m4/mbrtowc.m4
Depends-on:
extern-inline
mbchar
mbrtowc
mbsinit
mbszero
wchar
stdbool
configure.ac:
gl_MBFILE
dnl Do not use gl_MODULE_INDICATOR([mbfile]) here: we don't want 'struct mbchar'
dnl to have a different size in lib/ than in tests/.
AC_DEFINE([GNULIB_MBFILE], [1],
[Define to 1 if the gnulib module 'mbfile' is in use.])
Makefile.am:
lib_SOURCES += mbfile.h mbfile.c
Include:
"mbfile.h"
Link:
$(LTLIBUNISTRING) when linking with libtool, $(LIBUNISTRING) otherwise
$(MBRTOWC_LIB)
$(LTLIBC32CONV) when linking with libtool, $(LIBC32CONV) otherwise
License:
LGPL
Maintainer:
all