Changeset 609 for branches/GNU/src/binutils/include/objalloc.h
- Timestamp:
- Aug 16, 2003, 6:59:22 PM (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/GNU/src/binutils/include/objalloc.h
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.1.1.2
r608 r609 1 1 /* objalloc.h -- routines to allocate memory for objects 2 Copyright 1997 Free Software Foundation, Inc.2 Copyright 1997, 2001 Free Software Foundation, Inc. 3 3 Written by Ian Lance Taylor, Cygnus Solutions. 4 4 … … 57 57 #include <stddef.h> 58 58 #endif 59 #define OBJALLOC_ALIGN \60 ((ptrdiff_t) ((char *) &((struct objalloc_align *) 0)->d - (char *) 0))61 #else62 #define OBJALLOC_ALIGN \63 ((long) ((char *) &((struct objalloc_align *) 0)->d - (char *) 0))64 59 #endif 60 #ifndef offsetof 61 #define offsetof(TYPE, MEMBER) ((unsigned long) &((TYPE *)0)->MEMBER) 62 #endif 63 #define OBJALLOC_ALIGN offsetof (struct objalloc_align, d) 65 64 66 65 /* Create an objalloc structure. Returns NULL if malloc fails. */ -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.