Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(155)

Side by Side Diff: base/files/file_path_constants.cc

Issue 1549853002: Switch to standard integer types in base/files/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 4 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « base/files/file_path.cc ('k') | base/files/file_path_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <stddef.h>
6
5 #include "base/files/file_path.h" 7 #include "base/files/file_path.h"
8 #include "base/macros.h"
6 9
7 namespace base { 10 namespace base {
8 11
9 #if defined(FILE_PATH_USES_WIN_SEPARATORS) 12 #if defined(FILE_PATH_USES_WIN_SEPARATORS)
10 const FilePath::CharType FilePath::kSeparators[] = FILE_PATH_LITERAL("\\/"); 13 const FilePath::CharType FilePath::kSeparators[] = FILE_PATH_LITERAL("\\/");
11 #else // FILE_PATH_USES_WIN_SEPARATORS 14 #else // FILE_PATH_USES_WIN_SEPARATORS
12 const FilePath::CharType FilePath::kSeparators[] = FILE_PATH_LITERAL("/"); 15 const FilePath::CharType FilePath::kSeparators[] = FILE_PATH_LITERAL("/");
13 #endif // FILE_PATH_USES_WIN_SEPARATORS 16 #endif // FILE_PATH_USES_WIN_SEPARATORS
14 17
15 const size_t FilePath::kSeparatorsLength = arraysize(kSeparators); 18 const size_t FilePath::kSeparatorsLength = arraysize(kSeparators);
16 19
17 const FilePath::CharType FilePath::kCurrentDirectory[] = FILE_PATH_LITERAL("."); 20 const FilePath::CharType FilePath::kCurrentDirectory[] = FILE_PATH_LITERAL(".");
18 const FilePath::CharType FilePath::kParentDirectory[] = FILE_PATH_LITERAL(".."); 21 const FilePath::CharType FilePath::kParentDirectory[] = FILE_PATH_LITERAL("..");
19 22
20 const FilePath::CharType FilePath::kExtensionSeparator = FILE_PATH_LITERAL('.'); 23 const FilePath::CharType FilePath::kExtensionSeparator = FILE_PATH_LITERAL('.');
21 24
22 } // namespace base 25 } // namespace base
OLDNEW
« no previous file with comments | « base/files/file_path.cc ('k') | base/files/file_path_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698