From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: (qmail 20860 invoked from network); 1 May 2020 00:16:05 -0000 Received-SPF: pass (primenet.com.au: domain of zsh.org designates 203.24.36.2 as permitted sender) receiver=inbox.vuxu.org; client-ip=203.24.36.2 envelope-from= Received: from ns1.primenet.com.au (HELO primenet.com.au) (203.24.36.2) by inbox.vuxu.org with ESMTPUTF8; 1 May 2020 00:16:05 -0000 Received: (qmail 213 invoked by alias); 1 May 2020 00:15:56 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: List-Unsubscribe: X-Seq: 45755 Received: (qmail 23025 invoked by uid 1010); 1 May 2020 00:15:56 -0000 X-Qmail-Scanner-Diagnostics: from joooj.vinc17.net by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.102.2/25793. spamassassin: 3.4.4. Clear:RC:0(155.133.131.76):SA:0(-1.9/5.0):. Processed in 1.601222 secs); 01 May 2020 00:15:56 -0000 X-Envelope-From: vincent@vinc17.net X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: none (ns1.primenet.com.au: domain at vinc17.net does not designate permitted sender hosts) Date: Fri, 1 May 2020 02:15:17 +0200 From: Vincent Lefevre To: zsh-workers@zsh.org Subject: Re: completions for c99 Message-ID: <20200501001517.GD818727@zira.vinc17.org> Mail-Followup-To: zsh-workers@zsh.org References: <20200430204011.GB818727@zira.vinc17.org> <9fddc5df-fd4a-4f24-9fb8-f69a9ce02726@www.fastmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <9fddc5df-fd4a-4f24-9fb8-f69a9ce02726@www.fastmail.com> X-Mailer-Info: https://www.vinc17.net/mutt/ User-Agent: Mutt/1.13.5+143 (0fdc8668) vl-126968 (2020-04-29) 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 - Web: 100% accessible validated (X)HTML - Blog: Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)