From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/1800 Path: news.gmane.org!not-for-mail From: Szabolcs Nagy Newsgroups: gmane.linux.lib.musl.general Subject: Re: [PATCH/RFC] inline cleanup/C89 support Date: Fri, 31 Aug 2012 10:34:18 +0200 Message-ID: <20120831083418.GO1104@port70.net> References: <12609.132.241.65.179.1345698455.squirrel@lavabit.com> <503622B4.8020506@barfooze.de> <20120823123453.GO27715@brightrain.aerifal.cx> <20120823172519.39f899b6@newbook> <20120824020749.GU27715@brightrain.aerifal.cx> <20120824023425.GV27715@brightrain.aerifal.cx> <20120824075315.GF10731@port70.net> <20120830154534.454e8d66@newbook> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1346402081 6763 80.91.229.3 (31 Aug 2012 08:34:41 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 31 Aug 2012 08:34:41 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-1801-gllmg-musl=m.gmane.org@lists.openwall.com Fri Aug 31 10:34:43 2012 Return-path: Envelope-to: gllmg-musl@plane.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1T7MgW-0007IO-Fg for gllmg-musl@plane.gmane.org; Fri, 31 Aug 2012 10:34:36 +0200 Original-Received: (qmail 22398 invoked by uid 550); 31 Aug 2012 08:34:30 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 22390 invoked from network); 31 Aug 2012 08:34:30 -0000 Content-Disposition: inline In-Reply-To: <20120830154534.454e8d66@newbook> User-Agent: Mutt/1.5.21 (2010-09-15) Xref: news.gmane.org gmane.linux.lib.musl.general:1800 Archived-At: * Isaac Dunham [2012-08-30 15:45:34 -0700]: > On Fri, 24 Aug 2012 09:53:16 +0200 > Szabolcs Nagy wrote: > > this won't work with c++, nor old strict c compilers > > without __inline and __restrict and can break various > > c parsing tools (ctags, swig, various lints, ..) > > 1. Do any of these "old strict c compilers" exist on Linux? yes (eg sdcc for microcontrollers, plan9 cc used for the go runtime) > Are any of them worth supporting? probably no > 2. Have you tested those C parsing tools? Have they been updated to > support C99? > i used some of them, i know ctags handles __restrict while swig (1.3) does not many of the c (and c++) parsing tools dont do correct preprocessing or don't define all the macros like __STDC_VERSION__ so even if c99 grammar is mostly supported i wouldnt be surprised if doxygen or indent or similar tools had problems with __restrict > If it is a realistic combination (can produce a working hello world), > then it *might* be worth supporting. the headers are not only for compiling musl of course glibc uses __restrict so it should work most of the time