Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!.POSTED!not-for-mail From: Thad Smith Newsgroups: comp.programming,comp.unix.programmer Subject: Re: indent: convert to C-style comments Date: Sun, 06 Nov 2011 18:54:51 -0600 Organization: Aioe.org NNTP Server Lines: 14 Message-ID: References: <9hhhbcF62fU1@mid.individual.net> NNTP-Posting-Host: Eg++4kzgY1KPfnuhqHpytQ.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:7.0.1) Gecko/20110929 Thunderbird/7.0.1 X-Notice: Filtered by postfilter v. 0.8.2 Xref: x330-a1.tempe.blueboxinc.net comp.programming:1000 comp.unix.programmer:1554 On 11/5/2011 3:00 PM, Mark wrote: >>> I've read through 'man indent' but have not found if it allows to enforce >>> C-style comments. Am I missing any option using which would convert C++ >>> comments in to C-style? It's a nice programming exercise to convert the comments. Remember to disable // searches in string constants and character constants. For solid code, you need to also process trigraphs and line continuations. That said, there must be such a program out there somewhere. I must have written one, but can't find it. :-( Thad