bob@odi.COM (Bob Miner) (08/25/89)
Does anyone out there have function prototypes for Xt functions where the arguments are declared? I'm using C++ with Xt and therefore must have prototypes with arguments. Empty ()'s are not good enough. If someone has a script which generates prototypes from C source, that'd be great also. Thanks to some files which came with InterViews on the X11R3 tape, I've got what I need for Xlib functions. By the way, it'd be nice if the Xlib, Xt and Xaw function prototypes came both as they are now - empty ()'s - and as ANSI C prototypes with arguments declared. A fairly large number of programmer errors discussed in this mailing list are due to argument mismatches, which would all disappear if people used ANSI C compilers and we had function prototypes with arguments. Function declarations would look like: #ifdef __STDC__ void XtAddCallback( Widget, String, XtCallbackProc, caddr_t); #else void XtAddCallback(); #endif /* __STDC__ */ My email address is bob@odi.com. Thanks in advance, Bob Miner Object Design, Inc. 1 New England Executive Park Burlington, MA 01803 (617) 270-9797