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 void change_current_working_dir(any_path const & to)
9{
10 change_current_working_dir(to.as_external());
11}
12
13inline path::status get_path_status(any_path const & path)
14{
15 std::string p(path.as_external());
16 return get_path_status(p.empty()?".":p);
17}
18
19inline void rename_clobberingly(any_path const & from, any_path const & to)
20{
21 rename_clobberingly(from.as_external(), to.as_external());
22}
23
24#endif
25
26
27// Local Variables:
28// mode: C++
29// fill-column: 76
30// c-file-style: "gnu"
31// indent-tabs-mode: nil
32// End:
33// vim: et:sw=2:sts=2:ts=2:cino=>2s,{s,\:s,+s,t0,g0,^-2,e-2,n-2,p2s,(0,=s:
34

Archive Download this file

Branches

Tags

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