Mercurial > emacs
changeset 100682:5616d3b5b959
(Fbuffer_swap_text): Use POINTER_TYPE.
author | Jason Rumney <jasonr@gnu.org> |
---|---|
date | Thu, 25 Dec 2008 10:32:36 +0000 |
parents | 0692e41e4739 |
children | 9c4d8f5eeb77 |
files | src/buffer.c |
diffstat | 1 files changed, 5 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/src/buffer.c Thu Dec 25 08:08:46 2008 +0000 +++ b/src/buffer.c Thu Dec 25 10:32:36 2008 +0000 @@ -2183,7 +2183,7 @@ } #ifdef REL_ALLOC -extern void r_alloc_reset_variable P_ ((PTR *, PTR *)); +extern void r_alloc_reset_variable P_ ((POINTER_TYPE *, POINTER_TYPE *)); #endif /* REL_ALLOC */ DEFUN ("buffer-swap-text", Fbuffer_swap_text, Sbuffer_swap_text, @@ -2228,10 +2228,10 @@ eassert (current_buffer->text == ¤t_buffer->own_text); eassert (other_buffer->text == &other_buffer->own_text); #ifdef REL_ALLOC - r_alloc_reset_variable ((PTR *) ¤t_buffer->own_text.beg, - (PTR *) &other_buffer->own_text.beg); - r_alloc_reset_variable ((PTR *) &other_buffer->own_text.beg, - (PTR *) ¤t_buffer->own_text.beg); + r_alloc_reset_variable ((POINTER_TYPE **) ¤t_buffer->own_text.beg, + (POINTER_TYPE **) &other_buffer->own_text.beg); + r_alloc_reset_variable ((POINTER_TYPE **) &other_buffer->own_text.beg, + (POINTER_TYPE **) ¤t_buffer->own_text.beg); #endif /* REL_ALLOC */ swapfield (pt, EMACS_INT);