From 14d0fbe96c6abdb9da80e99953aec672f999948c Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Sun, 13 Dec 2020 19:22:19 +0900 Subject: Renaming of files in preparation for code style tools. Signed-off-by: Michele Calgaro --- ksvg/scripts/check_hashtablesize.pl | 4 ++-- ksvg/scripts/gen.sh | 18 +++++++++--------- ksvg/scripts/genimpl.sh | 16 ++++++++-------- ksvg/scripts/getjs.php | 2 +- ksvg/scripts/makecc | 2 +- ksvg/scripts/makeimpl | 8 ++++---- 6 files changed, 25 insertions(+), 25 deletions(-) (limited to 'ksvg/scripts') diff --git a/ksvg/scripts/check_hashtablesize.pl b/ksvg/scripts/check_hashtablesize.pl index d22e3f30..d460e5ad 100755 --- a/ksvg/scripts/check_hashtablesize.pl +++ b/ksvg/scripts/check_hashtablesize.pl @@ -138,10 +138,10 @@ foreach(@useresult) { my $temp = $middle[0]; if($calcMode != 2) { - $temp =~ s/.cc://; + $temp =~ s/.cpp://; $class = $temp; } else { - $temp =~ s/.cc//; + $temp =~ s/.cpp//; $class = substr($temp, 0, index($temp, ":")); } } diff --git a/ksvg/scripts/gen.sh b/ksvg/scripts/gen.sh index 9c87e22e..5e53438e 100755 --- a/ksvg/scripts/gen.sh +++ b/ksvg/scripts/gen.sh @@ -12,11 +12,11 @@ fi # make them touch $1.h -touch $1.cc +touch $1.cpp #start with copyright notices cat ../COPYRIGHTS > $1.h -cat ../COPYRIGHTS > $1.cc +cat ../COPYRIGHTS > $1.cpp # add define for multiple include problem echo "" >> $1.h @@ -27,13 +27,13 @@ echo "namespace KSVG" >> $1.h echo "{" >> $1.h echo "" >> $1.h -#include in .cc + namespace -echo "" >> $1.cc -echo "#include \"$1.h\"" >> $1.cc -echo "#include \"$1Impl.h\"" >> $1.cc -echo "" >> $1.cc -echo "using namespace KSVG;" >> $1.cc -echo "" >> $1.cc +#include in .cpp + namespace +echo "" >> $1.cpp +echo "#include \"$1.h\"" >> $1.cpp +echo "#include \"$1Impl.h\"" >> $1.cpp +echo "" >> $1.cpp +echo "using namespace KSVG;" >> $1.cpp +echo "" >> $1.cpp #go go go $cmd_awk -f ../makeheader $1 diff --git a/ksvg/scripts/genimpl.sh b/ksvg/scripts/genimpl.sh index 207e4329..c4cd1284 100755 --- a/ksvg/scripts/genimpl.sh +++ b/ksvg/scripts/genimpl.sh @@ -12,11 +12,11 @@ fi # you cant touch this touch $1Impl.h -touch $1Impl.cc +touch $1Impl.cpp #start with copyright notices cat ../COPYRIGHTS > $1Impl.h -cat ../COPYRIGHTS > $1Impl.cc +cat ../COPYRIGHTS > $1Impl.cpp # add define for multiple include problem echo "" >> $1Impl.h @@ -28,12 +28,12 @@ echo "" >> $1Impl.h echo "namespace KSVG" >> $1Impl.h echo "{" >> $1Impl.h -#include in .cc + namespace -echo "" >> $1Impl.cc -echo "#include \"$1Impl.h\"" >> $1Impl.cc -echo "" >> $1Impl.cc -echo "using namespace KSVG;" >> $1Impl.cc -echo "" >> $1Impl.cc +#include in .cpp + namespace +echo "" >> $1Impl.cpp +echo "#include \"$1Impl.h\"" >> $1Impl.cpp +echo "" >> $1Impl.cpp +echo "using namespace KSVG;" >> $1Impl.cpp +echo "" >> $1Impl.cpp #go go go $cmd_awk -f ../makeimpl $1 diff --git a/ksvg/scripts/getjs.php b/ksvg/scripts/getjs.php index 5f300fe9..514287a3 100755 --- a/ksvg/scripts/getjs.php +++ b/ksvg/scripts/getjs.php @@ -359,7 +359,7 @@ function crawlFiles($path) crawlFiles($path."/".$file); fputs($fp,"Leaving directory ".$file."\n"); } - elseif (is_file($path."/".$file) && preg_match("/^[A-Za-z0-9_]+(\.cc|\.cpp|\.h|\.hpp)$/",$file)) + elseif (is_file($path."/".$file) && preg_match("/^[A-Za-z0-9_]+(\.cpp|\.h)$/",$file)) { fputs($fp,"\tchecking $file\n"); searchKalyptusCode($path."/".$file,$fp); diff --git a/ksvg/scripts/makecc b/ksvg/scripts/makecc index 29a28b93..97eb4b74 100644 --- a/ksvg/scripts/makecc +++ b/ksvg/scripts/makecc @@ -1,6 +1,6 @@ function printg( a ) { - printf a >> FILENAME ".cc" + printf a >> FILENAME ".cpp" } function doFunc( a ) { diff --git a/ksvg/scripts/makeimpl b/ksvg/scripts/makeimpl index fb5ab8f5..e6c7b719 100644 --- a/ksvg/scripts/makeimpl +++ b/ksvg/scripts/makeimpl @@ -21,7 +21,7 @@ function printg( a ) } function printh( a ) { - printf a >> FILENAME "Impl.cc" + printf a >> FILENAME "Impl.cpp" } function doFuncCC( a, class ) { @@ -166,7 +166,7 @@ function doAttr( a, class ) printg( " " )n printg( b[nr] ");\n" ) - # do put method .cc + # do put method .cpp printtofunc( "void " clas "::set" ) printtofunc( toupper( substr( b[nr], 1, 1) ) ) printtofunc( substr( b[nr], 2) "(" ) @@ -212,7 +212,7 @@ function doAttr( a, class ) $temp = b[nr] printg( $temp "() const;\n" ) - # do get method .cc + # do get method .cpp i = 1 while ( i < nr ) { @@ -277,7 +277,7 @@ function doReadonlyAttr( a, class ) $temp = b[nr] printg( $temp "() const;\n" ) - # do get method .cc + # do get method .cpp i = 1 while ( i < nr ) { -- cgit v1.2.1