diff options
| author | Karoly Lorentey | 2005-12-19 19:57:22 +0000 |
|---|---|---|
| committer | Karoly Lorentey | 2005-12-19 19:57:22 +0000 |
| commit | e93b29568add51c918892153759a1fcd440e85be (patch) | |
| tree | 4ca3494b355f5df3d0cdbe155eeaa3f630f293c1 /src/alloc.c | |
| parent | 8d3cdf56502e89f00e86b02f24422acfa1b34beb (diff) | |
| parent | 3031d8b0bb97f21c79b3022ff3e7564173facd18 (diff) | |
| download | emacs-e93b29568add51c918892153759a1fcd440e85be.tar.gz emacs-e93b29568add51c918892153759a1fcd440e85be.zip | |
Merged from miles@gnu.org--gnu-2005 (patch 169-173, 671-676)
Patches applied:
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-671
Update from CVS
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-672
Update from CVS
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-673
Update from CVS
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-674
Update from CVS
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-675
Update from CVS
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-676
Merge from gnus--rel--5.10
* miles@gnu.org--gnu-2005/gnus--rel--5.10--patch-169
Merge from emacs--cvs-trunk--0
* miles@gnu.org--gnu-2005/gnus--rel--5.10--patch-170
Update from CVS
* miles@gnu.org--gnu-2005/gnus--rel--5.10--patch-171
Update from CVS
* miles@gnu.org--gnu-2005/gnus--rel--5.10--patch-172
Update from CVS
* miles@gnu.org--gnu-2005/gnus--rel--5.10--patch-173
Update from CVS
git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-454
Diffstat (limited to 'src/alloc.c')
| -rw-r--r-- | src/alloc.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/alloc.c b/src/alloc.c index 5ab28bc0cde..5d8ccdc7b7c 100644 --- a/src/alloc.c +++ b/src/alloc.c | |||
| @@ -4500,7 +4500,8 @@ mark_stack () | |||
| 4500 | /* Return 1 if OBJ is a valid lisp object. | 4500 | /* Return 1 if OBJ is a valid lisp object. |
| 4501 | Return 0 if OBJ is NOT a valid lisp object. | 4501 | Return 0 if OBJ is NOT a valid lisp object. |
| 4502 | Return -1 if we cannot validate OBJ. | 4502 | Return -1 if we cannot validate OBJ. |
| 4503 | */ | 4503 | This function can be quite slow, |
| 4504 | so it should only be used in code for manual debugging. */ | ||
| 4504 | 4505 | ||
| 4505 | int | 4506 | int |
| 4506 | valid_lisp_object_p (obj) | 4507 | valid_lisp_object_p (obj) |
| @@ -4526,11 +4527,11 @@ valid_lisp_object_p (obj) | |||
| 4526 | trying), so we trick the o/s to tell us whether p is a valid | 4527 | trying), so we trick the o/s to tell us whether p is a valid |
| 4527 | pointer. Unfortunately, we cannot use NULL_DEVICE here, as | 4528 | pointer. Unfortunately, we cannot use NULL_DEVICE here, as |
| 4528 | emacs_write may not validate p in that case. */ | 4529 | emacs_write may not validate p in that case. */ |
| 4529 | if ((fd = emacs_open("__Valid__Lisp__Object__", O_CREAT | O_WRONLY | O_TRUNC, 0666)) >= 0) | 4530 | if ((fd = emacs_open ("__Valid__Lisp__Object__", O_CREAT | O_WRONLY | O_TRUNC, 0666)) >= 0) |
| 4530 | { | 4531 | { |
| 4531 | int valid = emacs_write(fd, (char *)p, 16) == 16; | 4532 | int valid = (emacs_write (fd, (char *)p, 16) == 16); |
| 4532 | emacs_close(fd); | 4533 | emacs_close (fd); |
| 4533 | unlink("__Valid__Lisp__Object__"); | 4534 | unlink ("__Valid__Lisp__Object__"); |
| 4534 | return valid; | 4535 | return valid; |
| 4535 | } | 4536 | } |
| 4536 | 4537 | ||