]> git.ipfire.org Git - thirdparty/coreutils.git/commit
fold: move multi-byte character reading to a module
authorCollin Funk <collin.funk1@gmail.com>
Mon, 29 Sep 2025 03:16:26 +0000 (20:16 -0700)
committerCollin Funk <collin.funk1@gmail.com>
Wed, 1 Oct 2025 02:45:44 +0000 (19:45 -0700)
commit16a67363898443b03ef62848c30f15bfcc682ca0
tree4d5ddc965d170303e1abff0415804920c47e9407
parent67e9068c5f5fdae5666279717a4c19bdfe5c21de
fold: move multi-byte character reading to a module

* gl/modules/mbbuf: New file.
* gl/lib/mbbuf.c: Likewise.
* gl/lib/mbbuf.h: Likewise.
* gl/local.mk (EXTRA_DIST): Add the new files.
* bootstrap.conf (gnulib_modules): Add mbbuf.
* src/fold.c: Include mbbuf.h.
(fold_file): Use the mbbuf functions instead of calling fread and
handling the input buffer ourselves.
* cfg.mk (exclude_file_name_regexp--sc_preprocessor_indentation)
(exclude_file_name_regexp--sc_GPL_version): Match gl/lib/mbbuf.c and
gl/lib/mbbuf.h.
bootstrap.conf
cfg.mk
gl/lib/mbbuf.c [new file with mode: 0644]
gl/lib/mbbuf.h [new file with mode: 0644]
gl/local.mk
gl/modules/mbbuf [new file with mode: 0644]
src/fold.c