emacs-diffs
[Top][All Lists]
Advanced

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

scratch/igc a326d6aed81 03/10: Staticpro coding_categories


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

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

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

diff --git a/src/coding.c b/src/coding.c
index b21f2ecf00a..80f48f675d5 100644
--- a/src/coding.c
+++ b/src/coding.c
@@ -11848,6 +11848,16 @@ syms_of_coding (void)
 
   Vcoding_category_table = make_nil_vector (coding_category_max);
   staticpro (&Vcoding_category_table);
+  for (size_t i; i < ARRAYELTS (coding_categories); i++)
+    {
+      struct coding_system* cs = &coding_categories[i];
+      Lisp_Object *src = &cs->src_object;
+      *src = Qnil;
+      staticpro (src);
+      Lisp_Object *dst = &cs->dst_object;
+      *dst = Qnil;
+      staticpro (dst);
+    }
   /* 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]