Path: utzoo!attcan!uunet!wuarchive!brutus.cs.uiuc.edu!apple!bloom-beacon!odi.COM!bob From: bob@odi.COM (Bob Miner) Newsgroups: comp.windows.x Subject: function prototypes w/arguments for Xt? Message-ID: <8908241801.AA00405@mojo.odi.com> Date: 24 Aug 89 18:01:16 GMT Sender: daemon@bloom-beacon.MIT.EDU Organization: The Internet Lines: 37 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