davidh@dent.Berkeley.EDU (David S. Harrison) (01/27/89)
Just before the X conference, I posted a note about problems with the Xlib prototypes I posted last week. The problem was related to the calling conventions used by ANSI-compliant C compilers when dealing with function prototypes. I have examined the prototypes and found to my surprize that there are no conflicts. None of the Xlib functions have char, short, or float argument types. This means the prototypes will work as advertised without change. There is one important exception: ANSI compilers whose `int' datatype is smaller than `long'. Most notably, this may include some compilers on 16-bit (and smaller) architectures where `int' is 16 bits and `long' is 32 bits (e.g., Intel 286 and below). The prototypes must be modified to be used on these machines. This problem is easy to overcome: drop me a note if you are interested in the details. As mentioned in my announcement, the files are available from shambhala.Berkeley.EDU (128.32.132.54) in the directory pub/XHeaders. You should find five files in this directory: XHeaders.doc General information XlibPr.h Replacement for <X11/Xlib.h> XutilPr.h Replacement for <X11/Xutil.h> XresPr.h Replacement for <X11/Xresource.h> XHeaders.tar.Z All of the files above I have also submitted the first four files in shar format to comp.sources.x. These files where semi-automatically generated from the sources and should be complete. However, if you find missing functions or incorrectly declared functions, please let me know. Note: these are not official files from the X Consortium. David Harrison UC Berkeley Electronics Research Lab (davidh@ic.Berkeley.EDU, ...!ucbvax!ucbcad!davidh)