if (getcwd(Cwd, sizeof(Cwd)) == NULL)
throw PosixException("getcwd failed", errno);
+ // TODO:: C++ify this.
if (argv0[0] != '/')
snprintf(FullExePath, sizeof(FullExePath), "%s/%s", Cwd, argv0);
else
PathEnv = strdup(PathEnv);
if (PathEnv == NULL)
- throw bad_alloc();
+ throw runtime_error("strdup failed");
FoundPath = false;
using boost::dynamic_pointer_cast;
using boost::static_pointer_cast;
using boost::function;
-using boost::signal;
#if defined(__APPLE__) && defined(__MACH__)
# pragma GCC diagnostic ignored "-Wdeprecated-declarations"
{
ifstream stream;
stream.exceptions(ifstream::badbit);
- stream.open(filename, ifstream::in);
+ stream.open(filename.c_str(), ifstream::in);
return CompileStream(&stream);
}