ANSI-compatible function declarations with args
Michael Meissner
meissner at osf.org
Thu Mar 28 07:12:12 AEST 1991
In article <1991Mar27.011212.5929 at tss.com> yost at 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 at 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?
More information about the Comp.lang.c
mailing list