zsh-workers
 help / color / mirror / code / Atom feed
From: Peter Stephenson <p.stephenson@samsung.com>
To: "zsh-workers@zsh.org" <zsh-workers@zsh.org>
Subject: Re: Where is `_' defined?
Date: Fri, 11 Oct 2019 11:30:15 +0000	[thread overview]
Message-ID: <1570793415.3825.5.camel@samsung.com> (raw)
In-Reply-To: <CAKc7PVCyt3N2pFNrqKbSy6YNEeE9712UC3Xf9pyMnwmUkR90ag@mail.gmail.com>

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

  parent reply	other threads:[~2019-10-11 11:31 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CGME20191011111614epcas2p2cccbf90d40bd33adca6b0a772247346b@epcas2p2.samsung.com>
2019-10-11 11:15 ` Sebastian Gniazdowski
2019-10-11 11:26   ` Roman Perepelitsa
2019-10-11 11:50     ` Sebastian Gniazdowski
2019-10-11 11:30   ` Peter Stephenson [this message]
2019-10-11 11:50     ` Sebastian Gniazdowski

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1570793415.3825.5.camel@samsung.com \
    --to=p.stephenson@samsung.com \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).