home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / unix / aix / 12565 < prev    next >
Encoding:
Text File  |  1992-12-15  |  1.6 KB  |  44 lines

  1. Newsgroups: comp.unix.aix
  2. Path: sparky!uunet!icmv!paris!mtranle
  3. From: mtranle@paris.IntelliCorp.COM (Minh Tran-Le)
  4. Subject: Re: More IBM "oversights"
  5. Message-ID: <mtranle.724400592@paris>
  6. Date: 15 Dec 92 06:23:12 GMT
  7. Reply-To: tranle@intellicorp.com
  8. References: <4348@unisql.UUCP> <Bz9A6n.6xq@constellation.ecn.uoknor.edu>
  9. Nntp-Posting-Host: paris
  10. Organization: IntelliCorp Inc.
  11. Lines: 31
  12.  
  13. dwight@geohub.gcn.uoknor.edu (Dwight D. Moore) writes:
  14.  
  15. >In article <4348@unisql.UUCP>, wrat@unisql.UUCP (wharfie) writes:
  16. >|
  17. >|>The xlc compiler is absolutely recalcitrant about accepting
  18. >|>anything like " Window foo = NULL".  But the X11 headers
  19. >|>are full of stuff like "XtWindowOfObject(object) != NULL"
  20. >|>which of course won't compile with the native compiler.  We
  21. >|>have to sprinkle our code with crap like "#ifdef IBM #undef XtIsRealized"
  22. >|>and fix it.
  23. >|>
  24. >|>If IBM has a better compiler (I can't believe they compiled X  with
  25. >|>xlc) can a customer get it?  Or does xlc have an undocumented
  26. >|>"Stop behaving like turbo pascal" mode?
  27.  
  28. >A better compiler.? Don't blame
  29. >IBM and their compiler for doing its job; you need to understand the
  30. >nuances between K & R C, ANSI C, and the other mutations. xlc does
  31. >what it is supposed to do. ANSI C has strict  type checking
  32. >if the compiler enforces it, which is the default for xlc.
  33. >Read the file  /usr/lpp/xlc/bin/README.xlc for more information
  34. >on the compiler.
  35.  
  36. If you really want to stick with the strict ansi C version xlc or c89, you
  37. need to compile with the following define:
  38.  
  39.     c89 -D_ALL_SOURCE -DNULL=0 ...
  40.  
  41. The X11R5 headers should be more correct it its useage of NULL.
  42.  
  43. Minh Tran-Le.
  44.