diff options
| author | Dan Nicolaescu | 2008-02-09 18:03:10 +0000 |
|---|---|---|
| committer | Dan Nicolaescu | 2008-02-09 18:03:10 +0000 |
| commit | 4624371d9a4c1a078bcb7a305adb0520cd8975bc (patch) | |
| tree | 3e976f55d9448bda9ab36215bd5673c0eab68d45 /src/gmalloc.c | |
| parent | 87e391bb24d57ce8c27226542ba11ea5f924689d (diff) | |
| download | emacs-4624371d9a4c1a078bcb7a305adb0520cd8975bc.tar.gz emacs-4624371d9a4c1a078bcb7a305adb0520cd8975bc.zip | |
* configure.in (LIBX11_MACHINE, HAVE_XFREE386): Remove code
dealing with obsolete variables.
* fakemail.c (MAIL_PROGRAM_NAME): Remove unused conditional.
(main): Replace MAIL_PROGRAM_NAME with its value.
* src/Makefile.in:
* src/emacs.c:
* src/gmalloc.c:
* src/keyboard.c:
* src/lisp.h:
* src/m/ibm370aix.h:
* src/process.c:
* src/regex.c:
* src/s/hpux.h:
* src/sysdep.c:
* src/sysselect.h:
* src/systty.h:
* src/unexec.c:
* src/w32term.c:
* src/xsmfns.c:
* src/xterm.c: Remove code that deals with obsolete variables.
* s/msdos.h (DONT_NEED_ENVIRON): Don't define.
* ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
nothing else needs it anymore.
Diffstat (limited to 'src/gmalloc.c')
| -rw-r--r-- | src/gmalloc.c | 19 |
1 files changed, 4 insertions, 15 deletions
diff --git a/src/gmalloc.c b/src/gmalloc.c index ccc08e1ff68..bd8fe344cbd 100644 --- a/src/gmalloc.c +++ b/src/gmalloc.c | |||
| @@ -110,10 +110,6 @@ extern "C" | |||
| 110 | #define NULL 0 | 110 | #define NULL 0 |
| 111 | #endif | 111 | #endif |
| 112 | 112 | ||
| 113 | #ifndef FREE_RETURN_TYPE | ||
| 114 | #define FREE_RETURN_TYPE void | ||
| 115 | #endif | ||
| 116 | |||
| 117 | 113 | ||
| 118 | /* Allocate SIZE bytes of memory. */ | 114 | /* Allocate SIZE bytes of memory. */ |
| 119 | extern __ptr_t malloc PP ((__malloc_size_t __size)); | 115 | extern __ptr_t malloc PP ((__malloc_size_t __size)); |
| @@ -123,7 +119,7 @@ extern __ptr_t realloc PP ((__ptr_t __ptr, __malloc_size_t __size)); | |||
| 123 | /* Allocate NMEMB elements of SIZE bytes each, all initialized to 0. */ | 119 | /* Allocate NMEMB elements of SIZE bytes each, all initialized to 0. */ |
| 124 | extern __ptr_t calloc PP ((__malloc_size_t __nmemb, __malloc_size_t __size)); | 120 | extern __ptr_t calloc PP ((__malloc_size_t __nmemb, __malloc_size_t __size)); |
| 125 | /* Free a block allocated by `malloc', `realloc' or `calloc'. */ | 121 | /* Free a block allocated by `malloc', `realloc' or `calloc'. */ |
| 126 | extern FREE_RETURN_TYPE free PP ((__ptr_t __ptr)); | 122 | extern void free PP ((__ptr_t __ptr)); |
| 127 | 123 | ||
| 128 | /* Allocate SIZE bytes allocated to ALIGNMENT bytes. */ | 124 | /* Allocate SIZE bytes allocated to ALIGNMENT bytes. */ |
| 129 | #if ! (defined (_MALLOC_INTERNAL) && __DJGPP__ - 0 == 1) /* Avoid conflict. */ | 125 | #if ! (defined (_MALLOC_INTERNAL) && __DJGPP__ - 0 == 1) /* Avoid conflict. */ |
| @@ -816,11 +812,6 @@ _malloc_internal_nolock (size) | |||
| 816 | if (size < sizeof (struct list)) | 812 | if (size < sizeof (struct list)) |
| 817 | size = sizeof (struct list); | 813 | size = sizeof (struct list); |
| 818 | 814 | ||
| 819 | #ifdef SUNOS_LOCALTIME_BUG | ||
| 820 | if (size < 16) | ||
| 821 | size = 16; | ||
| 822 | #endif | ||
| 823 | |||
| 824 | /* Determine the allocation policy based on the request size. */ | 815 | /* Determine the allocation policy based on the request size. */ |
| 825 | if (size <= BLOCKSIZE / 2) | 816 | if (size <= BLOCKSIZE / 2) |
| 826 | { | 817 | { |
| @@ -1087,8 +1078,7 @@ Fifth Floor, Boston, MA 02110-1301, USA. | |||
| 1087 | 1078 | ||
| 1088 | /* Cope with systems lacking `memmove'. */ | 1079 | /* Cope with systems lacking `memmove'. */ |
| 1089 | #ifndef memmove | 1080 | #ifndef memmove |
| 1090 | #if (defined (MEMMOVE_MISSING) || \ | 1081 | #if (!defined(_LIBC) && !defined(STDC_HEADERS) && !defined(USG)) |
| 1091 | !defined(_LIBC) && !defined(STDC_HEADERS) && !defined(USG)) | ||
| 1092 | #ifdef emacs | 1082 | #ifdef emacs |
| 1093 | #undef __malloc_safe_bcopy | 1083 | #undef __malloc_safe_bcopy |
| 1094 | #define __malloc_safe_bcopy safe_bcopy | 1084 | #define __malloc_safe_bcopy safe_bcopy |
| @@ -1368,7 +1358,7 @@ _free_internal (ptr) | |||
| 1368 | 1358 | ||
| 1369 | /* Return memory to the heap. */ | 1359 | /* Return memory to the heap. */ |
| 1370 | 1360 | ||
| 1371 | FREE_RETURN_TYPE | 1361 | void |
| 1372 | free (ptr) | 1362 | free (ptr) |
| 1373 | __ptr_t ptr; | 1363 | __ptr_t ptr; |
| 1374 | { | 1364 | { |
| @@ -1421,8 +1411,7 @@ Fifth Floor, Boston, MA 02110-1301, USA. | |||
| 1421 | 1411 | ||
| 1422 | 1412 | ||
| 1423 | /* Cope with systems lacking `memmove'. */ | 1413 | /* Cope with systems lacking `memmove'. */ |
| 1424 | #if (defined (MEMMOVE_MISSING) || \ | 1414 | #if (!defined(_LIBC) && !defined(STDC_HEADERS) && !defined(USG)) |
| 1425 | !defined(_LIBC) && !defined(STDC_HEADERS) && !defined(USG)) | ||
| 1426 | 1415 | ||
| 1427 | #ifdef emacs | 1416 | #ifdef emacs |
| 1428 | #undef __malloc_safe_bcopy | 1417 | #undef __malloc_safe_bcopy |