monotone

monotone Mtn Source Tree

Root/platform-wrapped.hh

1#ifndef __PLATFORM_WRAPPED_HH__
2#define __PLATFORM_WRAPPED_HH__
3
4#include "paths.hh"
5#include "platform.hh"
6#include "vocab.hh"
7
8inline utf8 tilde_expand(utf8 const & path)
9{
10 return utf8(tilde_expand(path()));
11}
12
13inline void change_current_working_dir(any_path const & to)
14{
15 change_current_working_dir(to.as_external());
16}
17
18inline path::status get_path_status(any_path const & path)
19{
20 std::string p(path.as_external());
21 return get_path_status(p.empty()?".":p);
22}
23
24inline void rename_clobberingly(any_path const & from, any_path const & to)
25{
26 rename_clobberingly(from.as_external(), to.as_external());
27}
28
29#endif
30
31
32// Local Variables:
33// mode: C++
34// fill-column: 76
35// c-file-style: "gnu"
36// indent-tabs-mode: nil
37// End:
38// vim: et:sw=2:sts=2:ts=2:cino=>2s,{s,\:s,+s,t0,g0,^-2,e-2,n-2,p2s,(0,=s:
39

Archive Download this file

Branches

Tags

Quick Links:     www.monotone.ca    -     Downloads    -     Documentation    -     Wiki    -     Code Forge    -     Build Status