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
34 // system_tempdir actually doesn't belong here
35 // I put it here only to avoid a global variable.
36 void setTmpDir(string const & p);
40 string current_root();
44 string::size_type common_path(string const & p1, string const & p2);
45 // no-op on UNIX, '\\'->'/' on OS/2 and Win32, ':'->'/' on MacOS, etc.
46 string slashify_path(string const & p);
47 // converts a host OS path to unix style
48 string external_path(string const & p);
49 // converts a unix path to host OS style
50 string internal_path(string const & p);
52 bool is_absolute_path(string const & p);
53 // returns a string suitable to be passed to popen when
55 char const * popen_read_mode();
57 void warn(string const & mesg);
60 } // namespace support