]> git.eshelyaron.com Git - emacs.git/commit
Refactoring: move UTF-8 decoding functions into coding.h.
authorPhilipp Stephani <phst@google.com>
Sun, 28 Apr 2019 10:28:27 +0000 (12:28 +0200)
committerPhilipp Stephani <phst@google.com>
Sun, 28 Apr 2019 10:28:27 +0000 (12:28 +0200)
commit75ee20364c5ed4c175b13debaa53a2ba14168999
tree3bdff98355f169ddf8fe20cc7c60aa13ba682139
parentdbe81e16583adcae664871206694573209540286
Refactoring: move UTF-8 decoding functions into coding.h.

json_make_string and json_build_string are generally useful and not
JSON-specific.  Move them to coding.[ch].

* src/coding.h (build_utf8_string): Move from json.c.

* src/coding.c (make_utf8_string): Move from json.c.

* src/json.c (json_make_string, json_build_string): Move to
coding.[ch].  Split out JSON-specific comment.
(json_parse_error, Fjson_serialize, json_to_lisp): Fix callers.

* src/emacs-module.c (module_make_function, module_make_string): Use
new functions.
(module_decode, module_decode_copy): Remove.
src/coding.c
src/coding.h
src/emacs-module.c
src/json.c