diff options
| author | Kenichi Handa | 2002-03-01 01:37:55 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2002-03-01 01:37:55 +0000 |
| commit | 40fbd2544a7ef141999e7915f42c0582a277c14e (patch) | |
| tree | 3eab27c99db7d2e7b8838420d80d02785490f38f /src | |
| parent | 222b06302b3e1eb283fac9193ac4651b7fa6fee1 (diff) | |
| download | emacs-40fbd2544a7ef141999e7915f42c0582a277c14e.tar.gz emacs-40fbd2544a7ef141999e7915f42c0582a277c14e.zip | |
Include "character.h" instead of "charset.h".
(Fchar_to_string): Always call CHAR_STRING.
Diffstat (limited to 'src')
| -rw-r--r-- | src/editfns.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/editfns.c b/src/editfns.c index dabd920e947..2c4bae4808a 100644 --- a/src/editfns.c +++ b/src/editfns.c | |||
| @@ -38,7 +38,7 @@ Boston, MA 02111-1307, USA. */ | |||
| 38 | #include "lisp.h" | 38 | #include "lisp.h" |
| 39 | #include "intervals.h" | 39 | #include "intervals.h" |
| 40 | #include "buffer.h" | 40 | #include "buffer.h" |
| 41 | #include "charset.h" | 41 | #include "character.h" |
| 42 | #include "coding.h" | 42 | #include "coding.h" |
| 43 | #include "frame.h" | 43 | #include "frame.h" |
| 44 | #include "window.h" | 44 | #include "window.h" |
| @@ -175,9 +175,7 @@ usage: (char-to-string CHAR) */) | |||
| 175 | 175 | ||
| 176 | CHECK_NUMBER (character); | 176 | CHECK_NUMBER (character); |
| 177 | 177 | ||
| 178 | len = (SINGLE_BYTE_CHAR_P (XFASTINT (character)) | 178 | len = CHAR_STRING (XFASTINT (character), str); |
| 179 | ? (*str = (unsigned char)(XFASTINT (character)), 1) | ||
| 180 | : char_to_string (XFASTINT (character), str)); | ||
| 181 | return make_string_from_bytes (str, 1, len); | 179 | return make_string_from_bytes (str, 1, len); |
| 182 | } | 180 | } |
| 183 | 181 | ||