emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

pkg 2edc30628a 27/76: Use build_pure_c_string


From: Gerd Moellmann
Subject: pkg 2edc30628a 27/76: Use build_pure_c_string
Date: Fri, 21 Oct 2022 00:16:11 -0400 (EDT)

branch: pkg
commit 2edc30628aaa8c84d16c02d91c6aa49a66f8f19e
Author: Gerd Möllmann <gerd@gnu.org>
Commit: Gerd Möllmann <gerd@gnu.org>

    Use build_pure_c_string
    
    * src/pkg.c (init_pkg_once): Use build_pure_c_string instead of
    build_string.
---
 src/pkg.c | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/src/pkg.c b/src/pkg.c
index 60cd4573ff..2c390d04cd 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);



reply via email to

[Prev in Thread] Current Thread [Next in Thread]