diff options
| author | Eli Zaretskii | 2019-08-25 11:08:11 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2019-08-25 11:08:11 +0300 |
| commit | 543ae99fe8cf21a00087ace878dbec909546476b (patch) | |
| tree | a7812187d3f02c8f6858ea2e257411da16465cc4 /src/coding.h | |
| parent | 26703b98f93ff6e0819e43b872bfe63f8753dfcb (diff) | |
| download | emacs-543ae99fe8cf21a00087ace878dbec909546476b.tar.gz emacs-543ae99fe8cf21a00087ace878dbec909546476b.zip | |
Fix a recent change in coding.c
This partially reverts the changes in "extern function cleanup".
* src/coding.c (encode_string_utf_8, decode_string_utf_8): Now
extern again. They should NOT be static, as they are intended
to be used by the likes of json.c, where we need
highly-optimized code for processing UTF-8 strings. E.g.,
decode_string_utf_8 beats make_string_from_utf8 by a factor of
2 to 5 in a large number of scenarios.
Diffstat (limited to 'src/coding.h')
| -rw-r--r-- | src/coding.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/coding.h b/src/coding.h index 70690d42d30..8efddbf55c4 100644 --- a/src/coding.h +++ b/src/coding.h | |||
| @@ -689,6 +689,10 @@ extern Lisp_Object code_convert_string (Lisp_Object, Lisp_Object, | |||
| 689 | Lisp_Object, bool, bool, bool); | 689 | Lisp_Object, bool, bool, bool); |
| 690 | extern Lisp_Object code_convert_string_norecord (Lisp_Object, Lisp_Object, | 690 | extern Lisp_Object code_convert_string_norecord (Lisp_Object, Lisp_Object, |
| 691 | bool); | 691 | bool); |
| 692 | extern Lisp_Object encode_string_utf_8 (Lisp_Object, Lisp_Object, bool, | ||
| 693 | Lisp_Object, Lisp_Object); | ||
| 694 | extern Lisp_Object decode_string_utf_8 (Lisp_Object, Lisp_Object, bool, | ||
| 695 | Lisp_Object, Lisp_Object); | ||
| 692 | extern Lisp_Object encode_file_name (Lisp_Object); | 696 | extern Lisp_Object encode_file_name (Lisp_Object); |
| 693 | extern Lisp_Object decode_file_name (Lisp_Object); | 697 | extern Lisp_Object decode_file_name (Lisp_Object); |
| 694 | extern Lisp_Object raw_text_coding_system (Lisp_Object); | 698 | extern Lisp_Object raw_text_coding_system (Lisp_Object); |