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

Unified Diff: src/platform-win32.cc

Issue 18842: Experimental: periodic merge of the bleeding_edge branch to the... (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/toiger/
Patch Set: Created 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/platform-macos.cc ('k') | src/prettyprinter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/platform-win32.cc
===================================================================
--- src/platform-win32.cc (revision 1168)
+++ src/platform-win32.cc (working copy)
@@ -61,7 +61,7 @@
#include <dbghelp.h> // For SymLoadModule64 and al.
#include <tlhelp32.h> // For Module32First and al.
-// These aditional WIN32 includes have to be right here as the #undef's below
+// These additional WIN32 includes have to be right here as the #undef's below
// makes it impossible to have them elsewhere.
#include <winsock2.h>
#include <process.h> // for _beginthreadex()
@@ -490,7 +490,7 @@
}
-// Return the dalight savings time offset for this time.
+// Return the daylight savings time offset for this time.
int64_t Time::DaylightSavingsOffset() {
return InDST() ? 60 * kMsPerMinute : 0;
}
@@ -704,12 +704,14 @@
// Stupid implementation of strndup since windows isn't born with
// one.
size_t len = strlen(str);
- if (len <= n)
+ if (len <= n) {
return StrDup(str);
+ }
char* result = new char[n+1];
size_t i;
- for (i = 0; i <= n; i++)
+ for (i = 0; i <= n; i++) {
result[i] = str[i];
+ }
result[i] = '\0';
return result;
}
@@ -859,7 +861,7 @@
// The following code loads functions defined in DbhHelp.h and TlHelp32.h
-// dynamically. This is to avoid beeing depending on dbghelp.dll and
+// dynamically. This is to avoid being depending on dbghelp.dll and
// tlhelp32.dll when running (the functions in tlhelp32.dll have been moved to
// kernel32.dll at some point so loading functions defines in TlHelp32.h
// dynamically might not be necessary any more - for some versions of Windows?).
@@ -1013,7 +1015,7 @@
dbghelp_loaded = result;
return result;
- // NOTE: The modules are never unloaded and will stay arround until the
+ // NOTE: The modules are never unloaded and will stay around until the
// application is closed.
}
« no previous file with comments | « src/platform-macos.cc ('k') | src/prettyprinter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698