+2008-12-25 Jason Rumney <jasonr@gnu.org>
+
+ * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
+
2008-12-24 Jason Rumney <jasonr@gnu.org>
* ralloc.c (r_alloc_reset_variable): New function.
}
#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,
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);