Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!rutgers!cs.utexas.edu!uunet!nuchat!splut!jay From: jay@splut.conmicro.com (Jay "you ignorant splut!" Maynard) Newsgroups: news.software.b Subject: Re: compiler error? Message-ID: <2722@splut.conmicro.com> Date: 2 Jul 89 15:15:38 GMT References: <1989Jun29.010600.6802@intacc.uucp> <1989Jun30.204822.2821@utzoo.uucp> Reply-To: jay@splut.conmicro.com (Jay "you ignorant splut!" Maynard) Organization: Confederate Microsystems, League City, TX Lines: 23 In article <1989Jun30.204822.2821@utzoo.uucp> henry@utzoo.uucp (Henry Spencer) writes: >>#define offsetof(type, mem) ((char *)&((type *)NULL)->mem - (char *)NULL) >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. >A complaint to Microport about their defective >compiler is probably also a good idea. We all know that Microport's compiler is buggy as hell. Complaining about it to them is unlikely to help, for two reasons: 1) They effectively are out of business: chapter 11, and nobody answers the phones. 2) They didn't fix it while they were still around, and knew it was buggy. -- Jay Maynard, EMT-P, K5ZC, PP-ASEL | Never ascribe to malice that which can uucp: uunet!nuchat! (eieio)| adequately be explained by stupidity. {killer,bellcore}!texbell!splut!jay +---------------------------------------- internet: jay@splut.conmicro.com | Richard Sexton, proud Texan.