🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.mac
Article #25584

Re: re: LSC: booleans != TRUE ?? -- missed point.

#25584
From: Sea Lance
Date: Mon, 22 Feb 1988 23:45
23 lines
1543 bytes
From the responses I think I was slightly misunderstood (I never was real good
at explaining things). -- I realize that in C you should use if(RealFont())...
and not if(RealFont()==TRUE)... as mentioned by many helpful folks.

Only I had tried this earlier and it didn't seem to work (-- a few fixes later
and it now does) so when I was looking at the function RealFont I noticed that
it was a PASCAL Toolbox call that returned a boolean -- Not willing to trust
that a PASCAL TRUE would be the same as in C I used the #define'd TRUE
that seems to exist in one of the LSC header files, assuming it (and FALSE)
had been set up just to accomodate the returned PASCAL boolean values -- only
this wasn't the case.

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??

steve.

-- 
Steven D. Yee                 >>> my employer does not share my opinions  <<<
uw-beaver!ssc-vax!sdy         >>> (that's because I'm always right! ;-)   <<<

(chant) We want more!  We want more!  We want more lines than four!!!!!!!
Technical Details
Message-ID: <990@ssc-bee.ssc-vax.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!lll-winken!lll-lcc!ames!hao!gatech!bloom-beacon!mit-eddie!uw-beaver!ssc-vax!sdy

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!lll-winken!lll-lcc!ames!hao!gatech!bloom-beacon!mit-eddie!uw-beaver!ssc-vax!sdy
From: sdy@ssc-vax.UUCP (Sea Lance)
Newsgroups: comp.sys.mac
Subject: Re: re: LSC: booleans != TRUE ??  -- missed point.
Message-ID: <990@ssc-bee.ssc-vax.UUCP>
Date: 22 Feb 88 23:45:18 GMT
Distribution: na
Organization: BAC, Seattle
Lines: 22