Changed this during testing so I didn't have to recompile everything

each time I changed it.  Why make this inline?  It's not performance-critical
at that level, and it's more code in the headers to slow down compiles.
This commit is contained in:
Glenn Maynard
2003-09-03 18:22:55 +00:00
parent 0c0ec5fbc4
commit d934177bf4
2 changed files with 9 additions and 7 deletions
+8
View File
@@ -308,6 +308,14 @@ void splitrelpath( const CString &Path, CString& Dir, CString& FName, CString& E
}
}
CString GetExtension( CString sPath )
{
CString Dir, FName, Ext;
splitrelpath( sPath, Dir, FName, Ext );
Ext.MakeLower();
return Ext;
}
/* mkdir -p. Doesn't fail if Path already exists and is a directory. */
bool CreateDirectories( CString Path )
{
+1 -7
View File
@@ -174,13 +174,7 @@ void splitrelpath(
CString& Ext
);
inline CString GetExtension( CString sPath )
{
CString Dir, FName, Ext;
splitrelpath( sPath, Dir, FName, Ext );
Ext.MakeLower();
return Ext;
};
CString GetExtension( CString sPath );
typedef int longchar;
extern const wchar_t INVALID_CHAR;