4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
7 * \author Ruurd A. Reitsma
9 * Full author contact details are available in file CREDITS.
17 /// wrap OS specific stuff
24 UNIX, // Do we have to distinguish sh and csh?
28 // do some work just once
29 void init(int * argc, char ** argv[]);
30 // returns path of LyX binary
32 // returns name of LyX binary
35 void setTmpDir(string const & p);
39 string current_root();
43 string::size_type common_path(string const & p1, string const & p2);
44 // no-op on UNIX, '\\'->'/' on OS/2 and Win32, ':'->'/' on MacOS, etc.
45 string slashify_path(string const & p);
46 // converts a host OS path to unix style
47 string external_path(string const & p);
48 // converts a unix path to host OS style
49 string internal_path(string const & p);
51 bool is_absolute_path(string const & p);
52 // returns a string suitable to be passed to popen when
54 char const * popen_read_mode();
56 void warn(string const & mesg);
59 } // namespace support