diff options
| author | Paul Eggert | 2012-04-22 12:23:51 -0700 |
|---|---|---|
| committer | Paul Eggert | 2012-04-22 12:23:51 -0700 |
| commit | d0baac98ac8f673ec56bc8b0b1fd7d280831b015 (patch) | |
| tree | bc91f64a8c273c93cd0d66572af3f281c9282a60 /src/ChangeLog | |
| parent | eeddc5310ac04e9f5a0cce072f378ff5c76dae65 (diff) | |
| download | emacs-d0baac98ac8f673ec56bc8b0b1fd7d280831b015.tar.gz emacs-d0baac98ac8f673ec56bc8b0b1fd7d280831b015.zip | |
Modernize and clean up gmalloc.c to assume C89 (Bug#9119).
* gmalloc.c: (_MALLOC_INTERNAL, _MALLOC_H, _PP, __ptr_t)
(__malloc_size_t, __malloc_ptrdiff_t):
Remove. All uses removed, replaced by the definiens if needed,
since we can assume C89 or better now.
Include <stdint.h>, for PTRDIFF_MAX, uintptr_t.
(protect_malloc_state, align, get_contiguous_space)
(malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
(malloc_atfork_handler_child, malloc_enable_thread)
(malloc_initialize_1, __malloc_initialize, morecore_nolock)
(_malloc_internal_nolock, _malloc_internal, malloc, _malloc)
(_free, _realloc, _free_internal_nolock, _free_internal, free, cfree)
(special_realloc, _realloc_internal_nolock, _realloc_internal)
(realloc, calloc, __default_morecore, memalign, valloc, checkhdr)
(freehook, mallochook, reallochook, mabort, mcheck, mprobe):
Define using prototypes, not old style.
(align, _malloc_internal_nolock, _free_internal_nolock, memalign):
Don't assume ptrdiff_t and uintptr_t are no wider than unsigned long.
(align): Don't assume that signed integer overflow wraps around.
Omit unused local var.
(malloc_initialize_1, morecore_nolock, _malloc_internal_nolock)
(_free_internal_nolock, memalign, mallochook, reallochook):
Omit no-longer-needed casts.
(valloc): Use getpagesize, not __getpagesize.
(MAGICWORD, MAGICFREE): Now randomish size_t values, not 32-bit.
(struct hdr): The 'magic' member is now size_t, not unsigned long.
Diffstat (limited to 'src/ChangeLog')
| -rw-r--r-- | src/ChangeLog | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 0d557fcc1cf..410e6e01f45 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,32 @@ | |||
| 1 | 2012-04-22 Paul Eggert <eggert@cs.ucla.edu> | 1 | 2012-04-22 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 2 | ||
| 3 | Modernize and clean up gmalloc.c to assume C89 (Bug#9119). | ||
| 4 | * gmalloc.c: (_MALLOC_INTERNAL, _MALLOC_H, _PP, __ptr_t) | ||
| 5 | (__malloc_size_t, __malloc_ptrdiff_t): | ||
| 6 | Remove. All uses removed, replaced by the definiens if needed, | ||
| 7 | since we can assume C89 or better now. | ||
| 8 | Include <stdint.h>, for PTRDIFF_MAX, uintptr_t. | ||
| 9 | (protect_malloc_state, align, get_contiguous_space) | ||
| 10 | (malloc_atfork_handler_prepare, malloc_atfork_handler_parent) | ||
| 11 | (malloc_atfork_handler_child, malloc_enable_thread) | ||
| 12 | (malloc_initialize_1, __malloc_initialize, morecore_nolock) | ||
| 13 | (_malloc_internal_nolock, _malloc_internal, malloc, _malloc) | ||
| 14 | (_free, _realloc, _free_internal_nolock, _free_internal, free, cfree) | ||
| 15 | (special_realloc, _realloc_internal_nolock, _realloc_internal) | ||
| 16 | (realloc, calloc, __default_morecore, memalign, valloc, checkhdr) | ||
| 17 | (freehook, mallochook, reallochook, mabort, mcheck, mprobe): | ||
| 18 | Define using prototypes, not old style. | ||
| 19 | (align, _malloc_internal_nolock, _free_internal_nolock, memalign): | ||
| 20 | Don't assume ptrdiff_t and uintptr_t are no wider than unsigned long. | ||
| 21 | (align): Don't assume that signed integer overflow wraps around. | ||
| 22 | Omit unused local var. | ||
| 23 | (malloc_initialize_1, morecore_nolock, _malloc_internal_nolock) | ||
| 24 | (_free_internal_nolock, memalign, mallochook, reallochook): | ||
| 25 | Omit no-longer-needed casts. | ||
| 26 | (valloc): Use getpagesize, not __getpagesize. | ||
| 27 | (MAGICWORD, MAGICFREE): Now randomish size_t values, not 32-bit. | ||
| 28 | (struct hdr): The 'magic' member is now size_t, not unsigned long. | ||
| 29 | |||
| 3 | * dbusbind.c (XD_DBUS_VALIDATE_OBJECT): Define only if needed. | 30 | * dbusbind.c (XD_DBUS_VALIDATE_OBJECT): Define only if needed. |
| 4 | 31 | ||
| 5 | 2012-04-22 Michael Albinus <michael.albinus@gmx.de> | 32 | 2012-04-22 Michael Albinus <michael.albinus@gmx.de> |