diff options
| author | Paul Eggert | 2019-08-24 11:42:28 -0700 |
|---|---|---|
| committer | Paul Eggert | 2019-08-24 15:55:08 -0700 |
| commit | b62eac0f870754bc75b1162246f9901a04910044 (patch) | |
| tree | 4b392cfe5a8c36c6a735fd25228d3622ccbd17b5 /src/coding.c | |
| parent | aa49aa884053d0e8b33efe265f2aade19d1f3f3d (diff) | |
| download | emacs-b62eac0f870754bc75b1162246f9901a04910044.tar.gz emacs-b62eac0f870754bc75b1162246f9901a04910044.zip | |
extern function cleanup
Most of these functions can be static. A few are unused.
* src/coding.c (encode_string_utf_8, decode_string_utf_8):
Define only if ENABLE_UTF_8_CONVERTER_TEST, as they're
not needed otherwise.
* src/coding.c (encode_string_utf_8, decode_string_utf_8):
* src/data.c (integer_mod):
* src/fns.c (base64_encode_region_1, base64_encode_string_1):
* src/ftfont.c (ftfont_get_fc_charset):
Now static.
* src/sysdep.c (verrprintf): Remove; unused.
Diffstat (limited to 'src/coding.c')
| -rw-r--r-- | src/coding.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/coding.c b/src/coding.c index 2ddd34eb7b6..1c6475828df 100644 --- a/src/coding.c +++ b/src/coding.c | |||
| @@ -9516,6 +9516,10 @@ code_convert_string_norecord (Lisp_Object string, Lisp_Object coding_system, | |||
| 9516 | } | 9516 | } |
| 9517 | 9517 | ||
| 9518 | 9518 | ||
| 9519 | /* #define ENABLE_UTF_8_CONVERTER_TEST */ | ||
| 9520 | |||
| 9521 | #ifdef ENABLE_UTF_8_CONVERTER_TEST | ||
| 9522 | |||
| 9519 | /* Return the gap address of BUFFER. If the gap size is less than | 9523 | /* Return the gap address of BUFFER. If the gap size is less than |
| 9520 | NBYTES, enlarge the gap in advance. */ | 9524 | NBYTES, enlarge the gap in advance. */ |
| 9521 | 9525 | ||
| @@ -9618,7 +9622,7 @@ get_char_bytes (int c, int *len) | |||
| 9618 | If the two arguments are Qnil, return Qnil if STRING has a | 9622 | If the two arguments are Qnil, return Qnil if STRING has a |
| 9619 | non-Unicode character. */ | 9623 | non-Unicode character. */ |
| 9620 | 9624 | ||
| 9621 | Lisp_Object | 9625 | static Lisp_Object |
| 9622 | encode_string_utf_8 (Lisp_Object string, Lisp_Object buffer, | 9626 | encode_string_utf_8 (Lisp_Object string, Lisp_Object buffer, |
| 9623 | bool nocopy, Lisp_Object handle_8_bit, | 9627 | bool nocopy, Lisp_Object handle_8_bit, |
| 9624 | Lisp_Object handle_over_uni) | 9628 | Lisp_Object handle_over_uni) |
| @@ -9873,7 +9877,7 @@ encode_string_utf_8 (Lisp_Object string, Lisp_Object buffer, | |||
| 9873 | If the two arguments are Qnil, return Qnil if STRING has an invalid | 9877 | If the two arguments are Qnil, return Qnil if STRING has an invalid |
| 9874 | sequence. */ | 9878 | sequence. */ |
| 9875 | 9879 | ||
| 9876 | Lisp_Object | 9880 | static Lisp_Object |
| 9877 | decode_string_utf_8 (Lisp_Object string, Lisp_Object buffer, | 9881 | decode_string_utf_8 (Lisp_Object string, Lisp_Object buffer, |
| 9878 | bool nocopy, Lisp_Object handle_8_bit, | 9882 | bool nocopy, Lisp_Object handle_8_bit, |
| 9879 | Lisp_Object handle_over_uni) | 9883 | Lisp_Object handle_over_uni) |
| @@ -10111,10 +10115,6 @@ decode_string_utf_8 (Lisp_Object string, Lisp_Object buffer, | |||
| 10111 | return val; | 10115 | return val; |
| 10112 | } | 10116 | } |
| 10113 | 10117 | ||
| 10114 | /* #define ENABLE_UTF_8_CONVERTER_TEST */ | ||
| 10115 | |||
| 10116 | #ifdef ENABLE_UTF_8_CONVERTER_TEST | ||
| 10117 | |||
| 10118 | /* These functions are useful for testing and benchmarking | 10118 | /* These functions are useful for testing and benchmarking |
| 10119 | encode_string_utf_8 and decode_string_utf_8. */ | 10119 | encode_string_utf_8 and decode_string_utf_8. */ |
| 10120 | 10120 | ||