home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / sys / isis / 295 < prev    next >
Encoding:
Text File  |  1992-11-08  |  1.5 KB  |  37 lines

  1. Newsgroups: comp.sys.isis
  2. Path: sparky!uunet!caen!batcomputer!cornell!ken
  3. From: ken@cs.cornell.edu (Ken Birman)
  4. Subject: Re: NIX Problems with the definition of NULLARG in i
  5. Message-ID: <1992Nov8.184128.11599@cs.cornell.edu>
  6. Organization: Cornell Univ. CS Dept, Ithaca NY 14853
  7. References: <1992Nov7.231718.1707@msuinfo.cl.msu.edu> <1992Nov7.234834.7701@msuinfo.cl.msu.edu>
  8. Date: Sun, 8 Nov 1992 18:41:28 GMT
  9. Lines: 26
  10.  
  11. In article <1992Nov7.234834.7701@msuinfo.cl.msu.edu> adc@tardis.msu.edu writes:
  12. >Sorry, another application I was using had its own idea on what VOID
  13. >should be.
  14.  
  15. Glad you tracked it down.  The reason we #define VOID as void on some
  16. systems and char on others is that one whole "line" of C compilers
  17. barfs on "void *" as an argument type to a procedure.   If these see
  18.     void abc(xyz)
  19.        void *xyz;
  20.        {
  21.         void *zyx;
  22.         zyx = xyz;
  23.        }
  24. they tend to dump core, or claim that xyz is an undefined variable, or
  25. just generate wrong code.
  26.  
  27. So, we learned back in 1987 that it was better to use VOID instead of
  28. void all through our source, and #define VOID to be char on compilers
  29. that don't correctly implement the C language...
  30.  
  31. Sorry that you ran into this problem.  Probably, we should rename this
  32. type "ISIS_VOID" to avoid future encounters with the same thing.
  33. -- 
  34. Kenneth P. Birman                              E-mail:  ken@cs.cornell.edu
  35. 4105 Upson Hall, Dept. of Computer Science     TEL:     607 255-9199 (office)
  36. Cornell University Ithaca, NY 14853 (USA)      FAX:     607 255-4428
  37.