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 7198 invoked from network); 30 Apr 2020 22:18:45 -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; 30 Apr 2020 22:18:45 -0000 Received: (qmail 12375 invoked by alias); 30 Apr 2020 22:18:39 -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: 45751 Received: (qmail 13376 invoked by uid 1010); 30 Apr 2020 22:18:39 -0000 X-Qmail-Scanner-Diagnostics: from out3-smtp.messagingengine.com 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(66.111.4.27):SA:0(-2.6/5.0):. Processed in 1.020191 secs); 30 Apr 2020 22:18:39 -0000 X-Envelope-From: d.s@daniel.shahaf.name X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: none (ns1.primenet.com.au: domain at daniel.shahaf.name does not designate permitted sender hosts) X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrieeigddtjecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefofgggkfgjfhffhffvufgtsehttdertderredtnecuhfhrohhmpedfffgrnhhi vghlucfuhhgrhhgrfhdfuceougdrshesuggrnhhivghlrdhshhgrhhgrfhdrnhgrmhgvqe enucggtffrrghtthgvrhhnpedvvdeludevleeiudetueelkeevhfehieffffefleefheev ueegleevvdehgfehhfenucffohhmrghinhepohhpvghnghhrohhuphdrohhrghdpfhhrvg gvsghsugdrohhrghenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhl fhhrohhmpegurdhssegurghnihgvlhdrshhhrghhrghfrdhnrghmvg X-ME-Proxy: X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.3.0-dev0-351-g9981f4f-fmstable-20200421v1 Mime-Version: 1.0 Message-Id: <9fddc5df-fd4a-4f24-9fb8-f69a9ce02726@www.fastmail.com> In-Reply-To: <20200430204011.GB818727@zira.vinc17.org> References: <20200430204011.GB818727@zira.vinc17.org> Date: Thu, 30 Apr 2020 22:17:43 +0000 From: "Daniel Shahaf" To: "Vincent Lefevre" , zsh-workers@zsh.org Subject: Re: completions for c99 Content-Type: text/plain 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 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. Anyone interested in writing the patch? > Note: c99 is the name of the C compiler specified by POSIX.