]> git.eshelyaron.com Git - emacs.git/commit
Simplify str_to_multibyte and related code
authorMattias Engdegård <mattiase@acm.org>
Mon, 11 Jul 2022 11:43:34 +0000 (13:43 +0200)
committerMattias Engdegård <mattiase@acm.org>
Mon, 11 Jul 2022 11:52:01 +0000 (13:52 +0200)
commit5990da629074b09212d7dea31811d0429e3e2fb8
tree4e2081294c1efc440d98ee06187b8a00c3e89c49
parent050252043fe85e12412de311a08f0159cd89e92a
Simplify str_to_multibyte and related code

* src/character.h (str_to_multibyte):
* src/character.c (str_to_multibyte): Remove `nbytes` argument; return
it instead.  Copy forwards.
* src/fns.c (concat_to_string, Fstring_make_multibyte):
Use str_to_multibyte.
(string_make_multibyte): Remove.
(string_to_multibyte):
* src/print.c (print_string):  Adapt calls.
lisp/emacs-lisp/byte-opt.el
src/character.c
src/character.h
src/fns.c
src/print.c