diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2011-05-15 22:18:38 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2011-05-15 22:18:38 -0700 |
commit | ef3ff03613106225ad047d1dd04219d460e897d9 (patch) | |
tree | 047593beccd3abe17d85254a906a2790c886cbae /src/character.c | |
parent | 07156b3538e4de0baec3adbe498673f92c34fd90 (diff) | |
download | emacs-ef3ff03613106225ad047d1dd04219d460e897d9.tar.gz |
* character.c: Minor spelling and indenting fixes.
Diffstat (limited to 'src/character.c')
-rw-r--r-- | src/character.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/character.c b/src/character.c index a03c081a716..b9595f97ec7 100644 --- a/src/character.c +++ b/src/character.c @@ -476,7 +476,7 @@ lisp_string_width (Lisp_Object string, EMACS_INT precision, i += chars; i_byte += bytes; width += thiswidth; - } + } if (precision > 0) { @@ -683,7 +683,7 @@ parse_str_to_multibyte (const unsigned char *str, EMACS_INT len) } -/* Convert unibyte text at STR of NBYTES bytes to a multibyte text +/* Convert unibyte text at STR of BYTES bytes to a multibyte text that contains the same single-byte characters. It actually converts all 8-bit characters to multibyte forms. It is assured that we can use LEN bytes at STR as a work area and that is @@ -844,6 +844,7 @@ string_escape_byte8 (Lisp_Object string) { if ((MOST_POSITIVE_FIXNUM - nchars) / 3 < byte8_count) string_overflow (); + /* Convert 1-byte sequence of byte8 chars to 4-byte octal. */ val = make_uninit_string (nbytes + byte8_count * 3); } |