diff options
| author | Gerd Moellmann | 2000-09-14 15:14:15 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 2000-09-14 15:14:15 +0000 |
| commit | 39c75ccb52852aedf7c786763ced412d75008a50 (patch) | |
| tree | 3b0046a742f16504e4da769d47d2e718af70f9d6 /src | |
| parent | b86af064c5b7b8c8c290c4193e4e59ec640e50aa (diff) | |
| download | emacs-39c75ccb52852aedf7c786763ced412d75008a50.tar.gz emacs-39c75ccb52852aedf7c786763ced412d75008a50.zip | |
(BUFFER_ALLOC, BUFFER_REALLOC, BUFFER_FREE): Removed.
(enlarge_buffer_text): Add prototype.
Diffstat (limited to 'src')
| -rw-r--r-- | src/buffer.h | 24 |
1 files changed, 2 insertions, 22 deletions
diff --git a/src/buffer.h b/src/buffer.h index e732a4fa272..820f48b7af1 100644 --- a/src/buffer.h +++ b/src/buffer.h | |||
| @@ -216,6 +216,7 @@ extern void set_point P_ ((struct buffer *, int)); | |||
| 216 | extern INLINE void temp_set_point P_ ((struct buffer *, int)); | 216 | extern INLINE void temp_set_point P_ ((struct buffer *, int)); |
| 217 | extern void set_point_both P_ ((struct buffer *, int, int)); | 217 | extern void set_point_both P_ ((struct buffer *, int, int)); |
| 218 | extern INLINE void temp_set_point_both P_ ((struct buffer *, int, int)); | 218 | extern INLINE void temp_set_point_both P_ ((struct buffer *, int, int)); |
| 219 | extern void enlarge_buffer_text P_ ((struct buffer *, int)); | ||
| 219 | 220 | ||
| 220 | 221 | ||
| 221 | /* Macros for setting the BEGV, ZV or PT of a given buffer. | 222 | /* Macros for setting the BEGV, ZV or PT of a given buffer. |
| @@ -837,28 +838,7 @@ extern Lisp_Object Vtransient_mark_mode; | |||
| 837 | #define OVERLAY_POSITION(P) \ | 838 | #define OVERLAY_POSITION(P) \ |
| 838 | (GC_MARKERP (P) ? marker_position (P) : (abort (), 0)) | 839 | (GC_MARKERP (P) ? marker_position (P) : (abort (), 0)) |
| 839 | 840 | ||
| 840 | /* Allocation of buffer text. */ | 841 | |
| 841 | |||
| 842 | #ifdef REL_ALLOC | ||
| 843 | |||
| 844 | extern POINTER_TYPE *r_alloc P_ ((POINTER_TYPE **, size_t)); | ||
| 845 | extern POINTER_TYPE *r_re_alloc P_ ((POINTER_TYPE **, size_t)); | ||
| 846 | extern void r_alloc_free P_ ((POINTER_TYPE **ptr)); | ||
| 847 | |||
| 848 | #define BUFFER_ALLOC(data, size) \ | ||
| 849 | ((unsigned char *) r_alloc ((POINTER_TYPE **) &data, (size))) | ||
| 850 | #define BUFFER_REALLOC(data, size) \ | ||
| 851 | ((unsigned char *) r_re_alloc ((POINTER_TYPE **) &data, (size))) | ||
| 852 | #define BUFFER_FREE(data) (r_alloc_free ((POINTER_TYPE **) &data)) | ||
| 853 | |||
| 854 | #else /* not REL_ALLOC */ | ||
| 855 | |||
| 856 | #define BUFFER_ALLOC(data,size) (data = (unsigned char *) malloc ((size))) | ||
| 857 | #define BUFFER_REALLOC(data,size) ((unsigned char *) realloc ((data), (size))) | ||
| 858 | #define BUFFER_FREE(data) (free ((data))) | ||
| 859 | |||
| 860 | #endif /* not REL_ALLOC */ | ||
| 861 | |||
| 862 | /*********************************************************************** | 842 | /*********************************************************************** |
| 863 | Buffer-local Variables | 843 | Buffer-local Variables |
| 864 | ***********************************************************************/ | 844 | ***********************************************************************/ |