diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2010-12-21 10:24:08 -0800 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2010-12-21 10:24:08 -0800 |
commit | 1a894b39b3c622e7c7d228c049e68b65e4334ee5 (patch) | |
tree | d115a78b28c3b1643154589473c74c75ed039fc7 /deps/v8/src/platform-win32.cc | |
parent | 6f726cf8c7415d58acb5f6b8493fe53f272b1dd4 (diff) | |
download | node-new-1a894b39b3c622e7c7d228c049e68b65e4334ee5.tar.gz |
Upgrade V8 to 3.0.4
Diffstat (limited to 'deps/v8/src/platform-win32.cc')
-rw-r--r-- | deps/v8/src/platform-win32.cc | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/deps/v8/src/platform-win32.cc b/deps/v8/src/platform-win32.cc index badc31beb3..4438045eaf 100644 --- a/deps/v8/src/platform-win32.cc +++ b/deps/v8/src/platform-win32.cc @@ -688,6 +688,19 @@ void OS::VPrint(const char* format, va_list args) { } +void OS::FPrint(FILE* out, const char* format, ...) { + va_list args; + va_start(args, format); + VFPrint(out, format, args); + va_end(args); +} + + +void OS::VFPrint(FILE* out, const char* format, va_list args) { + VPrintHelper(out, format, args); +} + + // Print error message to console. void OS::PrintError(const char* format, ...) { va_list args; @@ -716,7 +729,8 @@ int OS::VSNPrintF(Vector<char> str, const char* format, va_list args) { // Make sure to zero-terminate the string if the output was // truncated or if there was an error. if (n < 0 || n >= str.length()) { - str[str.length() - 1] = '\0'; + if (str.length() > 0) + str[str.length() - 1] = '\0'; return -1; } else { return n; |