aboutsummaryrefslogtreecommitdiffstats
path: root/src/buffer.c
diff options
context:
space:
mode:
authorPaul Eggert2012-04-15 18:10:42 -0700
committerPaul Eggert2012-04-15 18:10:42 -0700
commita041960a7ca40a5af684efb3e859edd9daae907d (patch)
treeef46ce849adbb532736fcd4243e200d84cac8b52 /src/buffer.c
parent15142f279769f4eea233a0d73a3afc74db0e6082 (diff)
downloademacs-a041960a7ca40a5af684efb3e859edd9daae907d.tar.gz
emacs-a041960a7ca40a5af684efb3e859edd9daae907d.zip
Improve ralloc.c interface checking.
See http://lists.gnu.org/archive/html/emacs-devel/2011-12/msg00720.html * buffer.c (ralloc_reset_variable, r_alloc, r_re_alloc) (r_alloc_free) [REL_ALLOC]: Move decls from here ... * lisp.h (r_alloc, r_alloc_free, r_re_alloc, r_alloc_reset_variable) [REL_ALLOC]: ... to here, to check interface. * m/ia64.h (r_alloc, r_alloc_free) [REL_ALLOC && !_MALLOC_INTERNAL]: Remove decls. This fixes an "It stinks!".
Diffstat (limited to 'src/buffer.c')
-rw-r--r--src/buffer.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/buffer.c b/src/buffer.c
index ca8d1ec5db3..9bac3ec742b 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -2006,10 +2006,6 @@ advance_to_char_boundary (EMACS_INT byte_pos)
2006 return byte_pos; 2006 return byte_pos;
2007} 2007}
2008 2008
2009#ifdef REL_ALLOC
2010extern void r_alloc_reset_variable (POINTER_TYPE *, POINTER_TYPE *);
2011#endif /* REL_ALLOC */
2012
2013DEFUN ("buffer-swap-text", Fbuffer_swap_text, Sbuffer_swap_text, 2009DEFUN ("buffer-swap-text", Fbuffer_swap_text, Sbuffer_swap_text,
2014 1, 1, 0, 2010 1, 1, 0,
2015 doc: /* Swap the text between current buffer and BUFFER. */) 2011 doc: /* Swap the text between current buffer and BUFFER. */)
@@ -4771,13 +4767,6 @@ mmap_realloc (POINTER_TYPE **var, size_t nbytes)
4771 Buffer-text Allocation 4767 Buffer-text Allocation
4772 ***********************************************************************/ 4768 ***********************************************************************/
4773 4769
4774#ifdef REL_ALLOC
4775extern POINTER_TYPE *r_alloc (POINTER_TYPE **, size_t);
4776extern POINTER_TYPE *r_re_alloc (POINTER_TYPE **, size_t);
4777extern void r_alloc_free (POINTER_TYPE **ptr);
4778#endif /* REL_ALLOC */
4779
4780
4781/* Allocate NBYTES bytes for buffer B's text buffer. */ 4770/* Allocate NBYTES bytes for buffer B's text buffer. */
4782 4771
4783static void 4772static void