diff options
| author | Paul Eggert | 2011-05-20 21:33:23 -0700 |
|---|---|---|
| committer | Paul Eggert | 2011-05-20 21:33:23 -0700 |
| commit | de883a701d8f0db9595c6c459fdff9e3bb20bc83 (patch) | |
| tree | aba160bb28d92c3fbec56549e211bd1f705b273e /src/fns.c | |
| parent | 1dcf791fefa6533a06f58a5d2d074f59f06ee9ae (diff) | |
| download | emacs-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -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)) |