Xref: utzoo comp.lang.c:34247 comp.lang.misc:6161 Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!zaphod.mps.ohio-state.edu!lavaca.uh.edu!menudo.uh.edu!sugar!ficc!peter From: peter@ficc.ferranti.com (Peter da Silva) Newsgroups: comp.lang.c,comp.lang.misc Subject: Re: Coding Standards. was: a style question Message-ID: Date: 20 Nov 90 15:06:06 GMT References: <1990Oct23.160116.10299@athena.mit.edu> <13@christmas.UUCP> <14369@smoke.brl.mil> <1990Nov10.191840.21113@clear.com> <7267@hub.ucsb.edu> <6733@uceng.UC.EDU> <1990Nov18.005030.28841@zoo.toronto.edu> <6741@uceng.UC.EDU> Reply-To: peter@ficc.ferranti.com (Peter da Silva) Organization: Xenix Support, FICC Lines: 35 (crossposted to comp.lang.misc... this is a general coding problem and not C-specific) My objection to beautifiers is what they do to stuff like this: ARGDESC Args[] = { 'T', ARGOPT, argChar, __ &TabChar, "Tab", 'a', ARGOPT, argBool, __ &AllFlag, "All", '1', ARGOPT, argBool, __ &OneFlag, "First", ' ', ARGREQ, argStr, __ &Format, "Format", ' ', ARGREQ|ARGLIST, listStr, __ &CmdNames, "Command", 'f', ARGOPT|ARGLIST, listStr, __ &Files, "File", ENDOFARGS }; The only real solution to this is to include formatter commands in comments or something of that nature, so the code ends up as: ARGDESC Args[] = { /*.TS L L L L L */ 'T', ARGOPT, argChar, __ &TabChar, "Tab", ... 'f', ARGOPT|ARGLIST, listStr, __ &Files, "File", /*.TE */ ENDOFARGS }; Which is probably a good idea, especially if you make the format command syntax loose enough: /*.TS option flags function variable keyword */ But I don't know any fprmatter that supports this... -- Peter da Silva. `-_-' +1 713 274 5180. 'U` peter@ferranti.com