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

Side by Side Diff: webrtc/base/pathutils.cc

Issue 2358993004: Enable the -Wundef warning for clang (Closed)
Patch Set: rebase Created 4 years, 2 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 | « webrtc/base/mod_ops_unittest.cc ('k') | webrtc/base/platform_thread_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 /* 1 /*
2 * Copyright 2004 The WebRTC Project Authors. All rights reserved. 2 * Copyright 2004 The WebRTC Project Authors. All rights reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 15 matching lines...) Expand all
26 26
27 static const char EMPTY_STR[] = ""; 27 static const char EMPTY_STR[] = "";
28 28
29 // EXT_DELIM separates a file basename from extension 29 // EXT_DELIM separates a file basename from extension
30 const char EXT_DELIM = '.'; 30 const char EXT_DELIM = '.';
31 31
32 // FOLDER_DELIMS separate folder segments and the filename 32 // FOLDER_DELIMS separate folder segments and the filename
33 const char* const FOLDER_DELIMS = "/\\"; 33 const char* const FOLDER_DELIMS = "/\\";
34 34
35 // DEFAULT_FOLDER_DELIM is the preferred delimiter for this platform 35 // DEFAULT_FOLDER_DELIM is the preferred delimiter for this platform
36 #if WEBRTC_WIN 36 #ifdef WEBRTC_WIN
37 const char DEFAULT_FOLDER_DELIM = '\\'; 37 const char DEFAULT_FOLDER_DELIM = '\\';
38 #else // !WEBRTC_WIN 38 #else // !WEBRTC_WIN
39 const char DEFAULT_FOLDER_DELIM = '/'; 39 const char DEFAULT_FOLDER_DELIM = '/';
40 #endif // !WEBRTC_WIN 40 #endif // !WEBRTC_WIN
41 41
42 /////////////////////////////////////////////////////////////////////////////// 42 ///////////////////////////////////////////////////////////////////////////////
43 // Pathname - parsing of pathnames into components, and vice versa 43 // Pathname - parsing of pathnames into components, and vice versa
44 /////////////////////////////////////////////////////////////////////////////// 44 ///////////////////////////////////////////////////////////////////////////////
45 45
46 bool Pathname::IsFolderDelimiter(char ch) { 46 bool Pathname::IsFolderDelimiter(char ch) {
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
249 // sanity checking 249 // sanity checking
250 return (isalpha(drive[0]) && 250 return (isalpha(drive[0]) &&
251 drive[1] == ':' && 251 drive[1] == ':' &&
252 drive[2] == '\\'); 252 drive[2] == '\\');
253 } 253 }
254 #endif 254 #endif
255 255
256 /////////////////////////////////////////////////////////////////////////////// 256 ///////////////////////////////////////////////////////////////////////////////
257 257
258 } // namespace rtc 258 } // namespace rtc
OLDNEW
« no previous file with comments | « webrtc/base/mod_ops_unittest.cc ('k') | webrtc/base/platform_thread_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698