Mercurial > emacs
comparison src/buffer.h @ 6654:b188651d24d6
(OVERLAY_POSITION): Use XGCTYPE.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Sun, 03 Apr 1994 19:37:32 +0000 |
parents | ef864f9fd3cc |
children | 25280492d514 |
comparison
equal
deleted
inserted
replaced
6653:14a0a3fe93fd | 6654:b188651d24d6 |
---|---|
384 | 384 |
385 /* Return the actual buffer position for the marker P. | 385 /* Return the actual buffer position for the marker P. |
386 We assume you know which buffer it's pointing into. */ | 386 We assume you know which buffer it's pointing into. */ |
387 | 387 |
388 #define OVERLAY_POSITION(P) \ | 388 #define OVERLAY_POSITION(P) \ |
389 (MARKERP ((P)) ? marker_position ((P)) : (abort (), 0)) | 389 (XGCTYPE ((P)) == Lisp_Marker ? marker_position ((P)) : (abort (), 0)) |
390 | 390 |
391 /* Allocation of buffer text. */ | 391 /* Allocation of buffer text. */ |
392 | 392 |
393 #ifdef REL_ALLOC | 393 #ifdef REL_ALLOC |
394 #define BUFFER_ALLOC(data,size) ((unsigned char *) r_alloc (&data, (size))) | 394 #define BUFFER_ALLOC(data,size) ((unsigned char *) r_alloc (&data, (size))) |