changeset 100274:c431d4325972

* 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.
author Chong Yidong <cyd@stupidchicken.com>
date Mon, 08 Dec 2008 14:43:45 +0000
parents 1e6cf7bb6873
children 79edd8112818
files src/ChangeLog
diffstat 1 files changed, 16 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog	Sun Dec 07 18:51:01 2008 +0000
+++ b/src/ChangeLog	Mon Dec 08 14:43:45 2008 +0000
@@ -1,3 +1,19 @@
+2008-12-08  Chong Yidong  <cyd@stupidchicken.com>
+
+	* 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  <zenitani@mac.com>
 
 	* nsfns.m (ns_set_background_color): Remove code duplication.