]> git.eshelyaron.com Git - emacs.git/commitdiff
(Fbuffer_swap_text): Use POINTER_TYPE.
authorJason Rumney <jasonr@gnu.org>
Thu, 25 Dec 2008 10:33:33 +0000 (10:33 +0000)
committerJason Rumney <jasonr@gnu.org>
Thu, 25 Dec 2008 10:33:33 +0000 (10:33 +0000)
src/ChangeLog
src/buffer.c

index 74d02d2933d0c062f82c2ee0a5814ff856736427..fbf378dd6de24d17ff8e76a1f77a8c0b067cb2a4 100644 (file)
@@ -1,3 +1,7 @@
+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.
index 33667b79ead37db0f3d0e1476f5cc4e0cefe1445..3eaa8048631e30879d239e6c8d48bea3ffbbfcc7 100644 (file)
@@ -2183,7 +2183,7 @@ advance_to_char_boundary (byte_pos)
 }
 
 #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 @@ DEFUN ("buffer-swap-text", Fbuffer_swap_text, Sbuffer_swap_text,
   eassert (current_buffer->text == &current_buffer->own_text);
   eassert (other_buffer->text == &other_buffer->own_text);
 #ifdef REL_ALLOC
-  r_alloc_reset_variable ((PTR *) &current_buffer->own_text.beg,
-                         (PTR *) &other_buffer->own_text.beg);
-  r_alloc_reset_variable ((PTR *) &other_buffer->own_text.beg,
-                         (PTR *) &current_buffer->own_text.beg);
+  r_alloc_reset_variable ((POINTER_TYPE **) &current_buffer->own_text.beg,
+                         (POINTER_TYPE **) &other_buffer->own_text.beg);
+  r_alloc_reset_variable ((POINTER_TYPE **) &other_buffer->own_text.beg,
+                         (POINTER_TYPE **) &current_buffer->own_text.beg);
 #endif /* REL_ALLOC */
 
   swapfield (pt, EMACS_INT);