diff options
| author | Joakim Verona | 2013-07-14 11:04:49 +0200 |
|---|---|---|
| committer | Joakim Verona | 2013-07-14 11:04:49 +0200 |
| commit | 0bb9bb0841d89fff09820a57369df4cb01b16b43 (patch) | |
| tree | 832bf9fa8415eef0ce464d22b3ee1300cfa90bb1 /src/alloc.c | |
| parent | 3718127221fbbc31f8ebd027ab7c95403dbe9118 (diff) | |
| parent | 3af1c8684ed6e48fbc21481d129e9aa164752c6e (diff) | |
| download | emacs-0bb9bb0841d89fff09820a57369df4cb01b16b43.tar.gz emacs-0bb9bb0841d89fff09820a57369df4cb01b16b43.zip | |
Merge branch 'trunk' into xwidget
Conflicts:
src/xdisp.c
Diffstat (limited to 'src/alloc.c')
| -rw-r--r-- | src/alloc.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/alloc.c b/src/alloc.c index b625e1f27e0..b71cdb98d78 100644 --- a/src/alloc.c +++ b/src/alloc.c | |||
| @@ -247,10 +247,6 @@ enum mem_type | |||
| 247 | 247 | ||
| 248 | #if GC_MARK_STACK || defined GC_MALLOC_CHECK | 248 | #if GC_MARK_STACK || defined GC_MALLOC_CHECK |
| 249 | 249 | ||
| 250 | #if GC_MARK_STACK == GC_USE_GCPROS_CHECK_ZOMBIES | ||
| 251 | #include <stdio.h> /* For fprintf. */ | ||
| 252 | #endif | ||
| 253 | |||
| 254 | /* A unique object in pure space used to make some Lisp objects | 250 | /* A unique object in pure space used to make some Lisp objects |
| 255 | on free lists recognizable in O(1). */ | 251 | on free lists recognizable in O(1). */ |
| 256 | 252 | ||
| @@ -4745,7 +4741,7 @@ valid_pointer_p (void *p) | |||
| 4745 | Unfortunately, we cannot use NULL_DEVICE here, as emacs_write may | 4741 | Unfortunately, we cannot use NULL_DEVICE here, as emacs_write may |
| 4746 | not validate p in that case. */ | 4742 | not validate p in that case. */ |
| 4747 | 4743 | ||
| 4748 | if (pipe (fd) == 0) | 4744 | if (pipe2 (fd, O_CLOEXEC) == 0) |
| 4749 | { | 4745 | { |
| 4750 | bool valid = emacs_write (fd[1], (char *) p, 16) == 16; | 4746 | bool valid = emacs_write (fd[1], (char *) p, 16) == 16; |
| 4751 | emacs_close (fd[1]); | 4747 | emacs_close (fd[1]); |