#include <config.h>
#include "debug.h"
+#include "support/unicode.h"
#include "support/lstrings.h"
-#include "support/package.h"
#include <boost/filesystem/operations.hpp>
#include <boost/lexical_cast.hpp>
# include <unistd.h>
#endif
+// struct timeval
+#ifdef HAVE_SYS_TIME_H
+# include <sys/time.h>
+#endif
+
// select()
#ifdef HAVE_SYS_SELECT_H
# include <sys/select.h>
#include <map>
#include <iostream>
+
+namespace lyx {
+
using lyx::support::prefixIs;
using boost::scoped_ptr;
using std::endl;
+IconvProcessor & utf8ToUcs4()
+{
+ static IconvProcessor iconv(ucs4_codeset, "UTF-8");
+ return iconv;
+}
+
+
namespace support {
string itoa(unsigned int i)
for (; beg != end; ++beg) {
if (prefixIs(beg->leaf(), "lyx_tmpdir" + pid)) {
- fs::path lyxsocket = *beg / "lyxsocket";
+ fs::path lyxsocket = beg->path() / "lyxsocket";
if (fs::exists(lyxsocket)) {
dirlist.push_back(lyxsocket);
}
}
-string mainTmp(lyx::support::package().temp_dir());
+string mainTmp("/tmp");
int t(vector<char *> const & arg)
} // namespace cmdline
-
-
+} // namespace lyx
int main(int argc, char * argv[])
{
+ using namespace lyx;
lyxerr.rdbuf(cerr.rdbuf());
CmdLineParser args;
return EXIT_SUCCESS;
}
+
+
+namespace boost {
+
+void assertion_failed(char const* a, char const* b, char const* c, long d)
+{
+ lyx::lyxerr << "Assertion failed: " << a << ' ' << b << ' ' << c << ' '
+ << d << '\n';
+}
+
+} // namespace boost
+