From owner-freebsd-questions Wed May 8 23:44:43 2002 Delivered-To: freebsd-questions@freebsd.org Received: from natsemi-bh.nsc.com (natsemi-bh.nsc.com [204.163.202.66]) by hub.freebsd.org (Postfix) with ESMTP id 6DF7737B409 for ; Wed, 8 May 2002 23:44:40 -0700 (PDT) Received: (from uucp@localhost) by natsemi-bh.nsc.com (8.8.8/8.6.11) id XAA22941; Wed, 8 May 2002 23:44:37 -0700 (PDT) Received: from nsc.nsc.com(139.187.81.1) by natsemi-bh.nsc.com via smap (4.1) id xma022933; Wed, 8 May 02 23:44:11 -0700 Received: from malkauns.malkauns.nsc.com (malkauns.nsc.com [139.187.83.131]) by nsc.nsc.com (8.10.2+Sun/8.10.2) with SMTP id g496i4S15354; Wed, 8 May 2002 23:44:05 -0700 (PDT) Received: from malkauns.nsc.com by malkauns.malkauns.nsc.com (SMI-8.6/SMI-SVR4) id MAA19815; Thu, 9 May 2002 12:19:17 +0530 Message-ID: <3CDA1B9F.AE0E1C3B@malkauns.nsc.com> Date: Thu, 09 May 2002 12:17:59 +0530 From: shubhamr Reply-To: shubhamr@malkauns.nsc.com X-Mailer: Mozilla 4.7 [en] (WinNT; I) X-Accept-Language: en MIME-Version: 1.0 To: AMI Cc: FreeBSD-questions Subject: Re: coments in freebsd References: <3CD7C423.3CAD457D@malkauns.nsc.com> <009201c1f716$a08386c0$0100a8c0@p7> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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 hi, Thanks to andrew and jason. I will try them today! shubha AMI wrote: > 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 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message