Path: utzoo!attcan!uunet!pcrat!rick From: rick@pcrat.UUCP (Rick Richardson) Newsgroups: news.software.b Subject: Re: compiler error? Message-ID: <786@pcrat.UUCP> Date: 3 Jul 89 06:59:33 GMT References: <1989Jun29.010600.6802@intacc.uucp> <1989Jun30.204822.2821@utzoo.uucp> <2722@splut.conmicro.com> Reply-To: rick@pcrat.UUCP (Rick Richardson) Organization: PC Research, Inc., Tinton Falls, NJ Lines: 22 In article <2722@splut.conmicro.com> jay@splut.conmicro.com (Jay "you ignorant splut!" Maynard) writes: >In article <1989Jun30.204822.2821@utzoo.uucp> henry@utzoo.uucp (Henry Spencer) writes: >>Well, you might try simplifying offsetof to >>#define offsetof(type, mem) ((int)&((type *)NULL)->mem) > >Ack!!! Assuming that (char *) == (int) is terrible programming practice. >I thought you knew better, Henry. But it does workaround the bug in the AT&T 286 SGS. I just put a #ifdef iAPX286 around the modified offsetof() definition. > >We all know that Microport's compiler is buggy as hell. This particular bug goes back all the way to AT&T. Its in the Venix/286 LMCC compilation system (a.k.a. 286 SGS), too. -- Rick Richardson | JetRoff "di"-troff to LaserJet Postprocessor|uunet!pcrat!dry2 PC Research,Inc.| Mail: uunet!pcrat!jetroff; For anon uucp do:|for Dhrystone 2 uunet!pcrat!rick| uucp jetroff!~jetuucp/file_list ~nuucp/. |submission forms. jetroff Wk2200-0300,Sa,Su ACU {2400,PEP} 12013898963 "" \d\r\d ogin: jetuucp