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

Re: completions for c99



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@xxxxxxxxxx> - 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)



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