cmFileSys.h : cmFileSysVMakeFn() can now work with no 'fn' arg.

This commit is contained in:
kevin 2014-01-26 17:08:01 -08:00
parent 92a9b18f44
commit 25932dc723
2 changed files with 10 additions and 10 deletions

View File

@ -378,13 +378,12 @@ const cmChar_t* cmFileSysVMakeFn( cmFileSysH_t h, const cmChar_t* dir, const cmC
va_list vl_t;
va_copy(vl_t,vl);
assert( fn != NULL );
// get prefix directory length
if( dir != NULL )
n += strlen(dir) + 1; // add 1 for ending sep
// get file name length
if( fn != NULL )
n += strlen(fn);
// get extension length
@ -423,6 +422,7 @@ const cmChar_t* cmFileSysVMakeFn( cmFileSysH_t h, const cmChar_t* dir, const cmC
// copy out the file name
if( fn != NULL )
if(!_cmFileSysConcat(rp,n,pathSep,fn))
{
assert(0);

View File

@ -35,7 +35,7 @@ extern "C" {
kOsxFailFsRC,
kLinuxFailFsRC,
kInvalidDirFsRC,
kGenFileFailFsRC
kGenFileFailFsRC,
};