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