Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!uupsi!cmcl2!adm!lhc!lhc!warsaw From: warsaw@nlm.nih.gov (Barry A. Warsaw) Newsgroups: comp.windows.open-look Subject: XView: bogus function prototypes in Message-ID: Date: 1 May 91 21:38:16 GMT Sender: usenet@nlm.nih.gov (usenet news poster) Reply-To: warsaw@nlm.nih.gov Organization: Century Computing, Inc. Lines: 20 May of the function prototypes in use the C++ reserved word "class" as an argument name. This causes syntax errors when using C++ and XView defaults. Here's an example: EXTERN_FUNCTION (char * defaults_get_string, (char *name, char *class, char *default)); ^^^^^ The simple work around is to *not* include but instead supply your own EXTERN_FUNCTION macro without argument names. Eg: EXTERN_FUNCTION(char* defaults_get_string, (char*, char*, char*)); Sun, please fix this for the next release. Thank you. -Barry NAME: Barry A. Warsaw INET: warsaw@nlm.nih.gov TELE: (301) 496-1936 UUCP: uunet!nlm.nih.gov!warsaw