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

2012-01-02 Thread Denis Loh

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?

Denis

___
vdr mailing list
vdr@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr


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

2012-01-02 Thread Klaus Schmidinger

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

___
vdr mailing list
vdr@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr


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

2012-01-02 Thread Denis Loh
Well, it was just a thought, because there are many many naming 
conventions which suggests to use another extension than *.c like *.cc 
or *.cpp respectively. Mainly, it is only for better readability and to 
distinguish what type of code resided in the file. IDEs rely on this 
convention to decide which compiler it has to use.


But I can live with it, because there is no real technical reason for 
renaming.


Am 02.01.2012 18:07, schrieb Klaus Schmidinger:

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

___
vdr mailing list
vdr@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr



___
vdr mailing list
vdr@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr