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

Side by Side Diff: runtime/vm/os_win.cc

Issue 12282051: Prepare for removal of source_filter.gypi: (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « runtime/vm/os_macos.cc ('k') | runtime/vm/virtual_memory_android.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 (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #include "vm/globals.h"
6 #if defined(TARGET_OS_WINDOWS)
7
5 #include "vm/os.h" 8 #include "vm/os.h"
6 9
7 #include <malloc.h> 10 #include <malloc.h> // NOLINT
8 #include <time.h> 11 #include <time.h> // NOLINT
9 12
10 #include "platform/utils.h" 13 #include "platform/utils.h"
11 #include "platform/assert.h" 14 #include "platform/assert.h"
12 15
13 namespace dart { 16 namespace dart {
14 17
15 // As a side-effect sets the globals _timezone, _daylight and _tzname. 18 // As a side-effect sets the globals _timezone, _daylight and _tzname.
16 static bool LocalTime(int64_t seconds_since_epoch, tm* tm_result) { 19 static bool LocalTime(int64_t seconds_since_epoch, tm* tm_result) {
17 time_t seconds = static_cast<time_t>(seconds_since_epoch); 20 time_t seconds = static_cast<time_t>(seconds_since_epoch);
18 if (seconds != seconds_since_epoch) return false; 21 if (seconds != seconds_since_epoch) return false;
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after
283 void OS::Abort() { 286 void OS::Abort() {
284 abort(); 287 abort();
285 } 288 }
286 289
287 290
288 void OS::Exit(int code) { 291 void OS::Exit(int code) {
289 exit(code); 292 exit(code);
290 } 293 }
291 294
292 } // namespace dart 295 } // namespace dart
296
297 #endif // defined(TARGET_OS_WINDOWS)
OLDNEW
« no previous file with comments | « runtime/vm/os_macos.cc ('k') | runtime/vm/virtual_memory_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698