Article View: comp.sys.mac
Article #25408LSC: booleans != TRUE ??
From: Sea Lance
Date: Tue, 16 Feb 1988 17:15
Date: Tue, 16 Feb 1988 17:15
21 lines
1450 bytes
1450 bytes
[line eater currently attending the Winter Olympics] Warning: novice mac programmer (== ApplyPatience) I'm using LSC 2.13 + 2.15 libs (thanks Rich) and was trying to generate a font point size menu with the appropriate entries highlighted (bold or italic) well IM says to use ReadFont() -- ok so I try RealFont(...) == TRUE and it always (for all the point sizes) uses the else portion. However if I use the inverse situation of RealFont(...) == FALSE it correctly will highlight some and not others. Now I did not change the #define for TRUE or FALSE in my .h so I assume it is coming from one of the standard includes. Is it better to use FALSE when dealing with IM functions that return pascal booleans? or is one of my defs screwed up? -- what is a pascal boolean really supposed to be returning? 0 and 1? 0 and non-0? or perhaps positive and negative? 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:
<983@ssc-bee.ssc-vax.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!mnetor!uunet!husc6!mit-eddie!uw-beaver!fluke!ssc-vax!sdyShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!husc6!mit-eddie!uw-beaver!fluke!ssc-vax!sdy From: sdy@ssc-vax.UUCP (Sea Lance) Newsgroups: comp.sys.mac Subject: LSC: booleans != TRUE ?? Message-ID: <983@ssc-bee.ssc-vax.UUCP> Date: 16 Feb 88 17:15:48 GMT Distribution: na Organization: BAC, Seattle Lines: 21 Keywords: LSC 2.13, RealFont