changeset 22790:7ab6c2f70b0b

(init_coding): New function. (init_coding_once): Don't initialize conversion_buffer here. It is done in init_coding.
author Kenichi Handa <handa@m17n.org>
date Tue, 21 Jul 1998 01:42:40 +0000
parents 2ba6f9b60ee6
children c796882abd44
files src/coding.c
diffstat 1 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/coding.c	Tue Jul 21 01:42:40 1998 +0000
+++ b/src/coding.c	Tue Jul 21 01:42:40 1998 +0000
@@ -5038,6 +5038,12 @@
 /*** 8. Post-amble ***/
 
 void
+init_coding ()
+{
+  conversion_buffer = (char *) xmalloc (MINIMUM_CONVERSION_BUFFER_SIZE);
+}
+
+void
 init_coding_once ()
 {
   int i;
@@ -5079,7 +5085,6 @@
   iso_code_class[ISO_CODE_CSI] = ISO_control_sequence_introducer;
 
   conversion_buffer_size = MINIMUM_CONVERSION_BUFFER_SIZE;
-  conversion_buffer = (char *) xmalloc (MINIMUM_CONVERSION_BUFFER_SIZE);
 
   setup_coding_system (Qnil, &keyboard_coding);
   setup_coding_system (Qnil, &terminal_coding);