summaryrefslogtreecommitdiff
path: root/src/print.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2012-08-15 13:07:04 -0600
committerTom Tromey <tromey@redhat.com>2012-08-15 13:07:04 -0600
commit60a9d2a7728895c1a5bfbc37c3bfa8fde35abe61 (patch)
tree8cecdc7d91f6eb803ce132c4667052de465f9177 /src/print.c
parente160922c665ba65e1dba5b87a924927e61be43b9 (diff)
downloademacs-60a9d2a7728895c1a5bfbc37c3bfa8fde35abe61.tar.gz
This turns thread_state into a pseudovector and updates various bits
of Emacs to cope.
Diffstat (limited to 'src/print.c')
-rw-r--r--src/print.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/print.c b/src/print.c
index 23ad6c0a256..4537521b9fa 100644
--- a/src/print.c
+++ b/src/print.c
@@ -1943,6 +1943,18 @@ print_object (Lisp_Object obj, register Lisp_Object printcharfun, int escapeflag
}
PRINTCHAR ('>');
}
+ else if (THREADP (obj))
+ {
+ strout ("#<thread ", -1, -1, printcharfun);
+ if (STRINGP (XTHREAD (obj)->name))
+ print_string (XTHREAD (obj)->name, printcharfun);
+ else
+ {
+ int len = sprintf (buf, "%p", XTHREAD (obj));
+ strout (buf, len, len, printcharfun);
+ }
+ PRINTCHAR ('>');
+ }
else
{
ptrdiff_t size = ASIZE (obj);