added another func
This commit is contained in:
parent
1d74cb3e35
commit
f67643112c
@ -453,6 +453,14 @@ char *cmGetFilenameWithoutExtension(const char *name)
|
|||||||
return result;
|
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)
|
char *cmCapitalized(const char *name)
|
||||||
{
|
{
|
||||||
std::string sres = cmSystemTools::Capitalized(name);
|
std::string sres = cmSystemTools::Capitalized(name);
|
||||||
@ -522,6 +530,7 @@ cmCAPI cmStaticCAPI =
|
|||||||
cmCapitalized,
|
cmCapitalized,
|
||||||
cmCopyFileIfDifferent,
|
cmCopyFileIfDifferent,
|
||||||
cmGetFilenameWithoutExtension,
|
cmGetFilenameWithoutExtension,
|
||||||
|
cmGetFilenamePath,
|
||||||
cmRemoveFile,
|
cmRemoveFile,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -137,6 +137,7 @@ typedef struct
|
|||||||
char *(*Capitalized)(const char *);
|
char *(*Capitalized)(const char *);
|
||||||
void (*CopyFileIfDifferent)(const char *f1, const char *f2);
|
void (*CopyFileIfDifferent)(const char *f1, const char *f2);
|
||||||
char *(*GetFilenameWithoutExtension)(const char *);
|
char *(*GetFilenameWithoutExtension)(const char *);
|
||||||
|
char *(*GetFilenamePath)(const char *);
|
||||||
void (*RemoveFile)(const char *f1);
|
void (*RemoveFile)(const char *f1);
|
||||||
|
|
||||||
/* this is the end of the C function stub API structure */
|
/* this is the end of the C function stub API structure */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user