From owner-freebsd-questions Wed May 8 22: 1:56 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mailbox-2.st1.spray.net (mailbox-2.st1.spray.net [212.78.202.102]) by hub.freebsd.org (Postfix) with ESMTP id 3AC9937B404 for ; Wed, 8 May 2002 22:01:52 -0700 (PDT) Received: from p7 (spb-213-33-245-31.sovintel.ru [213.33.245.31] (may be forged)) by mailbox-2.st1.spray.net (8.8.8/8.8.8) with SMTP id HAA08064 for ; Thu, 9 May 2002 07:01:48 +0200 (DST) Posted-Date: Thu, 9 May 2002 07:01:48 +0200 (DST) Message-ID: <009201c1f716$a08386c0$0100a8c0@p7> From: "AMI" To: "FreeBSD-questions" References: <3CD7C423.3CAD457D@malkauns.nsc.com> Subject: Re: coments in freebsd Date: Thu, 9 May 2002 08:50:17 +0400 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2615.200 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hello Jason and shubha! Excuse me for the fact that I sleeping your message yesterday. IMHO, it's resonable if you nay use a CSH script for it: # c_convert.csh file for // to regular /* */ comments set total = 'ls' foreach file ($total) if -d $file then continue cat $file | sed "s/\(.*\)\/\/\(.*\)/\1 \/*\2 \*\//" > does.c # Jason's source! mv does.c $file echo "$file is converted" end Set execute filemask to this script, break you to your C-files directory and print c_convert for convert any C files and enjoy! NB. the work directory MUST haven't contained other files! And backup please your sources before it. WBR, Andrew > I have numerous files .c files not written acording to the ANSI c > style.They have comented using // instead of regular /* > */.convention.How do I compile them? > > Please help. > Thanks,shubha To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message