[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Rename all .cc/.hh to .cxx/.hxx
From: |
Ingo Ruhnke |
Subject: |
Re: Rename all .cc/.hh to .cxx/.hxx |
Date: |
08 Jun 2002 16:46:01 +0200 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 |
David Philippi <address@hidden> writes:
> On Saturday 08 June 2002 11:58, Ingo Ruhnke wrote:
>> As the .cc/.hh extension is causing throuble for Windows people and
>
> Just out of curiosity - what problems are there on windows with .cc/.hh?
MSVC6 doesn't support .cc/.hh directly, so one has to do ugly registry
ugly registry tweeking to get it registered as C++ extension. This is
quite a good show stopper if one just wants quickly to compile Pingus.
>> makes grep'ing through all files a bit more complicated ("find . -name
>> "*.?xx" vs find . -name "*.cc" -o -name "*.hh") I plan to rename all
> ??? The former is easier to type IMHO.
We currently have .hh/.cc, so yep, the formar is easier to type and
thats what I want.
> AFAIR this is quite a bit of work using CVS, [...]
Something like:
mcp "*.cc" "#1.cxx"
mcp "*.hh" "#1.hxx"
cvs remove -f *.hh *.cc
cvs add *.?xx
perl ... "s/\.hh/\.hxx/" *.?xx
should basically do it.
> But I'd like to add that if we do a rename, we should use it to
> change all files to lowercase or uppercase. Some programs use this
> as a sort criteria...
Good point. When we are at it we can also remove useless Pingus
prefixes, but that might take a bit longer than the casechange alone,
so we might do that in a second step. So in the end
PingusActionFactory.cc would become action_factory.cxx.
--
Advent: http://www.freesoftware.fsf.org/advent/
Feuerkraft: http://www.freesoftware.fsf.org/feuerkraft/
Pingus: http://pingus.seul.org/ || ICQ: 59461927
Home: http://pingus.seul.org/~grumbel/ || JabberID: address@hidden