diff options
| author | Andreas Schwab | 2010-07-11 20:34:43 +0200 |
|---|---|---|
| committer | Andreas Schwab | 2010-07-11 20:34:43 +0200 |
| commit | 89887d672aded197a2be95f3d8a6d5bdcb19eb58 (patch) | |
| tree | fefa168f1ddbc3c0f04f3e891cc20007a65e11a4 /src/alloc.c | |
| parent | ae96d47a63b32aa752bc65ce08f8b7b7254db3e6 (diff) | |
| download | emacs-89887d672aded197a2be95f3d8a6d5bdcb19eb58.tar.gz emacs-89887d672aded197a2be95f3d8a6d5bdcb19eb58.zip | |
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.
Diffstat (limited to 'src/alloc.c')
| -rw-r--r-- | src/alloc.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/alloc.c b/src/alloc.c index 02c6022e475..5c860bc1f8e 100644 --- a/src/alloc.c +++ b/src/alloc.c | |||
| @@ -23,10 +23,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 23 | #include <limits.h> /* For CHAR_BIT. */ | 23 | #include <limits.h> /* For CHAR_BIT. */ |
| 24 | #include <setjmp.h> | 24 | #include <setjmp.h> |
| 25 | 25 | ||
| 26 | #ifdef STDC_HEADERS | ||
| 27 | #include <stddef.h> /* For offsetof, used by PSEUDOVECSIZE. */ | ||
| 28 | #endif | ||
| 29 | |||
| 30 | #ifdef ALLOC_DEBUG | 26 | #ifdef ALLOC_DEBUG |
| 31 | #undef INLINE | 27 | #undef INLINE |
| 32 | #endif | 28 | #endif |