Path: utzoo!attcan!uunet!lll-winken!ames!oliveb!apple!rutgers!cmcl2!adm!smoke!gwyn From: gwyn@smoke.BRL.MIL (Doug Gwyn ) Newsgroups: comp.lang.c Subject: Re: AT&T C compilers Keywords: C compiler,bug? Message-ID: <9717@smoke.BRL.MIL> Date: 26 Feb 89 01:54:23 GMT References: <569@marob.MASA.COM> Reply-To: gwyn@brl.arpa (Doug Gwyn (VLD/VMB) ) Organization: Ballistic Research Lab (BRL), APG, MD. Lines: 12 In article <569@marob.MASA.COM> samperi@marob.MASA.COM (Dominick Samperi) writes: >The AT&T C compiler (from System V, Release 2?) chokes on a declaration >of the form: >extern int bob(double (*)()) ; Of course it does, because that's a function prototype, which was only recently added to the C language. AT&T UNIX C compilers up to SVR4 support a flavor of C modeled after K&R 1st Edition Appendix A, with some common extensions (enums, struct copy, void). I am told that the UNIX SVR4 C compiler will conform to the (forthcoming) ANSI C standard, which includes function prototypes. Until then, you must leave the argument declarations out of your function declarations.