Mercurial > emacs
diff 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 |
line wrap: on
line diff
--- a/src/buffer.h Mon Jul 12 11:27:21 2010 +0900 +++ b/src/buffer.h Mon Jul 12 11:28:50 2010 +0900 @@ -954,7 +954,7 @@ from the start of a buffer structure. */ #define PER_BUFFER_VAR_OFFSET(VAR) \ - ((char *) &((struct buffer *)0)->VAR - (char *) ((struct buffer *)0)) + offsetof (struct buffer, VAR) /* Return the index of buffer-local variable VAR. Each per-buffer variable has an index > 0 associated with it, except when it always
