This is a multi-part message in MIME format. ------_=_NextPart_001_01C4B513.972B917C Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable It is time for me to make my annual post of my style guide. Here are the = Ten Commandments of C Style I am sure anyone here can add a few more, and some of them will be more = useful than mine, too.=20 -- Lawrence Lile, P.E. Electrical and Electronic Solutions Project Solutions Companies www.projsolco.com > -----Original Message----- > From: William "Chops" Westfield [mailto:westfw@mac.com] > Sent: Saturday, October 16, 2004 11:47 AM > To: Microcontroller discussion list - Public. > Subject: Re: [AD] Looking for work (style guide) >=20 > On Oct 16, 2004, at 8:20 AM, Charles Craft wrote: >=20 > > I don't suppose there is info from your style guide that can be made > > public? >=20 > Hmm. I dunno. Most of "style" is by definition arbitrary. So we = have > stuff like "each indentation level is 4 spaces." "lines should not > 80 columns in width." > /* > * multiline comments look like this > */ > else if is "cuddled": > if (foo) { > bar(); > } else { > baz(); > } > "Indentifiers should not have mixed case names." > typedef struct iptype_ { > int a,b,c; > } iptype; >=20 > BillW >=20 > _______________________________________________ > http://www.piclist.com > View/change your membership options at > http://mailman.mit.edu/mailman/listinfo/piclist >=20 > --- > Incoming mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.762 / Virus Database: 510 - Release Date: 9/13/2004 >=20 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.762 / Virus Database: 510 - Release Date: 9/13/2004 =20 =20 ------_=_NextPart_001_01C4B513.972B917C Content-Type: application/x-zip-compressed; name="The Ten Commandments of C Style.zip" Content-Transfer-Encoding: base64 Content-Description: The Ten Commandments of C Style.zip Content-Disposition: attachment; filename="The Ten Commandments of C Style.zip" UEsDBBQAAAAIAJJt9ypGJ/b4Gw4AAABcAAAkAAAAVGhlIFRlbiBDb21tYW5kbWVudHMgb2YgIEMg U3R5bGUuZG9j7Vx7jFxVGf9m9tFt6cJSdCmllkMpFO102wItrYB2u9uWxbJb2dWiFpo7c8/s3PbO PcN97HR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e/6+nvenvD/mfTjvyfn7b97j8/995H04f5fPe3c++81n1Hn/ fW7cfh6ZM+vnAxcDP0Bmu3xB3M777KXAi8j897uLgXz6bHnc/g7wQ/F9gim8d8BHD5X+fcZmfdyL T6YeC/RSRyahxTHUOdd8lvScad6ir4++0MVnHA689bb+z3g5is8wAtbQGFmUP+4jYWciepv1mX1E fJYyPlC5g/jXLTYN6jOgUePY29HCIspmeM4cC3+GJUtM2UGjmisfu2PbD4F7kZJf3ITkkNLHQg8H l4K/+U1O/EuZo4CFfIn175im+bHJsx78j9X+gi8x/0x87LBCI4iC3UcYNTMsAH/OYZyzjsX+CSfD lU9mh7RdzwX3iONaoRcazKZ/EvdJOVOfE4FjtX8zsDBpTj19IQPvt80zMdSauzlPtJxhG4z/V5F+ J7h+lOtQpScz3/cl7X3r6fUNT98yc8yl8L8D/wFQSwECFAAUAAAACACSbfcqRif2+BsOAAAAXAAA JAAAAAAAAAAAACAAtoEAAAAAVGhlIFRlbiBDb21tYW5kbWVudHMgb2YgIEMgU3R5bGUuZG9jUEsF BgAAAAABAAEAUgAAAF0OAAAAAA== ------_=_NextPart_001_01C4B513.972B917C Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit _______________________________________________ http://www.piclist.com View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist ------_=_NextPart_001_01C4B513.972B917C--