summaryrefslogtreecommitdiff
path: root/src/json.c
diff options
context:
space:
mode:
authorPhilipp Stephani <phst@google.com>2020-01-13 00:07:07 +0100
committerPhilipp Stephani <phst@google.com>2020-01-13 00:08:32 +0100
commit3252f3149673bbd6919d5d9a5a672e2f3730741d (patch)
treed3f77ec7ecf0595590f1f1f304fd6ea33ab9a1b7 /src/json.c
parent41d9d51cf5ac5b76c09802388e1691cf489d9d9d (diff)
downloademacs-3252f3149673bbd6919d5d9a5a672e2f3730741d.tar.gz
Use decode_string_utf_8 in emacs-module.c.
Now that decode_string_utf_8 is available, we can use it to signal errors on invalid input. * src/coding.c (syms_of_coding): Move Qutf_8_string_p from json.c since it’s now used outside json.c. * src/emacs-module.c (module_decode_utf_8): New helper function. (module_make_function, module_copy_string_contents): Use it.
Diffstat (limited to 'src/json.c')
-rw-r--r--src/json.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/json.c b/src/json.c
index 2e50ce514fd..30027675580 100644
--- a/src/json.c
+++ b/src/json.c
@@ -1121,7 +1121,6 @@ syms_of_json (void)
DEFSYM (Qstring_without_embedded_nulls_p, "string-without-embedded-nulls-p");
DEFSYM (Qjson_value_p, "json-value-p");
- DEFSYM (Qutf_8_string_p, "utf-8-string-p");
DEFSYM (Qjson_error, "json-error");
DEFSYM (Qjson_out_of_memory, "json-out-of-memory");