Xref: utzoo comp.lang.c:37629 comp.std.c:4532 Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!sdd.hp.com!spool.mu.edu!uunet!tekbspa!tss.com!yost From: yost@tss.com (Dave Yost) Newsgroups: comp.lang.c,comp.std.c Subject: Re: ANSI-compatible function declarations with args Message-ID: <1991Mar27.194416.13872@tss.com> Date: 27 Mar 91 19:44:16 GMT Sender: news@tss.com (USENET Network News) Reply-To: yost@tss.COM Organization: Teknekron Software Systems, Inc. Lines: 29 See this: #ifdef __ANSI__ && !defined (PROTO) #define PROTO #endif #undef decl_args #ifdef PROTO #define decl_args(x) x #else #define decl_args(x) () #endif Are there any standards (preferably only one) for what to call this 'decl_args' macro? As perhaps all of you know, a macro like this allows one to write function declarations which work optimally with both ANSI and non-ANSI compilers. Example: extern void qsort decl_args (( char* base, int nelements, int width, int *(compar) decl_args ((char* e1, char* e2)) )); --dave yost