diff options
| author | Paul Eggert | 2012-05-21 08:36:54 -0700 |
|---|---|---|
| committer | Paul Eggert | 2012-05-21 08:36:54 -0700 |
| commit | 261cb4bb750143d8078bb27a343e0d9560b884df (patch) | |
| tree | 0d295abf946d52c178be2f7b95e85bfcc5fc63cc /src/ralloc.c | |
| parent | ff23cd9f452b6d2b5001a67d7b14e0af7f61b194 (diff) | |
| download | emacs-261cb4bb750143d8078bb27a343e0d9560b884df.tar.gz emacs-261cb4bb750143d8078bb27a343e0d9560b884df.zip | |
Assume C89 or later.
* configure.in (AC_C_PROTOTYPES, AC_C_VOLATILE, AC_C_CONST)
(POINTER_TYPE, PROTOTYPES): Remove.
* admin/CPP-DEFINES: Remove NULL, const.
* lib-src/etags.c (static, const): Remove macros.
(PTR): Remove; all uses replaced with void *. Omit needless casts.
* src/alloc.c, src/buffer.c, lisp.h: Replace POINTER_TYPE with void.
* alloc.c (overrun_check_malloc, overrun_check_realloc, xmalloc)
(xrealloc):
* buffer.c (mmap_free_1, mmap_enlarge): Omit needless casts.
* editfns.c, fns.c, gmalloc.c, insdel.c, sysdep.c, termcap.c (NULL):
* textprop.c, tparam.c (NULL): Remove.
* ralloc.c, vm-limit.c (POINTER): Assume void * works.
* regex.c (SIGN_EXTEND_CHAR): Assume signed char works.
* regex.h (_RE_ARGS): Remove. All uses rewritten to use prototypes.
* unexelf.c (ElfBitsW): Assume c89 preprocessor or better.
* xterm.c (input_signal_count): Assume volatile works.
Diffstat (limited to 'src/ralloc.c')
| -rw-r--r-- | src/ralloc.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/ralloc.c b/src/ralloc.c index 4bb2f240438..d736e279520 100644 --- a/src/ralloc.c +++ b/src/ralloc.c | |||
| @@ -31,9 +31,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 31 | 31 | ||
| 32 | #include <unistd.h> | 32 | #include <unistd.h> |
| 33 | 33 | ||
| 34 | typedef POINTER_TYPE *POINTER; | ||
| 35 | typedef size_t SIZE; | ||
| 36 | |||
| 37 | #ifdef DOUG_LEA_MALLOC | 34 | #ifdef DOUG_LEA_MALLOC |
| 38 | #define M_TOP_PAD -2 | 35 | #define M_TOP_PAD -2 |
| 39 | extern int mallopt (int, int); | 36 | extern int mallopt (int, int); |
| @@ -47,9 +44,6 @@ extern size_t __malloc_extra_blocks; | |||
| 47 | 44 | ||
| 48 | #include <stddef.h> | 45 | #include <stddef.h> |
| 49 | 46 | ||
| 50 | typedef size_t SIZE; | ||
| 51 | typedef void *POINTER; | ||
| 52 | |||
| 53 | #include <unistd.h> | 47 | #include <unistd.h> |
| 54 | #include <malloc.h> | 48 | #include <malloc.h> |
| 55 | 49 | ||
| @@ -58,6 +52,8 @@ typedef void *POINTER; | |||
| 58 | 52 | ||
| 59 | #include "getpagesize.h" | 53 | #include "getpagesize.h" |
| 60 | 54 | ||
| 55 | typedef size_t SIZE; | ||
| 56 | typedef void *POINTER; | ||
| 61 | #define NIL ((POINTER) 0) | 57 | #define NIL ((POINTER) 0) |
| 62 | 58 | ||
| 63 | /* A flag to indicate whether we have initialized ralloc yet. For | 59 | /* A flag to indicate whether we have initialized ralloc yet. For |