• R/O
  • SSH
  • HTTPS

hamigaki: 提交


Commit MetaInfo

修訂1619 (tree)
時間2008-04-26 20:33:01
作者hamigaki

Log Message

removed fs::native

Change Summary

差異

--- hamigaki/trunk/libs/filesystem/example/show_status.cpp (revision 1618)
+++ hamigaki/trunk/libs/filesystem/example/show_status.cpp (revision 1619)
@@ -1,6 +1,6 @@
11 // show_status.cpp: show the status of the file
22
3-// Copyright Takeshi Mouri 2006, 2007.
3+// Copyright Takeshi Mouri 2006-2008.
44 // Distributed under the Boost Software License, Version 1.0.
55 // (See accompanying file LICENSE_1_0.txt or copy at
66 // http://www.boost.org/LICENSE_1_0.txt)
@@ -44,7 +44,7 @@
4444 return 1;
4545 }
4646
47- fs::path ph(argv[1], fs::native);
47+ fs::path ph(argv[1]);
4848 const fs_ex::file_status& s = fs_ex::status(ph);
4949 if (s.type() == fs_ex::file_not_found)
5050 throw std::runtime_error("file not found");
--- hamigaki/trunk/libs/filesystem/example/read_link.cpp (revision 1618)
+++ hamigaki/trunk/libs/filesystem/example/read_link.cpp (revision 1619)
@@ -1,6 +1,6 @@
11 // read_link.cpp: show the target path of the symbolic link
22
3-// Copyright Takeshi Mouri 2006, 2007.
3+// Copyright Takeshi Mouri 2006-2008.
44 // Distributed under the Boost Software License, Version 1.0.
55 // (See accompanying file LICENSE_1_0.txt or copy at
66 // http://www.boost.org/LICENSE_1_0.txt)
@@ -24,7 +24,7 @@
2424 return 1;
2525 }
2626
27- fs::path ph(argv[1], fs::native);
27+ fs::path ph(argv[1]);
2828 std::cout << fs_ex::symlink_target(ph).string() << std::endl;
2929
3030 return 0;
--- hamigaki/trunk/libs/filesystem/example/shortcut.cpp (revision 1618)
+++ hamigaki/trunk/libs/filesystem/example/shortcut.cpp (revision 1619)
@@ -1,6 +1,6 @@
11 // shortcut.cpp: create shortcut
22
3-// Copyright Takeshi Mouri 2007.
3+// Copyright Takeshi Mouri 2007, 2008.
44 // Distributed under the Boost Software License, Version 1.0.
55 // (See accompanying file LICENSE_1_0.txt or copy at
66 // http://www.boost.org/LICENSE_1_0.txt)
@@ -47,8 +47,8 @@
4747
4848 com_library using_com;
4949
50- fs::path target(argv[1], fs::native);
51- fs::path ph(argv[2], fs::native);
50+ fs::path target(argv[1]);
51+ fs::path ph(argv[2]);
5252 if (extension(ph) != ".lnk")
5353 ph = ph.branch_path() / (ph.leaf() + ".lnk");
5454 fs_ex::create_shell_link(target, ph);
--- hamigaki/trunk/libs/filesystem/example/link.cpp (revision 1618)
+++ hamigaki/trunk/libs/filesystem/example/link.cpp (revision 1619)
@@ -1,6 +1,6 @@
11 // link.cpp: create soft/hard links
22
3-// Copyright Takeshi Mouri 2006, 2007.
3+// Copyright Takeshi Mouri 2006-2008.
44 // Distributed under the Boost Software License, Version 1.0.
55 // (See accompanying file LICENSE_1_0.txt or copy at
66 // http://www.boost.org/LICENSE_1_0.txt)
@@ -29,14 +29,14 @@
2929
3030 if (argc == 3)
3131 {
32- fs::path target(argv[1], fs::native);
33- fs::path ph(argv[2], fs::native);
32+ fs::path target(argv[1]);
33+ fs::path ph(argv[2]);
3434 fs_ex::create_hard_link(target, ph);
3535 }
3636 else
3737 {
38- fs::path target(argv[2], fs::native);
39- fs::path ph(argv[3], fs::native);
38+ fs::path target(argv[2]);
39+ fs::path ph(argv[3]);
4040 fs_ex::create_symlink(target, ph);
4141 }
4242
--- hamigaki/trunk/libs/archivers/example/zip.cpp (revision 1618)
+++ hamigaki/trunk/libs/archivers/example/zip.cpp (revision 1619)
@@ -43,7 +43,7 @@
4343 for (int i = 2; i < argc; ++i)
4444 {
4545 ar::zip::header head;
46- head.path = fs::path(argv[i], fs::native);
46+ head.path = fs::path(argv[i]);
4747
4848 const fs_ex::file_status& s = fs_ex::symlink_status(head.path);
4949
--- hamigaki/trunk/libs/archivers/example/lha.cpp (revision 1618)
+++ hamigaki/trunk/libs/archivers/example/lha.cpp (revision 1619)
@@ -47,7 +47,7 @@
4747 for (int i = 2; i < argc; ++i)
4848 {
4949 ar::lha::header head;
50- head.path = fs::path(argv[i], fs::native);
50+ head.path = fs::path(argv[i]);
5151
5252 const fs_ex::file_status& s = fs_ex::symlink_status(head.path);
5353
--- hamigaki/trunk/libs/archivers/example/extract.cpp (revision 1618)
+++ hamigaki/trunk/libs/archivers/example/extract.cpp (revision 1619)
@@ -273,7 +273,7 @@
273273
274274 std::auto_ptr<extractor_base> ext_ptr;
275275 const std::string filename(argv[1]);
276- const fs::path ph(filename, fs::native);
276+ const fs::path ph(filename);
277277 if (!fs::exists(ph))
278278 throw std::runtime_error("file not found");
279279
--- hamigaki/trunk/libs/archivers/example/archive.cpp (revision 1618)
+++ hamigaki/trunk/libs/archivers/example/archive.cpp (revision 1619)
@@ -331,7 +331,7 @@
331331 "gzip cannot contain two files or more");
332332 }
333333
334- fs::path ph(argv[2], fs::native);
334+ fs::path ph(argv[2]);
335335 if (fs::is_directory(ph))
336336 throw std::runtime_error("gzip cannot compress a directory");
337337
@@ -356,7 +356,7 @@
356356 "bzip2 cannot contain two files or more");
357357 }
358358
359- fs::path ph(argv[2], fs::native);
359+ fs::path ph(argv[2]);
360360 if (fs::is_directory(ph))
361361 throw std::runtime_error("bzip2 cannot compress a directory");
362362
@@ -375,7 +375,7 @@
375375 for (int i = 2; i < argc; ++i)
376376 {
377377 entry e;
378- e.path = fs::path(argv[i], fs::native);
378+ e.path = fs::path(argv[i]);
379379
380380 const fs_ex::file_status& s = fs_ex::symlink_status(e.path);
381381
--- hamigaki/trunk/libs/archivers/example/delete_zip.cpp (revision 1618)
+++ hamigaki/trunk/libs/archivers/example/delete_zip.cpp (revision 1619)
@@ -53,11 +53,11 @@
5353
5454 std::setlocale(LC_ALL, "");
5555
56- fs::path zip_name(argv[1], fs::native);
56+ fs::path zip_name(argv[1]);
5757 const fs::path& bak_name = change_extension(zip_name, ".bak");
5858 rename(zip_name, bak_name);
5959
60- fs::path del_name(argv[2], fs::native);
60+ fs::path del_name(argv[2]);
6161
6262 {
6363 ar::raw_zip_file_source src(bak_name.file_string());
--- hamigaki/trunk/libs/archivers/example/tar.cpp (revision 1618)
+++ hamigaki/trunk/libs/archivers/example/tar.cpp (revision 1619)
@@ -50,7 +50,7 @@
5050 for (int i = 2; i < argc; ++i)
5151 {
5252 ar::tar::header head;
53- head.path = fs::path(argv[i], fs::native);
53+ head.path = fs::path(argv[i]);
5454
5555 const fs_ex::file_status& s = fs_ex::symlink_status(head.path);
5656
--- hamigaki/trunk/libs/archivers/example/delete_lha.cpp (revision 1618)
+++ hamigaki/trunk/libs/archivers/example/delete_lha.cpp (revision 1619)
@@ -53,11 +53,11 @@
5353
5454 std::setlocale(LC_ALL, "");
5555
56- fs::path lzh_name(argv[1], fs::native);
56+ fs::path lzh_name(argv[1]);
5757 const fs::path& bak_name = change_extension(lzh_name, ".bak");
5858 rename(lzh_name, bak_name);
5959
60- fs::path del_name(argv[2], fs::native);
60+ fs::path del_name(argv[2]);
6161
6262 {
6363 ar::raw_lzh_file_source src(bak_name.file_string());
--- hamigaki/trunk/libs/archivers/example/iso.cpp (revision 1618)
+++ hamigaki/trunk/libs/archivers/example/iso.cpp (revision 1619)
@@ -48,7 +48,7 @@
4848 for (int i = 2; i < argc; ++i)
4949 {
5050 ar::iso::header head;
51- head.path = fs::path(argv[i], fs::native);
51+ head.path = fs::path(argv[i]);
5252
5353 const fs_ex::file_status& s = fs_ex::status(head.path);
5454
--- hamigaki/trunk/libs/archivers/example/append_lha.cpp (revision 1618)
+++ hamigaki/trunk/libs/archivers/example/append_lha.cpp (revision 1619)
@@ -58,7 +58,7 @@
5858 for (int i = 2; i < argc; ++i)
5959 {
6060 ar::lha::header head;
61- head.path = fs::path(argv[i], fs::native);
61+ head.path = fs::path(argv[i]);
6262
6363 const fs_ex::file_status& s = fs_ex::symlink_status(head.path);
6464
--- hamigaki/trunk/libs/bjam/test/bjam_test.cpp (revision 1618)
+++ hamigaki/trunk/libs/bjam/test/bjam_test.cpp (revision 1619)
@@ -452,7 +452,7 @@
452452 {
453453 bjam::context ctx;
454454
455- fs::path ph(hamigaki_root, fs::native);
455+ fs::path ph(hamigaki_root);
456456 ph /= "libs/bjam/test/include_test.jam";
457457
458458 std::string src;
@@ -467,7 +467,7 @@
467467 {
468468 bjam::context ctx;
469469
470- fs::path ph(hamigaki_root, fs::native);
470+ fs::path ph(hamigaki_root);
471471 ph /= "libs/bjam/test/back_trace_test.jam";
472472 std::string filename = ph.file_string();
473473
--- hamigaki/trunk/libs/bjam/src/search.cpp (revision 1618)
+++ hamigaki/trunk/libs/bjam/src/search.cpp (revision 1619)
@@ -67,7 +67,7 @@
6767 compo.root = search_list[i];
6868 filename = make_path(compo);
6969
70- if (fs::exists(fs::path(filename, fs::native)))
70+ if (fs::exists(fs::path(filename)))
7171 {
7272 found = true;
7373 break;
@@ -78,8 +78,8 @@
7878 if (!found)
7979 {
8080 compo.root.clear();
81- fs::path ph(make_path(compo), fs::native);
82- fs::path work(ctx.working_directory(), fs::native);
81+ fs::path ph(make_path(compo));
82+ fs::path work(ctx.working_directory());
8383 filename = fs::complete(ph, work).file_string();
8484 }
8585
--- hamigaki/trunk/libs/bjam/src/builtin_rules.cpp (revision 1618)
+++ hamigaki/trunk/libs/bjam/src/builtin_rules.cpp (revision 1619)
@@ -590,8 +590,8 @@
590590
591591 const std::string& file = args[0][0];
592592
593- fs::path ph(file, fs::native);
594- fs::path work(ctx.working_directory(), fs::native);
593+ fs::path ph(file);
594+ fs::path work(ctx.working_directory());
595595 ph = fs::complete(ph, work);
596596 if (fs::is_regular(ph))
597597 return string_list(std::string("true"));
--- hamigaki/trunk/libs/bjam/src/glob.cpp (revision 1618)
+++ hamigaki/trunk/libs/bjam/src/glob.cpp (revision 1619)
@@ -39,7 +39,7 @@
3939
4040 string_list result;
4141
42- fs::path ph(dir, fs::native);
42+ fs::path ph(dir);
4343 ph = fs::complete(ph, work);
4444
4545 if (!is_directory(ph))
@@ -141,13 +141,13 @@
141141 const std::string& pattern, bool case_insensitive)
142142 {
143143 return glob_impl(
144- fs::path(work, fs::native), dir, pattern, case_insensitive, false);
144+ fs::path(work), dir, pattern, case_insensitive, false);
145145 }
146146
147147 HAMIGAKI_BJAM_DECL string_list
148148 glob_recursive(const std::string& work, const std::string& pattern)
149149 {
150- fs::path work_ph(work, fs::native);
150+ fs::path work_ph(work);
151151
152152 if ((pattern.size() >= 3) && (pattern[1] == ':'))
153153 {
--- hamigaki/trunk/libs/bjam/src/modules/path.cpp (revision 1618)
+++ hamigaki/trunk/libs/bjam/src/modules/path.cpp (revision 1619)
@@ -1,6 +1,6 @@
11 // path.cpp: bjam path module
22
3-// Copyright Takeshi Mouri 2007.
3+// Copyright Takeshi Mouri 2007, 2008.
44 // Distributed under the Boost Software License, Version 1.0.
55 // (See accompanying file LICENSE_1_0.txt or copy at
66 // http://www.boost.org/LICENSE_1_0.txt)
@@ -31,8 +31,8 @@
3131
3232 const std::string& location = args[0][0];
3333
34- fs::path ph(location, fs::native);
35- fs::path work(ctx.working_directory(), fs::native);
34+ fs::path ph(location);
35+ fs::path work(ctx.working_directory());
3636 ph = fs::complete(ph, work);
3737 if (fs::exists(ph))
3838 return string_list(std::string("true"));
Show on old repository browser