From 567826bbb2315961b72cc5d586d08b336f5cdea1 Mon Sep 17 00:00:00 2001 From: Chong Yidong Date: Mon, 8 Dec 2008 14:43:45 +0000 Subject: [PATCH] * termchar.h (struct tty): New members termcap_term_buffer and termcap_strings_buffer. * term.c (encode_terminal_code): Free any previous memory blocks before calling xmalloc for encode_terminal_src or encode_terminal_dst. (maybe_fatal): Buffer argument deleted. Don't free buffer here. All callers changed. (init_tty): Store termcap data and string buffers in new struct tty members termcap_term_buffer and termcap_strings_buffer. (delete_tty): Free them. (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst. --- src/ChangeLog | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/ChangeLog b/src/ChangeLog index 8672bb2b240..2fe9652070b 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,19 @@ +2008-12-08 Chong Yidong + + * termchar.h (struct tty): New members termcap_term_buffer and + termcap_strings_buffer. + + * term.c (encode_terminal_code): Free any previous memory blocks + before calling xmalloc for encode_terminal_src or + encode_terminal_dst. + (maybe_fatal): Buffer argument deleted. Don't free buffer here. + All callers changed. + (init_tty): Store termcap data and string buffers in new struct + tty members termcap_term_buffer and termcap_strings_buffer. + (delete_tty): Free them. + (syms_of_term): Initialize encode_terminal_src and + encode_terminal_dst. + 2008-12-07 Seiji Zenitani * nsfns.m (ns_set_background_color): Remove code duplication. -- 2.39.2