diff options
Diffstat (limited to 'src/buffer.h')
| -rw-r--r-- | src/buffer.h | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/src/buffer.h b/src/buffer.h index 0755db25f9f..47f00560824 100644 --- a/src/buffer.h +++ b/src/buffer.h | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* Header file for the buffer manipulation primitives. | 1 | /* Header file for the buffer manipulation primitives. |
| 2 | Copyright (C) 1985, 86, 93, 94, 95, 97, 1998, 1999, 2000, 01, 2003 | 2 | Copyright (C) 1985,86,93,94,95,97,98,99,2000,01,03,04 |
| 3 | Free Software Foundation, Inc. | 3 | Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | This file is part of GNU Emacs. | 5 | This file is part of GNU Emacs. |
| @@ -827,6 +827,25 @@ extern void buffer_slot_type_mismatch P_ ((int)); | |||
| 827 | extern void fix_overlays_before P_ ((struct buffer *, EMACS_INT, EMACS_INT)); | 827 | extern void fix_overlays_before P_ ((struct buffer *, EMACS_INT, EMACS_INT)); |
| 828 | extern void mmap_set_vars P_ ((int)); | 828 | extern void mmap_set_vars P_ ((int)); |
| 829 | 829 | ||
| 830 | /* Get overlays at POSN into array OVERLAYS with NOVERLAYS elements. | ||
| 831 | If NEXTP is non-NULL, return next overlay there. | ||
| 832 | See overlay_at arg CHANGE_REQ for meaning of CHRQ arg. */ | ||
| 833 | |||
| 834 | #define GET_OVERLAYS_AT(posn, overlays, noverlays, nextp, chrq) \ | ||
| 835 | do { \ | ||
| 836 | int maxlen = 40; \ | ||
| 837 | overlays = (Lisp_Object *) alloca (maxlen * sizeof (Lisp_Object)); \ | ||
| 838 | noverlays = overlays_at (posn, 0, &overlays, &maxlen, \ | ||
| 839 | nextp, NULL, chrq); \ | ||
| 840 | if (noverlays > maxlen) \ | ||
| 841 | { \ | ||
| 842 | maxlen = noverlays; \ | ||
| 843 | overlays = (Lisp_Object *) alloca (maxlen * sizeof (Lisp_Object)); \ | ||
| 844 | noverlays = overlays_at (posn, 0, &overlays, &maxlen, \ | ||
| 845 | nextp, NULL, chrq); \ | ||
| 846 | } \ | ||
| 847 | } while (0) | ||
| 848 | |||
| 830 | EXFUN (Fbuffer_live_p, 1); | 849 | EXFUN (Fbuffer_live_p, 1); |
| 831 | EXFUN (Fbuffer_name, 1); | 850 | EXFUN (Fbuffer_name, 1); |
| 832 | EXFUN (Fget_file_buffer, 1); | 851 | EXFUN (Fget_file_buffer, 1); |