Date: Thu, 9 May 2002 08:50:17 +0400 From: "AMI" <ami@lycos.ru> To: "FreeBSD-questions" <freebsd-questions@FreeBSD.ORG> Subject: Re: coments in freebsd Message-ID: <009201c1f716$a08386c0$0100a8c0@p7> References: <3CD7C423.3CAD457D@malkauns.nsc.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?009201c1f716$a08386c0$0100a8c0>