Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Where is `_' defined?



On Fri, 11 Oct 2019 at 13:31, Peter Stephenson <p.stephenson@xxxxxxxxxxx> wrote:
>
> On Fri, 2019-10-11 at 13:15 +0200, Sebastian Gniazdowski wrote:
> > Hello,
> > I'm trying to compile a part of Zsh. I'm getting the following error:
> >
> > zsh.h:631:33: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘_’
> >  typedef void (*voidvoidfnptr_t) _((void));
> >
> > Trying to find where the underscore is defined is boundary to a
> > miracle. Could anyone help?
>
> That's part of the system that fixes up prototypes for K&R C,
> which I think is actually redundant by some number of decades.
> See zsh_system.h.
>
>
> #ifdef PROTOTYPES
> # define _(Args) Args
> #else
> # define _(Args) ()
> #endif
>
>
> pws

Thanks

-- 
Sebastian Gniazdowski
News: https://twitter.com/ZdharmaI
IRC: https://kiwiirc.com/client/chat.freenode.net:+6697/#zplugin
Blog: http://zdharma.org



Messages sorted by: Reverse Date, Date, Thread, Author