comparison src/file-coding.c @ 4846:a98ca4640147

clean up object print methods casetab.c, console.c, data.c, database.c, device-msw.c, device.c, eval.c, file-coding.c, frame.c, glyphs.c, gui.c, keymap.c, lisp.h, mule-charset.c, objects.c, print.c, process.c, tooltalk.c, ui-gtk.c, window.c: New function printing_unreadable_lcrecord(). Automatically prints the type name and pointer value of the object. Use it instead of printing_unreadable_object(); make that latter function local to print.c. window.c: During creation, window may have Qt as its buffer. Don't crash if trying to print such a window.
author Ben Wing <ben@xemacs.org>
date Wed, 13 Jan 2010 05:49:13 -0600
parents 5f1c6ca4d05e
children 19a72041c5ed
comparison
equal deleted inserted replaced
4845:a3c673c0720b 4846:a98ca4640147
295 print_coding_system (Lisp_Object obj, Lisp_Object printcharfun, 295 print_coding_system (Lisp_Object obj, Lisp_Object printcharfun,
296 int UNUSED (escapeflag)) 296 int UNUSED (escapeflag))
297 { 297 {
298 Lisp_Coding_System *c = XCODING_SYSTEM (obj); 298 Lisp_Coding_System *c = XCODING_SYSTEM (obj);
299 if (print_readably) 299 if (print_readably)
300 printing_unreadable_object 300 printing_unreadable_lcrecord (obj, 0);
301 ("printing unreadable object #<coding-system 0x%x>", c->header.uid);
302 301
303 write_fmt_string_lisp (printcharfun, "#<coding-system %s ", 1, c->name); 302 write_fmt_string_lisp (printcharfun, "#<coding-system %s ", 1, c->name);
304 print_coding_system_properties (obj, printcharfun); 303 print_coding_system_properties (obj, printcharfun);
305 write_c_string (printcharfun, ">"); 304 write_c_string (printcharfun, ">");
306 } 305 }