Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!sdd.hp.com!think.com!paperboy!meissner From: meissner@osf.org (Michael Meissner) Newsgroups: comp.lang.c Subject: Re: ANSI-compatible function declarations with args Message-ID: Date: 27 Mar 91 21:12:12 GMT References: <1991Mar27.011212.5929@tss.com> Sender: news@OSF.ORG Organization: Open Software Foundation Lines: 34 In-reply-to: yost@tss.com's message of 27 Mar 91 01:12:12 GMT In article <1991Mar27.011212.5929@tss.com> yost@tss.com (Dave Yost) writes: | See this: | | #ifdef __ANSI__ && !defined (PROTO) | #define PROTO | #endif You probably mean something like: #ifndef PROTO #ifdef __STDC__ #define PROTO #endif #endif since your #ifdef line is illegal, and the define that ANSI specifies is __STDC__. | #undef decl_args | #ifdef PROTO | #define decl_args(x) x | #else | #define decl_args(x) () | #endif | | Are there any standards for what to call this 'decl_args' macro? I tend to call it PROTO myself. -- Michael Meissner email: meissner@osf.org phone: 617-621-8861 Open Software Foundation, 11 Cambridge Center, Cambridge, MA, 02142 Considering the flames and intolerance, shouldn't USENET be spelled ABUSENET?