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

Side by Side Diff: src/platform-win32.cc

Issue 6260014: Fix Windows compile (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 9 years, 11 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 | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 653 matching lines...) Expand 10 before | Expand all | Expand 10 after
664 FILE* result; 664 FILE* result;
665 if (fopen_s(&result, path, mode) == 0) { 665 if (fopen_s(&result, path, mode) == 0) {
666 return result; 666 return result;
667 } else { 667 } else {
668 return NULL; 668 return NULL;
669 } 669 }
670 } 670 }
671 671
672 672
673 bool OS::Remove(const char* path) { 673 bool OS::Remove(const char* path) {
674 return (DeleteFile(path) != 0); 674 return (DeleteFileA(path) != 0);
675 } 675 }
676 676
677 677
678 // Open log file in binary mode to avoid /n -> /r/n conversion. 678 // Open log file in binary mode to avoid /n -> /r/n conversion.
679 const char* OS::LogFileOpenMode = "wb"; 679 const char* OS::LogFileOpenMode = "wb";
680 680
681 681
682 // Print (debug) message to console. 682 // Print (debug) message to console.
683 void OS::Print(const char* format, ...) { 683 void OS::Print(const char* format, ...) {
684 va_list args; 684 va_list args;
(...skipping 1280 matching lines...) Expand 10 before | Expand all | Expand 10 after
1965 1965
1966 // Release the thread handles 1966 // Release the thread handles
1967 CloseHandle(data_->sampler_thread_); 1967 CloseHandle(data_->sampler_thread_);
1968 CloseHandle(data_->profiled_thread_); 1968 CloseHandle(data_->profiled_thread_);
1969 } 1969 }
1970 1970
1971 1971
1972 #endif // ENABLE_LOGGING_AND_PROFILING 1972 #endif // ENABLE_LOGGING_AND_PROFILING
1973 1973
1974 } } // namespace v8::internal 1974 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698