This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
RE: Function definition Error
- From: "Yamin Bismilla" <y2bismil at engmail dot uwaterloo dot ca>
- To: "'Eljay Love-Jensen'" <eljay at adobe dot com>
- Cc: <gcc-help at gcc dot gnu dot org>
- Date: Wed, 8 Oct 2003 20:43:18 -0400
- Subject: RE: Function definition Error
- Reply-to: <y2bismil at engmail dot uwaterloo dot ca>
Eljay,
I looked it up a bit, and it appears the code is old and is used to be both
K&R and ANSI compatible. I'm pretty sure I coped it right, but maybe I
didn't.
there is macro: __(x) defined which basically does this
#ifdef __STDC__
# define __(x) x
#else
#define __(x)
All the defs, except for the ASY TEST one (which is the first one) appear to
be macroed properly.
the ASY_TEST one should become:
typedef void ASY_TESTPROC_T (OIDC_T lastmatch, int compc, OIDC_T *compl,
...);
could the "..." be posing a problem in the exapansion of the macro?
Yamin
> -----Original Message-----
> From: Eljay Love-Jensen [mailto:eljay@adobe.com]
> Sent: October 8, 2003 5:54 PM
> To: y2bismil@engmail.uwaterloo.ca
> Cc: gcc-help@gcc.gnu.org
> Subject: Re: Function definition Error
>
>
> Hi Yamin,
>
> This...
>
> typedef void ASY_TESTPROC_T ((OIDC_T lastmatch, int compc,
> OIDC_T *compl, ...));
>
> ...does not look like a syntactically valid typedef (I
> think). Even if...
>
> typedef unsigned long int OIDC_T;
>
> ...has already been established.
>
> Something is horribly awry.
>
> --Eljay
>