summaryrefslogtreecommitdiffstats
path: root/Source/cmCPluginAPI.cxx
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2002-11-14 16:16:58 (GMT)
committerKen Martin <ken.martin@kitware.com>2002-11-14 16:16:58 (GMT)
commitf67643112cffc73b0f8425e341952e3eda17d52d (patch)
treea060acdae64c9ad3145d0253f24503818ef7c2ee /Source/cmCPluginAPI.cxx
parent1d74cb3e355db759ef7c97e933f2e88dcb692f9f (diff)
downloadCMake-f67643112cffc73b0f8425e341952e3eda17d52d.zip
CMake-f67643112cffc73b0f8425e341952e3eda17d52d.tar.gz
CMake-f67643112cffc73b0f8425e341952e3eda17d52d.tar.bz2
added another func
Diffstat (limited to 'Source/cmCPluginAPI.cxx')
-rw-r--r--Source/cmCPluginAPI.cxx9
1 files changed, 9 insertions, 0 deletions
diff --git a/Source/cmCPluginAPI.cxx b/Source/cmCPluginAPI.cxx
index e7ffe3f..bdf0b94 100644
--- a/Source/cmCPluginAPI.cxx
+++ b/Source/cmCPluginAPI.cxx
@@ -453,6 +453,14 @@ char *cmGetFilenameWithoutExtension(const char *name)
return result;
}
+char *cmGetFilenamePath(const char *name)
+{
+ std::string sres = cmSystemTools::GetFilenamePath(name);
+ char *result = (char *)malloc(sres.size()+1);
+ strcpy(result,sres.c_str());
+ return result;
+}
+
char *cmCapitalized(const char *name)
{
std::string sres = cmSystemTools::Capitalized(name);
@@ -522,6 +530,7 @@ cmCAPI cmStaticCAPI =
cmCapitalized,
cmCopyFileIfDifferent,
cmGetFilenameWithoutExtension,
+ cmGetFilenamePath,
cmRemoveFile,
};