comparison src/ralloc.c @ 1451:107c9b227e7f

[emacs]: Define POINTER and SIZE. [!emacs]: Delete definition of EXCEEDS_LISP_PTR.
author Richard M. Stallman <rms@gnu.org>
date Tue, 20 Oct 1992 06:12:43 +0000
parents f0ea279194f8
children 6359d8850fa3
comparison
equal deleted inserted replaced
1450:a321ed0fa3ae 1451:107c9b227e7f
28 #include "config.h" 28 #include "config.h"
29 #include "lisp.h" /* Needed for VALBITS. */ 29 #include "lisp.h" /* Needed for VALBITS. */
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 ();
36 47
37 #include "getpagesize.h" 48 #include "getpagesize.h"
40 51
41 #include <stddef.h> 52 #include <stddef.h>
42 53
43 typedef size_t SIZE; 54 typedef size_t SIZE;
44 typedef void *POINTER; 55 typedef void *POINTER;
45
46 #define EXCEEDS_LISP_PTR(x) 0
47 56
48 #include <unistd.h> 57 #include <unistd.h>
49 #include <malloc.h> 58 #include <malloc.h>
50 #include <string.h> 59 #include <string.h>
51 60