Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Where is `_' defined?
- X-seq: zsh-workers 44820
- From: Peter Stephenson <p.stephenson@xxxxxxxxxxx>
- To: "zsh-workers@xxxxxxx" <zsh-workers@xxxxxxx>
- Subject: Re: Where is `_' defined?
- Date: Fri, 11 Oct 2019 11:30:15 +0000
- Accept-language: en-GB, en-US
- Cms-type: 201P
- Dkim-filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20191011113017euoutp0140c203424c2a3183f46c3435087b0b6b~MlEp6focq0503905039euoutp01E
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1570793417; bh=wVe8H/nI0mdHAww2YOGyXRFz5eGOYBjCYIlibOOHzYY=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Lb+iSjMnzv+B/GR2xJxPa000mHh0RQ7KSWfBl5WTHte1F2fMHQbc16T47cdm2ChpZ p3YY0Artk+BBU+GEeGR5jupoCy6ABVHU5rrFAvLHITdwr1jQylSP+QkdvTOzvPXNk7 2Ramd8CfIX6u4GzVqjqhgCVx7DnEDZ38ozJRK1lY=
- In-reply-to: <CAKc7PVCyt3N2pFNrqKbSy6YNEeE9712UC3Xf9pyMnwmUkR90ag@mail.gmail.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <CGME20191011111614epcas2p2cccbf90d40bd33adca6b0a772247346b@epcas2p2.samsung.com> <CAKc7PVCyt3N2pFNrqKbSy6YNEeE9712UC3Xf9pyMnwmUkR90ag@mail.gmail.com>
- Thread-index: AQHVgCV7jVrgNnhyc0WE3Lh1zVpdVKdVPXKA
- Thread-topic: Where is `_' defined?
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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author