changeset 31605:c3073b2c8dfa

(BUFFER_ALLOC, BUFFER_REALLOC, BUFFER_FREE): Removed. (enlarge_buffer_text): Add prototype.
author Gerd Moellmann <gerd@gnu.org>
date Thu, 14 Sep 2000 15:14:15 +0000
parents 91e7cea32eaa
children f0f7e75e83c4
files src/buffer.h
diffstat 1 files changed, 2 insertions(+), 22 deletions(-) [+]
line wrap: on
line diff
--- a/src/buffer.h	Thu Sep 14 15:14:02 2000 +0000
+++ b/src/buffer.h	Thu Sep 14 15:14:15 2000 +0000
@@ -216,6 +216,7 @@
 extern INLINE void temp_set_point P_ ((struct buffer *, int));
 extern void set_point_both P_ ((struct buffer *, int, int));
 extern INLINE void temp_set_point_both P_ ((struct buffer *, int, int));
+extern void enlarge_buffer_text P_ ((struct buffer *, int));
 
 
 /* Macros for setting the BEGV, ZV or PT of a given buffer.
@@ -837,28 +838,7 @@
 #define OVERLAY_POSITION(P) \
  (GC_MARKERP (P) ? marker_position (P) : (abort (), 0))
 
-/* Allocation of buffer text.  */
-
-#ifdef REL_ALLOC
-
-extern POINTER_TYPE *r_alloc P_ ((POINTER_TYPE **, size_t));
-extern POINTER_TYPE *r_re_alloc P_ ((POINTER_TYPE **, size_t));
-extern void r_alloc_free P_ ((POINTER_TYPE **ptr));
-
-#define BUFFER_ALLOC(data, size) \
-     ((unsigned char *) r_alloc ((POINTER_TYPE **) &data, (size)))
-#define BUFFER_REALLOC(data, size) \
-     ((unsigned char *) r_re_alloc ((POINTER_TYPE **) &data, (size)))
-#define BUFFER_FREE(data) (r_alloc_free ((POINTER_TYPE **) &data))
-
-#else /* not REL_ALLOC */
-
-#define BUFFER_ALLOC(data,size) (data = (unsigned char *) malloc ((size)))
-#define BUFFER_REALLOC(data,size) ((unsigned char *) realloc ((data), (size)))
-#define BUFFER_FREE(data) (free ((data)))
-
-#endif /* not REL_ALLOC */
-
+
 /***********************************************************************
 			Buffer-local Variables
  ***********************************************************************/