zsh-workers
 help / color / Atom feed
From: Sebastian Gniazdowski <sgniazdowski@gmail.com>
To: Peter Stephenson <p.stephenson@samsung.com>
Cc: "zsh-workers@zsh.org" <zsh-workers@zsh.org>
Subject: Re: Where is `_' defined?
Date: Fri, 11 Oct 2019 13:50:37 +0200
Message-ID: <CAKc7PVDt7WGdCPKa3hu9Xc6mcPAXsmz8udurQm96=qDUJo=bfQ@mail.gmail.com> (raw)
In-Reply-To: <1570793415.3825.5.camel@samsung.com>

On Fri, 11 Oct 2019 at 13:31, Peter Stephenson <p.stephenson@samsung.com> 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

      reply index

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
2019-10-11 11:50     ` Sebastian Gniazdowski [this message]

Reply instructions:

You may reply publically 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='CAKc7PVDt7WGdCPKa3hu9Xc6mcPAXsmz8udurQm96=qDUJo=bfQ@mail.gmail.com' \
    --to=sgniazdowski@gmail.com \
    --cc=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

zsh-workers

Archives are clonable: git clone --mirror http://inbox.vuxu.org/zsh-workers

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://inbox.vuxu.org/vuxu.archive.zsh.workers


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git