]> git.eshelyaron.com Git - emacs.git/commit
Module API: Don’t require null-terminated strings in make_string.
authorPhilipp Stephani <phst@google.com>
Mon, 22 Apr 2019 13:43:52 +0000 (15:43 +0200)
committerPhilipp Stephani <phst@google.com>
Mon, 22 Apr 2019 13:44:37 +0000 (15:44 +0200)
commitf9659e648cd06a9322b501168b1af8ede7d1ae16
tree78d556c9123a6b16417df082351a0b2cdb9019d1
parentca3ad9746da5ced05e8fd692731ffe4dcb52d7e8
Module API: Don’t require null-terminated strings in make_string.

* emacs-module.c (module_make_string): Use make_unibyte_string, which
doesn’t require its argument to be null-terminated.  Since it always
returns a heap-allocated string, we don’t have to copy it any more
while decoding.
(module_decode): New helper function.
src/emacs-module.c