Mercurial > hg > xemacs-beta
comparison src/frame.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 | bc4f2511bbea |
children | 19a72041c5ed |
comparison
equal
deleted
inserted
replaced
4845:a3c673c0720b | 4846:a98ca4640147 |
---|---|
272 int UNUSED (escapeflag)) | 272 int UNUSED (escapeflag)) |
273 { | 273 { |
274 struct frame *frm = XFRAME (obj); | 274 struct frame *frm = XFRAME (obj); |
275 | 275 |
276 if (print_readably) | 276 if (print_readably) |
277 printing_unreadable_object ("#<frame %s 0x%x>", | 277 printing_unreadable_lcrecord (obj, XSTRING_DATA (frm->name)); |
278 XSTRING_DATA (frm->name), frm->header.uid); | |
279 | 278 |
280 write_fmt_string (printcharfun, "#<%s-frame ", !FRAME_LIVE_P (frm) ? "dead" : | 279 write_fmt_string (printcharfun, "#<%s-frame ", !FRAME_LIVE_P (frm) ? "dead" : |
281 FRAME_TYPE_NAME (frm)); | 280 FRAME_TYPE_NAME (frm)); |
282 print_internal (frm->name, printcharfun, 1); | 281 print_internal (frm->name, printcharfun, 1); |
283 write_fmt_string (printcharfun, " 0x%x>", frm->header.uid); | 282 write_fmt_string (printcharfun, " 0x%x>", frm->header.uid); |