Path: csiph.com!news.swapon.de!eternal-september.org!feeder.eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail From: Keith Thompson Newsgroups: comp.lang.c Subject: Re: C Translator Date: Mon, 01 Apr 2019 13:41:11 -0700 Organization: None to speak of Lines: 37 Message-ID: References: <87y34yc67j.fsf@bsb.me.uk> <87lg0xbg9y.fsf@bsb.me.uk> <5c9ef544.996282798@core> <_1InE.230560$MT2.63924@fx21.am4> <5c9f93d9.1036879283@core> <87o95s9k7v.fsf@bsb.me.uk> <87imvzaiis.fsf@bsb.me.uk> <877ecf9lyv.fsf@bsb.me.uk> <_DdoE.513530$7F3.198430@fx30.am4> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: reader02.eternal-september.org; posting-host="29c90be48bf013696436a23e550ceb9e"; logging-data="11410"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19ls/qocMCRqNnLuTEXIatu" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) Cancel-Lock: sha1:6I5Ny51TRd2kKUMtLkQzbZSe2ZM= sha1:33I7Ut697A1Qkpcq+IKoyRcqF5I= Xref: csiph.com comp.lang.c:142703 Bart writes: > On 01/04/2019 10:35, David Brown wrote: >> On 01/04/2019 03:16, Bart wrote: >>> The trouble is that no one writes to precise guidelines like this, as I >>> do > >> You think you are the only person that writes coding guidelines? What >> planet do you live on? > > A planet where I encounter other people's code. Lots of it. > > What guidelines do you think this program is using: > > https://github.com/sal55/qx/blob/master/lisp.c > > (This works with some compilers, but not mine. The first problem is that > it's comparing pointers with ints (ie. ptr I'm not prepared to change that. I'll probably regret asking this, but how is that code relevant? (It's 503 lines of obfuscated C code that results in dozens of diagnostic messages when I compile it. Most of the warnings are for bad integer/pointer casts. It also fails to include the required headers for write() and waitpid(), and uses a function I've never heard of called "strf".) > There are others, but I now no longer get drawn into pointless exercises > like this where the other side - the author of the code - is not > prepared to make some effort to write decent code.) Bad code exists. So what? -- Keith Thompson (The_Other_Keith) kst-u@mib.org Will write code for food. void Void(void) { Void(); } /* The recursive call of the void */