diff options
| author | Jan Djärv | 2004-12-07 21:03:04 +0000 |
|---|---|---|
| committer | Jan Djärv | 2004-12-07 21:03:04 +0000 |
| commit | cf435f39ceb1d6c59d314068e02203b6477f1c2a (patch) | |
| tree | 3e3c677fbaa4518c21b00859886e8b4b0a9e98a8 /src | |
| parent | f415cacdbd53833dff84f8666dcbcb7035fb9320 (diff) | |
| download | emacs-cf435f39ceb1d6c59d314068e02203b6477f1c2a.tar.gz emacs-cf435f39ceb1d6c59d314068e02203b6477f1c2a.zip | |
* emacs.c (Fdump_emacs): Add ! defined (SYSTEM_MALLOC) around
reset_malloc_hooks.
* keyboard.c (handle_async_input, input_available_signal): Add
! defined (SYSTEM_MALLOC) around thread code.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 6 | ||||
| -rw-r--r-- | src/emacs.c | 2 | ||||
| -rw-r--r-- | src/keyboard.c | 4 |
3 files changed, 9 insertions, 3 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 6b3a832e840..28030aef0e3 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,11 @@ | |||
| 1 | 2004-12-07 Jan Dj,Ad(Brv <jan.h.d@swipnet.se> | 1 | 2004-12-07 Jan Dj,Ad(Brv <jan.h.d@swipnet.se> |
| 2 | 2 | ||
| 3 | * emacs.c (Fdump_emacs): Add ! defined (SYSTEM_MALLOC) around | ||
| 4 | reset_malloc_hooks. | ||
| 5 | |||
| 6 | * keyboard.c (handle_async_input, input_available_signal): Add | ||
| 7 | ! defined (SYSTEM_MALLOC) around thread code. | ||
| 8 | |||
| 3 | * alloc.c: Add comment about the reason for (UN)BLOCK_INPUT_ALLOC. | 9 | * alloc.c: Add comment about the reason for (UN)BLOCK_INPUT_ALLOC. |
| 4 | 10 | ||
| 5 | 2004-12-07 Stefan <monnier@iro.umontreal.ca> | 11 | 2004-12-07 Stefan <monnier@iro.umontreal.ca> |
diff --git a/src/emacs.c b/src/emacs.c index b6b7f986e94..8e2443e8f1f 100644 --- a/src/emacs.c +++ b/src/emacs.c | |||
| @@ -2238,7 +2238,7 @@ You must run Emacs in batch mode in order to dump it. */) | |||
| 2238 | memory_warnings (my_edata, malloc_warning); | 2238 | memory_warnings (my_edata, malloc_warning); |
| 2239 | #endif /* not WINDOWSNT */ | 2239 | #endif /* not WINDOWSNT */ |
| 2240 | #endif | 2240 | #endif |
| 2241 | #ifdef HAVE_GTK_AND_PTHREAD | 2241 | #if ! defined (SYSTEM_MALLOC) && defined (HAVE_GTK_AND_PTHREAD) |
| 2242 | /* Pthread may call malloc before main, and then we will get an endless | 2242 | /* Pthread may call malloc before main, and then we will get an endless |
| 2243 | loop, because pthread_self (see alloc.c) calls malloc the first time | 2243 | loop, because pthread_self (see alloc.c) calls malloc the first time |
| 2244 | it is called on some systems. */ | 2244 | it is called on some systems. */ |
diff --git a/src/keyboard.c b/src/keyboard.c index 3cfc1652084..19973edf33d 100644 --- a/src/keyboard.c +++ b/src/keyboard.c | |||
| @@ -6780,7 +6780,7 @@ handle_async_input () | |||
| 6780 | #ifdef BSD4_1 | 6780 | #ifdef BSD4_1 |
| 6781 | extern int select_alarmed; | 6781 | extern int select_alarmed; |
| 6782 | #endif | 6782 | #endif |
| 6783 | #ifdef HAVE_GTK_AND_PTHREAD | 6783 | #if ! defined (SYSTEM_MALLOC) && defined (HAVE_GTK_AND_PTHREAD) |
| 6784 | extern pthread_t main_thread; | 6784 | extern pthread_t main_thread; |
| 6785 | if (pthread_self () != main_thread) | 6785 | if (pthread_self () != main_thread) |
| 6786 | { | 6786 | { |
| @@ -6826,7 +6826,7 @@ input_available_signal (signo) | |||
| 6826 | { | 6826 | { |
| 6827 | /* Must preserve main program's value of errno. */ | 6827 | /* Must preserve main program's value of errno. */ |
| 6828 | int old_errno = errno; | 6828 | int old_errno = errno; |
| 6829 | #ifdef HAVE_GTK_AND_PTHREAD | 6829 | #if ! defined (SYSTEM_MALLOC) && defined (HAVE_GTK_AND_PTHREAD) |
| 6830 | extern pthread_t main_thread; | 6830 | extern pthread_t main_thread; |
| 6831 | if (pthread_self () != main_thread) | 6831 | if (pthread_self () != main_thread) |
| 6832 | { | 6832 | { |