Newsgroups: news.software.b
Path: utzoo!henry
From: henry@utzoo.uucp (Henry Spencer)
Subject: Re: C news on System V/AT (fix)
Message-ID: <1989Jul13.154431.28974@utzoo.uucp>
Organization: U of Toronto Zoology
References: <583@axis.fr>
Date: Thu, 13 Jul 89 15:44:31 GMT

In article <583@axis.fr> philip@axis.fr (Philip Peake) writes:
>...complaints from the compiler, about too complex expressions.
>The problem is the offset() macro, which calculates the offset of a structure
>member *at compile time*...

Alas, quite a few people have reported trouble with this one.  The offsetof()
macro really seems to strain compilers.  Those compilers will have to be
fixed eventually, since ANSI C requires said macro (that's where the idea
came from, in fact), but that's not much comfort now.  Unfortunately, Geoff
tells me that using that macro in that table made the code a whole lot
simpler...
-- 
$10 million equals 18 PM       |     Henry Spencer at U of Toronto Zoology
(Pentagon-Minutes). -Tom Neff  | uunet!attcan!utzoo!henry henry@zoo.toronto.edu
