diff options
| author | Richard M. Stallman | 2005-12-11 05:07:16 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2005-12-11 05:07:16 +0000 |
| commit | 7c0ab7d9e44fadf98b42e5dd8bc04211cf4fcb2f (patch) | |
| tree | 1f8a0282599c1c4eefd086381cd5d417baf002b2 /src | |
| parent | 4b1c16c20f557d3a66bde65e42c91b7d537ceb7e (diff) | |
| download | emacs-7c0ab7d9e44fadf98b42e5dd8bc04211cf4fcb2f.tar.gz emacs-7c0ab7d9e44fadf98b42e5dd8bc04211cf4fcb2f.zip | |
Comment and whitespace changes.
Diffstat (limited to 'src')
| -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 f8d2f529bae..96934269d23 100644 --- a/src/alloc.c +++ b/src/alloc.c | |||
| @@ -4499,7 +4499,8 @@ mark_stack () | |||
| 4499 | /* Return 1 if OBJ is a valid lisp object. | 4499 | /* Return 1 if OBJ is a valid lisp object. |
| 4500 | Return 0 if OBJ is NOT a valid lisp object. | 4500 | Return 0 if OBJ is NOT a valid lisp object. |
| 4501 | Return -1 if we cannot validate OBJ. | 4501 | Return -1 if we cannot validate OBJ. |
| 4502 | */ | 4502 | This function can be quite slow, |
| 4503 | so it should only be used in code for manual debugging. */ | ||
| 4503 | 4504 | ||
| 4504 | int | 4505 | int |
| 4505 | valid_lisp_object_p (obj) | 4506 | valid_lisp_object_p (obj) |
| @@ -4525,11 +4526,11 @@ valid_lisp_object_p (obj) | |||
| 4525 | trying), so we trick the o/s to tell us whether p is a valid | 4526 | trying), so we trick the o/s to tell us whether p is a valid |
| 4526 | pointer. Unfortunately, we cannot use NULL_DEVICE here, as | 4527 | pointer. Unfortunately, we cannot use NULL_DEVICE here, as |
| 4527 | emacs_write may not validate p in that case. */ | 4528 | emacs_write may not validate p in that case. */ |
| 4528 | if ((fd = emacs_open("__Valid__Lisp__Object__", O_CREAT | O_WRONLY | O_TRUNC, 0666)) >= 0) | 4529 | if ((fd = emacs_open ("__Valid__Lisp__Object__", O_CREAT | O_WRONLY | O_TRUNC, 0666)) >= 0) |
| 4529 | { | 4530 | { |
| 4530 | int valid = emacs_write(fd, (char *)p, 16) == 16; | 4531 | int valid = (emacs_write (fd, (char *)p, 16) == 16); |
| 4531 | emacs_close(fd); | 4532 | emacs_close (fd); |
| 4532 | unlink("__Valid__Lisp__Object__"); | 4533 | unlink ("__Valid__Lisp__Object__"); |
| 4533 | return valid; | 4534 | return valid; |
| 4534 | } | 4535 | } |
| 4535 | 4536 | ||