Path: utzoo!mnetor!uunet!lll-winken!lll-lcc!ames!pasteur!agate!violet.berkeley.edu!edmoy From: edmoy@violet.berkeley.edu Newsgroups: comp.sys.mac Subject: Re: re: LSC: booleans != TRUE ?? -- missed point. Message-ID: <7159@agate.BERKELEY.EDU> Date: 24 Feb 88 19:04:03 GMT References: <990@ssc-bee.ssc-vax.UUCP> Sender: usenet@agate.BERKELEY.EDU Reply-To: edmoy@violet.berkeley.edu.UUCP () Distribution: na Organization: University of California, Berkeley Lines: 19 In article <990@ssc-bee.ssc-vax.UUCP> sdy@ssc-vax.UUCP (Sea Lance) writes: >I guess I was really asking why TRUE wasn't matching what was being returned >from RealFont() -- Do the PASCAL boolean Toolbox functions really return other >values than the LSC header defined TRUE and FALSE?? As I recall, the answer is yes. I remember having a similar problem when I was using Megamax C compiler (don't worry, I'm converted to LSC, thank you). Somewhere I read that in Pascal, a Boolean false was zero (no bits set) while a Boolean true is -1 (all bits set). The TRUE definition in the include file is per C standard, but not Pascal standard. So it is best to use if(RealFont()) ... Edward Moy Workstation Software Support Group University of California Berkeley, CA 94720 edmoy@violet.Berkeley.EDU ucbvax!violet!edmoy