diff options
| author | Dmitry Antipov | 2012-08-01 12:49:28 +0400 |
|---|---|---|
| committer | Dmitry Antipov | 2012-08-01 12:49:28 +0400 |
| commit | d8a05828fd9f78c6cadddd8b47b53d83833c3917 (patch) | |
| tree | e79a8e7e0a0abc277d5f928835abb0b64d7dcae7 /src/buffer.h | |
| parent | 015a2738eb575f9dc07ea5e589eb88c8e071930a (diff) | |
| download | emacs-d8a05828fd9f78c6cadddd8b47b53d83833c3917.tar.gz emacs-d8a05828fd9f78c6cadddd8b47b53d83833c3917.zip | |
Use INTERNAL_FIELD for conses and overlays.
* src/lisp.h (struct Lisp_Cons): Use INTERNAL_FIELD.
Remove obsolete comment.
(MVAR): New macro.
(struct Lisp_Overlay): Use INTERNAL_FIELD.
* src/alloc.c, src/buffer.c, src/buffer.h, src/fns.c: Adjust users.
* admin/coccinelle/overlay.cocci: Semantic patch to replace direct
access to Lisp_Object members of struct Lisp_Overlay to MVAR.
Diffstat (limited to 'src/buffer.h')
| -rw-r--r-- | src/buffer.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/buffer.h b/src/buffer.h index b9a2c9c7dce..cf571e06b53 100644 --- a/src/buffer.h +++ b/src/buffer.h | |||
| @@ -986,15 +986,15 @@ BUF_FETCH_MULTIBYTE_CHAR (struct buffer *buf, ptrdiff_t pos) | |||
| 986 | 986 | ||
| 987 | /* Return the marker that stands for where OV starts in the buffer. */ | 987 | /* Return the marker that stands for where OV starts in the buffer. */ |
| 988 | 988 | ||
| 989 | #define OVERLAY_START(OV) (XOVERLAY (OV)->start) | 989 | #define OVERLAY_START(OV) MVAR (XOVERLAY (OV), start) |
| 990 | 990 | ||
| 991 | /* Return the marker that stands for where OV ends in the buffer. */ | 991 | /* Return the marker that stands for where OV ends in the buffer. */ |
| 992 | 992 | ||
| 993 | #define OVERLAY_END(OV) (XOVERLAY (OV)->end) | 993 | #define OVERLAY_END(OV) MVAR (XOVERLAY (OV), end) |
| 994 | 994 | ||
| 995 | /* Return the plist of overlay OV. */ | 995 | /* Return the plist of overlay OV. */ |
| 996 | 996 | ||
| 997 | #define OVERLAY_PLIST(OV) XOVERLAY ((OV))->plist | 997 | #define OVERLAY_PLIST(OV) MVAR (XOVERLAY (OV), plist) |
| 998 | 998 | ||
| 999 | /* Return the actual buffer position for the marker P. | 999 | /* Return the actual buffer position for the marker P. |
| 1000 | We assume you know which buffer it's pointing into. */ | 1000 | We assume you know which buffer it's pointing into. */ |