aboutsummaryrefslogtreecommitdiffstats
path: root/src/fns.c
diff options
context:
space:
mode:
authorPaul Eggert2011-05-20 21:33:23 -0700
committerPaul Eggert2011-05-20 21:33:23 -0700
commitde883a701d8f0db9595c6c459fdff9e3bb20bc83 (patch)
treeaba160bb28d92c3fbec56549e211bd1f705b273e /src/fns.c
parent1dcf791fefa6533a06f58a5d2d074f59f06ee9ae (diff)
downloademacs-de883a701d8f0db9595c6c459fdff9e3bb20bc83.tar.gz
emacs-de883a701d8f0db9595c6c459fdff9e3bb20bc83.zip
merge count_size_as_multibyte, parse_str_to_multibyte
* character.c, character.h (count_size_as_multibyte): Renamed from parse_str_to_multibyte; all uses changed. Check for integer overflow. * insdel.c, lisp.h (count_size_as_multibyte): Remove, since it's now a duplicate of the other. This is more of a character than a buffer op, so better that it's in character.c. * fns.c, print.c: Adjust to above changes.
Diffstat (limited to 'src/fns.c')
-rw-r--r--src/fns.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fns.c b/src/fns.c
index 16dc0fe0de2..d61c1ac7ba9 100644
--- a/src/fns.c
+++ b/src/fns.c
@@ -898,7 +898,7 @@ string_to_multibyte (Lisp_Object string)
898 if (STRING_MULTIBYTE (string)) 898 if (STRING_MULTIBYTE (string))
899 return string; 899 return string;
900 900
901 nbytes = parse_str_to_multibyte (SDATA (string), SBYTES (string)); 901 nbytes = count_size_as_multibyte (SDATA (string), SBYTES (string));
902 /* If all the chars are ASCII, they won't need any more bytes once 902 /* If all the chars are ASCII, they won't need any more bytes once
903 converted. */ 903 converted. */
904 if (nbytes == SBYTES (string)) 904 if (nbytes == SBYTES (string))