home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.mac.programmer
- Path: sparky!uunet!mcsun!julienas!babbage!isis!bordier
- From: bordier@imag.fr (Jerome Bordier)
- Subject: Boolean type as parameter (THINK C 5)
- Message-ID: <C0JnrH.CwF@imag.fr>
- Organization: IMAG Institute, University of Grenoble, France
- Date: Fri, 8 Jan 1993 16:42:53 GMT
- Lines: 27
-
- I have a problem with passing Boolean type parameters with THINK 5.0.3.
-
- The following example comes from Transkel, the Paul Dubois' package.
- Function declaration header is :
-
- Boolean SkelMenu (MenuHandle theMenu,
- void (*pSelect) (Integer),
- void (*pClobber) (MenuHandle),
- Boolean subMenu,
- Boolean drawBar)
-
- calling instruction is :
-
- (void) SkelMenu (m, DoFileMenu, nil, false, true);
-
- When executing the program, values are not passed to SubMenu and drawBar
- parameters (they have both zero (false) value).
- Anybody have seen this problem ?
-
- N.B. Boolean type is defined in Types.h header as:
- typedef unsigned char Boolean;
-
- --
- Jerome BORDIER |Laboratoire de Structures Discretes et
- INTERNET: bordier@imag.fr | de Didactique IMAG BP 53X
- AppleLink: IMAG |38041 GRENOBLE Cedex FRANCE
- ******************************************************************************
-