From: Gerd Möllmann Date: Sat, 15 Oct 2022 13:44:05 +0000 (+0200) Subject: Use build_pure_c_string X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=2edc30628aaa8c84d16c02d91c6aa49a66f8f19e;p=emacs.git Use build_pure_c_string * src/pkg.c (init_pkg_once): Use build_pure_c_string instead of build_string. --- diff --git a/src/pkg.c b/src/pkg.c index 60cd4573ff1..2c390d04cd9 100644 --- a/src/pkg.c +++ b/src/pkg.c @@ -1179,16 +1179,17 @@ init_pkg_once (void) staticpro (&Vpackage_registry); /* PKG-FIXME: Not sure about the purecopy (last arg). */ Vpackage_registry = make_hash_table (hashtest_equal, DEFAULT_HASH_SIZE, - DEFAULT_REHASH_SIZE, DEFAULT_REHASH_THRESHOLD, + DEFAULT_REHASH_SIZE, + DEFAULT_REHASH_THRESHOLD, Qnil, false); - Vemacs_package = make_package (build_string ("emacs")); + Vemacs_package = make_package (build_pure_c_string ("emacs")); staticpro (&Vemacs_package); - Vkeyword_package = make_package (build_string ("keyword")); + Vkeyword_package = make_package (build_pure_c_string ("keyword")); register_package (Vemacs_package); staticpro (&Vkeyword_package); - XPACKAGE (Vkeyword_package)->nicknames = Fcons (build_string (""), Qnil); + XPACKAGE (Vkeyword_package)->nicknames = Fcons (build_pure_c_string (""), Qnil); register_package (Vkeyword_package); staticpro (&Vearmuffs_package);