From: Paul Eggert Date: Sat, 16 Apr 2011 20:32:18 +0000 (-0700) Subject: * insdel.c (make_gap_smaller): Define only if X-Git-Tag: emacs-pretest-24.0.90~104^2~275^2~268^2~20 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=b58c5c4af7db6c19d8afd78f7152240a1523702b;p=emacs.git * insdel.c (make_gap_smaller): Define only if USE_MMAP_FOR_BUFFERS || REL_ALLOC || DOUG_LEA_MALLOC. --- diff --git a/src/ChangeLog b/src/ChangeLog index a2848ead2cc..fa04a7ebfe5 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,5 +1,8 @@ 2011-04-16 Paul Eggert + * insdel.c (make_gap_smaller): Define only if + USE_MMAP_FOR_BUFFERS || REL_ALLOC || DOUG_LEA_MALLOC. + * keyboard.c (read_char): Make a var volatile so longjmp won't clobber it. diff --git a/src/insdel.c b/src/insdel.c index 82dce13af98..5ecb01c9538 100644 --- a/src/insdel.c +++ b/src/insdel.c @@ -442,6 +442,7 @@ make_gap_larger (EMACS_INT nbytes_added) Vinhibit_quit = tem; } +#if defined USE_MMAP_FOR_BUFFERS || defined REL_ALLOC || defined DOUG_LEA_MALLOC /* Make the gap NBYTES_REMOVED bytes shorter. */ @@ -501,6 +502,8 @@ make_gap_smaller (EMACS_INT nbytes_removed) Vinhibit_quit = tem; } +#endif /* USE_MMAP_FOR_BUFFERS || REL_ALLOC || DOUG_LEA_MALLOC */ + void make_gap (EMACS_INT nbytes_added) {