Mercurial > emacs
diff src/buffer.h @ 9951:586bb1122715
(OVERLAY_POSITION): Use the new type-test macros.
| author | Karl Heuer <kwzh@gnu.org> |
|---|---|
| date | Tue, 15 Nov 1994 23:55:03 +0000 |
| parents | b039e4156d74 |
| children | b0f6fc3f80b1 |
line wrap: on
line diff
--- a/src/buffer.h Tue Nov 15 23:54:26 1994 +0000 +++ b/src/buffer.h Tue Nov 15 23:55:03 1994 +0000 @@ -426,9 +426,8 @@ /* Return the actual buffer position for the marker P. We assume you know which buffer it's pointing into. */ -#define OVERLAY_POSITION(P) \ - (XGCTYPE ((P)) == Lisp_Misc && XMISC ((P))->type == Lisp_Misc_Marker \ - ? marker_position ((P)) : (abort (), 0)) +#define OVERLAY_POSITION(P) \ + (GC_MARKERP (P) ? marker_position (P) : (abort (), 0)) /* Allocation of buffer text. */
