RE: Function definition Error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx]
> Sent: October 8, 2003 5:54 PM
> To: y2bismil@xxxxxxxxxxxxxxxxxxxx
> Cc: gcc-help@xxxxxxxxxxx
> 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
>


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux