summaryrefslogtreecommitdiff
path: root/src/print.c
diff options
context:
space:
mode:
authorMattias EngdegÄrd <mattiase@acm.org>2022-07-11 13:43:34 +0200
committerMattias EngdegÄrd <mattiase@acm.org>2022-07-11 13:52:01 +0200
commit5990da629074b09212d7dea31811d0429e3e2fb8 (patch)
tree4e2081294c1efc440d98ee06187b8a00c3e89c49 /src/print.c
parent050252043fe85e12412de311a08f0159cd89e92a (diff)
downloademacs-5990da629074b09212d7dea31811d0429e3e2fb8.tar.gz
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.
Diffstat (limited to 'src/print.c')
-rw-r--r--src/print.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/print.c b/src/print.c
index 9a31e386f5e..b5a621f80aa 100644
--- a/src/print.c
+++ b/src/print.c
@@ -467,7 +467,7 @@ print_string (Lisp_Object string, Lisp_Object printcharfun)
if (chars < bytes)
{
newstr = make_uninit_multibyte_string (chars, bytes);
- str_to_multibyte (SDATA (newstr), SDATA (string), chars, bytes);
+ str_to_multibyte (SDATA (newstr), SDATA (string), chars);
string = newstr;
}
}