Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 09 May 2002 12:17:59 +0530
From:      shubhamr <shubhamr@malkauns.nsc.com>
To:        AMI <ami@lycos.ru>
Cc:        FreeBSD-questions <freebsd-questions@freebsd.org>
Subject:   Re: coments in freebsd
Message-ID:  <3CDA1B9F.AE0E1C3B@malkauns.nsc.com>
References:  <3CD7C423.3CAD457D@malkauns.nsc.com> <009201c1f716$a08386c0$0100a8c0@p7>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3CDA1B9F.AE0E1C3B>