]> Savannah Git Hosting - gnulib.git/commit
mbrtowc: Refactor to share code with mbrtoc32.
authorBruno Haible <bruno@clisp.org>
Sat, 4 Jan 2020 01:31:39 +0000 (02:31 +0100)
committerBruno Haible <bruno@clisp.org>
Sat, 4 Jan 2020 01:32:15 +0000 (02:32 +0100)
commit40f39973fc0399aa45775ca26564948f77678ab5
tree9de5f9c9b734032570edfce30ecb905c043cdc15
parent2bcac6083ddcadd62a83f3928974364cacce5d17
mbrtowc: Refactor to share code with mbrtoc32.

* lib/mbrtowc-impl.h: New file, extracted from lib/mbrtowc.c.
* lib/mbrtowc-impl-utf8.h: Likewise.
* lib/mbrtowc.c (mbrtowc): Define macro FITS_IN_CHAR_TYPE. Include
mbrtowc-impl.h.
* modules/mbrtowc (Files): Add the new files.
ChangeLog
lib/mbrtowc-impl-utf8.h [new file with mode: 0644]
lib/mbrtowc-impl.h [new file with mode: 0644]
lib/mbrtowc.c
modules/mbrtowc