emacs-diffs
[Top][All Lists]
Advanced

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

scratch/igc cc25039ac9d 04/10: Staticpro coding_categories only if HAVE_


From: Gerd Moellmann
Subject: scratch/igc cc25039ac9d 04/10: Staticpro coding_categories only if HAVE_MPS
Date: Tue, 30 Apr 2024 15:03:48 -0400 (EDT)

branch: scratch/igc
commit cc25039ac9d1a97bdd7366be06c59d10d7ebfa21
Author: Helmut Eller <eller.helmut@gmail.com>
Commit: Gerd Möllmann <gerd@gnu.org>

    Staticpro coding_categories only if HAVE_MPS
    
    * src/coding.c (syms_of_coding):
---
 src/coding.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/coding.c b/src/coding.c
index 80f48f675d5..05f5be81bc5 100644
--- a/src/coding.c
+++ b/src/coding.c
@@ -11848,6 +11848,7 @@ syms_of_coding (void)
 
   Vcoding_category_table = make_nil_vector (coding_category_max);
   staticpro (&Vcoding_category_table);
+#ifdef HAVE_MPS
   for (size_t i; i < ARRAYELTS (coding_categories); i++)
     {
       struct coding_system* cs = &coding_categories[i];
@@ -11858,6 +11859,7 @@ syms_of_coding (void)
       *dst = Qnil;
       staticpro (dst);
     }
+#endif
   /* Followings are target of code detection.  */
   ASET (Vcoding_category_table, coding_category_iso_7,
        intern_c_string ("coding-category-iso-7"));



reply via email to

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