diff options
| author | Tom Tromey | 2012-08-15 13:07:04 -0600 |
|---|---|---|
| committer | Tom Tromey | 2012-08-15 13:07:04 -0600 |
| commit | 60a9d2a7728895c1a5bfbc37c3bfa8fde35abe61 (patch) | |
| tree | 8cecdc7d91f6eb803ce132c4667052de465f9177 /src/print.c | |
| parent | e160922c665ba65e1dba5b87a924927e61be43b9 (diff) | |
| download | emacs-60a9d2a7728895c1a5bfbc37c3bfa8fde35abe61.tar.gz emacs-60a9d2a7728895c1a5bfbc37c3bfa8fde35abe61.zip | |
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.c | 12 |
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 | |||
| 1943 | } | 1943 | } |
| 1944 | PRINTCHAR ('>'); | 1944 | PRINTCHAR ('>'); |
| 1945 | } | 1945 | } |
| 1946 | else if (THREADP (obj)) | ||
| 1947 | { | ||
| 1948 | strout ("#<thread ", -1, -1, printcharfun); | ||
| 1949 | if (STRINGP (XTHREAD (obj)->name)) | ||
| 1950 | print_string (XTHREAD (obj)->name, printcharfun); | ||
| 1951 | else | ||
| 1952 | { | ||
| 1953 | int len = sprintf (buf, "%p", XTHREAD (obj)); | ||
| 1954 | strout (buf, len, len, printcharfun); | ||
| 1955 | } | ||
| 1956 | PRINTCHAR ('>'); | ||
| 1957 | } | ||
| 1946 | else | 1958 | else |
| 1947 | { | 1959 | { |
| 1948 | ptrdiff_t size = ASIZE (obj); | 1960 | ptrdiff_t size = ASIZE (obj); |