disallow > 1 theme element matches to catch problems early

This commit is contained in:
Chris Danford
2003-03-15 00:16:45 +00:00
parent 77f28df1fa
commit 033b2773ed
3 changed files with 90 additions and 52 deletions
+18
View File
@@ -634,6 +634,24 @@ CString DerefRedir(const CString &path)
return sDir+sNewFileName;
}
CString GetRedirContents(const CString &path)
{
CString sDir, sFName, sExt;
splitrelpath( path, sDir, sFName, sExt );
ASSERT( sExt == "redir"); // don't ever call this on a non-redirect
CString sNewFileName;
{
ifstream file(path);
getline(file, sNewFileName);
}
StripCrnl(sNewFileName);
return sNewFileName;
}
void Regex::Compile()
{
reg = new regex_t;