(OFFSET): Remove, use standard offsetof().

(SETOFF): Unused, remove.
This commit is contained in:
Markus Armbruster 2004-04-07 17:38:43 +00:00
parent 5d302eaad5
commit 83478bd79e
2 changed files with 7 additions and 12 deletions

View file

@ -108,12 +108,6 @@ typedef signed char s_char;
#define ATTRIBUTE(attr)
#endif /* !aix && !sgi */
typedef short coord;
/*
* watch it; your compiler might not like this.
* If you think this is bogus, look at /usr/include/struct.h
*/
#define OFFSET(stype, oset) ((int)(&(((struct stype *)0)->oset)))
#define SETOFF(sinst, oset) ((s_char *) (sinst) + (oset))
#ifndef bit
#define bit(x) (1<<(x))