comparison src/buffer.h @ 109353:d43e7dfda4f1

merge trunk
author Kenichi Handa <handa@etlken>
date Mon, 12 Jul 2010 11:28:50 +0900
parents a0d2db31314d
children e49fcbdc458f
comparison
equal deleted inserted replaced
109352:2803d726899d 109353:d43e7dfda4f1
952 952
953 /* Return the offset in bytes of member VAR of struct buffer 953 /* Return the offset in bytes of member VAR of struct buffer
954 from the start of a buffer structure. */ 954 from the start of a buffer structure. */
955 955
956 #define PER_BUFFER_VAR_OFFSET(VAR) \ 956 #define PER_BUFFER_VAR_OFFSET(VAR) \
957 ((char *) &((struct buffer *)0)->VAR - (char *) ((struct buffer *)0)) 957 offsetof (struct buffer, VAR)
958 958
959 /* Return the index of buffer-local variable VAR. Each per-buffer 959 /* Return the index of buffer-local variable VAR. Each per-buffer
960 variable has an index > 0 associated with it, except when it always 960 variable has an index > 0 associated with it, except when it always
961 has buffer-local values, in which case the index is -1. If this is 961 has buffer-local values, in which case the index is -1. If this is
962 0, this is a bug and means that the slot of VAR in 962 0, this is a bug and means that the slot of VAR in