home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / unix / ultrix / 6691 < prev    next >
Encoding:
Text File  |  1992-09-04  |  1.4 KB  |  34 lines

  1. Newsgroups: comp.unix.ultrix
  2. Path: sparky!uunet!haven.umd.edu!darwin.sura.net!Sirius.dfn.de!chx400!sdz01!asterix!steve
  3. From: steve@asterix (steven husting)
  4. Subject: ANSI prototypes and X headers
  5. Sender: @sdz01.uu.ch
  6. Message-ID: <1992Sep04.130829.15559@sdz01.uu.ch>
  7. Date: Fri, 04 Sep 1992 13:08:29 GMT
  8. Lines: 21
  9. Reply-To: steve@asterix (steven husting)
  10. Organization: Digital Equipment Corporation
  11. Keywords: Can't I use them?
  12.  
  13.  
  14. For the last couple of months I have been working on a decstation
  15. with Ultrix 4.2a on a Motif application. I recently discovered 
  16. to my horror I had no function prototypes for any library functions.
  17. I quickly found the prototypes were in the header files, surrounded by
  18. #ifdef __STDC__, as usual, but that the Ultrix C compiler is not
  19. standard and does not define __STDC__. Okay, I defined it myself. I 
  20. got many warnings (const not yet implemented, etc.) that I can work around,
  21. but the X headers are hopeless. For example, Xlib.h needs the XSizeHints 
  22. typedef, which is defined in XUtil.h, but XUtil.h needs the Bool #define,
  23. which is defined in ... Xlib.h. And so on. 
  24.  
  25. Now, I really would like to have function prototypes. I don't write 
  26. perfect code yet, not even for those functions which we've all used 
  27. thousands of times and don't need to look up the man page anymore,
  28. but I haven't figured out how to work around the X headers yet. If anyone
  29. could help me ...
  30.  
  31. Steven Husting
  32. Pinck Softech AG
  33. Reinach, Switzerland
  34.