1st successful use of mh_exec (direct antiword exec)
--HG-- branch : WINDOWSPORT
This commit is contained in:
@@ -239,6 +239,17 @@ const string& path_sharedatadir()
|
||||
return datadir;
|
||||
}
|
||||
|
||||
string path_PATHsep()
|
||||
{
|
||||
static const string w(";");
|
||||
static const string u(":");
|
||||
#ifdef _WIN32
|
||||
return w;
|
||||
#else
|
||||
return u;
|
||||
#endif
|
||||
}
|
||||
|
||||
bool maketmpdir(string& tdir, string& reason)
|
||||
{
|
||||
#ifndef _WIN32
|
||||
|
||||
@@ -78,6 +78,9 @@ extern long long path_filesize(const std::string& path);
|
||||
/// the file/dir does not exist or that an error occurred.
|
||||
extern bool path_exists(const std::string& path);
|
||||
|
||||
/// Return separator for PATH environment variable
|
||||
extern std::string path_PATHsep();
|
||||
|
||||
/// Dump directory
|
||||
extern bool readdir(const std::string& dir, std::string& reason,
|
||||
std::set<std::string>& entries);
|
||||
|
||||
Reference in New Issue
Block a user