changeset 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 a321ed0fa3ae
children ed79bb8047e8
files src/ralloc.c
diffstat 1 files changed, 11 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/ralloc.c	Tue Oct 20 06:12:19 1992 +0000
+++ b/src/ralloc.c	Tue Oct 20 06:12:43 1992 +0000
@@ -30,6 +30,17 @@
 
 #undef NULL
 
+/* The important properties of this type are that 1) it's a pointer, and
+   2) arithmetic on it should work as if the size of the object pointed
+   to has a size of 1.  */
+#ifdef __STDC__
+typedef void *POINTER;
+#else
+typedef char *POINTER;
+#endif
+
+typedef unsigned long SIZE;
+
 /* Declared in dispnew.c, this version doesn't screw up if regions
    overlap.  */
 extern void safe_bcopy ();
@@ -43,8 +54,6 @@
 typedef size_t SIZE;
 typedef void *POINTER;
 
-#define EXCEEDS_LISP_PTR(x) 0
-
 #include <unistd.h>
 #include <malloc.h>
 #include <string.h>