zsh-workers
 help / color / mirror / code / Atom feed
From: Vincent Lefevre <vincent@vinc17.net>
To: zsh-workers@zsh.org
Subject: Re: completions for c99
Date: Fri, 1 May 2020 02:15:17 +0200	[thread overview]
Message-ID: <20200501001517.GD818727@zira.vinc17.org> (raw)
In-Reply-To: <9fddc5df-fd4a-4f24-9fb8-f69a9ce02726@www.fastmail.com>

On 2020-04-30 22:17:43 +0000, Daniel Shahaf wrote:
> Vincent Lefevre wrote on Thu, 30 Apr 2020 20:40 +00:00:
> > c99 should be added to the command list of
> > "functions/Completion/Unix/_gcc".
> 
> That would cause several hundred options to be offered, but on some
> systems c99(1) supports far fewer options:
> 
> https://pubs.opengroup.org/onlinepubs/9699919799/utilities/c99.html

Note that POSIX lists the minimum that needs to be supported.

> https://www.freebsd.org/cgi/man.cgi?query=c99&manpath=FreeBSD+12.1-RELEASE
> 
> We probably need a bit of $service-specific code, to see whether c99(1) is
> in fact gcc or clang, in which case we can fall back to offering all
> their options, or not, in which case we should offer just the handful of
> options that's in fact supported.

I've noticed that cc is in the list, and on some platforms, it may
also support fewer options. This can even include Debian machines,
where cc is (at least) either gcc or tcc, depending on the system
configuration.

-- 
Vincent Lefèvre <vincent@vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)

      reply	other threads:[~2020-05-01  0:16 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-30 20:40 Vincent Lefevre
2020-04-30 22:17 ` Daniel Shahaf
2020-05-01  0:15   ` Vincent Lefevre [this message]

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=20200501001517.GD818727@zira.vinc17.org \
    --to=vincent@vinc17.net \
    --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).