diff options
| author | Richard M. Stallman | 1992-10-20 06:12:43 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1992-10-20 06:12:43 +0000 |
| commit | f275fd9a94fb8203c80ead001dce56fae8217d6d (patch) | |
| tree | 0201c42d00c9ddd22c63d09c8b9cf70abc8c1b98 /src/ralloc.c | |
| parent | c52713b17b0446ad112cfda886151f5d7fcdf6c0 (diff) | |
| download | emacs-f275fd9a94fb8203c80ead001dce56fae8217d6d.tar.gz emacs-f275fd9a94fb8203c80ead001dce56fae8217d6d.zip | |
[emacs]: Define POINTER and SIZE.
[!emacs]: Delete definition of EXCEEDS_LISP_PTR.
Diffstat (limited to 'src/ralloc.c')
| -rw-r--r-- | src/ralloc.c | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/src/ralloc.c b/src/ralloc.c index 70af2b9b147..71c867901cb 100644 --- a/src/ralloc.c +++ b/src/ralloc.c | |||
| @@ -30,6 +30,17 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ | |||
| 30 | 30 | ||
| 31 | #undef NULL | 31 | #undef NULL |
| 32 | 32 | ||
| 33 | /* The important properties of this type are that 1) it's a pointer, and | ||
| 34 | 2) arithmetic on it should work as if the size of the object pointed | ||
| 35 | to has a size of 1. */ | ||
| 36 | #ifdef __STDC__ | ||
| 37 | typedef void *POINTER; | ||
| 38 | #else | ||
| 39 | typedef char *POINTER; | ||
| 40 | #endif | ||
| 41 | |||
| 42 | typedef unsigned long SIZE; | ||
| 43 | |||
| 33 | /* Declared in dispnew.c, this version doesn't screw up if regions | 44 | /* Declared in dispnew.c, this version doesn't screw up if regions |
| 34 | overlap. */ | 45 | overlap. */ |
| 35 | extern void safe_bcopy (); | 46 | extern void safe_bcopy (); |
| @@ -43,8 +54,6 @@ extern void safe_bcopy (); | |||
| 43 | typedef size_t SIZE; | 54 | typedef size_t SIZE; |
| 44 | typedef void *POINTER; | 55 | typedef void *POINTER; |
| 45 | 56 | ||
| 46 | #define EXCEEDS_LISP_PTR(x) 0 | ||
| 47 | |||
| 48 | #include <unistd.h> | 57 | #include <unistd.h> |
| 49 | #include <malloc.h> | 58 | #include <malloc.h> |
| 50 | #include <string.h> | 59 | #include <string.h> |