Mercurial > emacs
diff src/alloc.c @ 109320:a0d2db31314d
Use offsetof instead of own definition
* lisp.h: Include <stddef.h>.
(OFFSETOF): Don't define.
(VECSIZE): Use offsetof instead of OFFSETOF.
(PSEUDOVECSIZE): Likewise.
* process.c (conv_sockaddr_to_lisp): Likewise.
* alloc.c: Don't include <stddef.h>.
* buffer.h (PER_BUFFER_VAR_OFFSET): Use offsetof.
| author | Andreas Schwab <schwab@linux-m68k.org> |
|---|---|
| date | Sun, 11 Jul 2010 20:34:43 +0200 |
| parents | e856a274549b |
| children | d12162869c07 |
line wrap: on
line diff
--- a/src/alloc.c Sun Jul 11 20:19:16 2010 +0200 +++ b/src/alloc.c Sun Jul 11 20:34:43 2010 +0200 @@ -23,10 +23,6 @@ #include <limits.h> /* For CHAR_BIT. */ #include <setjmp.h> -#ifdef STDC_HEADERS -#include <stddef.h> /* For offsetof, used by PSEUDOVECSIZE. */ -#endif - #ifdef ALLOC_DEBUG #undef INLINE #endif
