home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / mac / programm / 21015 < prev    next >
Encoding:
Text File  |  1993-01-08  |  1.2 KB  |  37 lines

  1. Newsgroups: comp.sys.mac.programmer
  2. Path: sparky!uunet!mcsun!julienas!babbage!isis!bordier
  3. From: bordier@imag.fr (Jerome Bordier)
  4. Subject: Boolean type as parameter (THINK C 5)
  5. Message-ID: <C0JnrH.CwF@imag.fr>
  6. Organization: IMAG Institute, University of Grenoble, France
  7. Date: Fri, 8 Jan 1993 16:42:53 GMT
  8. Lines: 27
  9.  
  10. I have a problem with passing Boolean type parameters with THINK 5.0.3.
  11.  
  12. The following example comes from Transkel, the Paul Dubois' package.
  13. Function declaration header is :
  14.  
  15. Boolean SkelMenu (MenuHandle theMenu,
  16.                     void (*pSelect) (Integer),
  17.                     void (*pClobber) (MenuHandle),
  18.                     Boolean subMenu,
  19.                     Boolean drawBar)
  20.  
  21. calling instruction is :
  22.  
  23. (void) SkelMenu (m, DoFileMenu, nil, false, true);
  24.  
  25. When executing the program, values are not passed to SubMenu and drawBar
  26. parameters (they have both zero (false) value).
  27. Anybody have seen this problem ?
  28.  
  29. N.B. Boolean type is defined in Types.h header as:
  30. typedef unsigned char Boolean;
  31.  
  32. -- 
  33. Jerome BORDIER                        |Laboratoire de Structures Discretes et
  34. INTERNET: bordier@imag.fr             | de Didactique  IMAG  BP 53X
  35. AppleLink: IMAG                       |38041 GRENOBLE Cedex FRANCE
  36. ******************************************************************************
  37.