[vdr] Renaming of all *.c files in *.cpp or equivalent

Klaus Schmidinger Klaus.Schmidinger at tvdr.de
Mon Jan 2 18:07:39 CET 2012


On 02.01.2012 17:44, Denis Loh wrote:
> Hi,
>
> I have a big wish for future development: Please rename all c++ files with *.c extensions into *.cpp or equivalent. Many IDEs may cope with *.c and treat them as c++ files. However, if not, you must force the IDE to do that, which is sometimes hard work to do. I think it is lesser work to rename
> them and edit the makefile to work with cpp for instance.
>
> I am using cpp as default extension for c++ files for long time now.
>
> What do you think about that?

I like *.c and will stay with it.

If you really need to access the files as *.cpp, you could do

   for i in *.c; do echo ln -sf $i ${i}pp; done

Klaus



More information about the vdr mailing list