comparison 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
comparison
equal deleted inserted replaced
109319:108c259501da 109320:a0d2db31314d
20 20
21 #include <config.h> 21 #include <config.h>
22 #include <stdio.h> 22 #include <stdio.h>
23 #include <limits.h> /* For CHAR_BIT. */ 23 #include <limits.h> /* For CHAR_BIT. */
24 #include <setjmp.h> 24 #include <setjmp.h>
25
26 #ifdef STDC_HEADERS
27 #include <stddef.h> /* For offsetof, used by PSEUDOVECSIZE. */
28 #endif
29 25
30 #ifdef ALLOC_DEBUG 26 #ifdef ALLOC_DEBUG
31 #undef INLINE 27 #undef INLINE
32 #endif 28 #endif
33 29