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

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

Issue 11546: Remove OS::WcsCpy from platform.h. This function is unused... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 12 years, 1 month 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 | « src/platform.h ('k') | src/platform-macos.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 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 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 return n; 178 return n;
179 } 179 }
180 } 180 }
181 181
182 182
183 void OS::StrNCpy(Vector<char> dest, const char* src, size_t n) { 183 void OS::StrNCpy(Vector<char> dest, const char* src, size_t n) {
184 strncpy(dest.start(), src, n); 184 strncpy(dest.start(), src, n);
185 } 185 }
186 186
187 187
188 void OS::WcsCpy(Vector<wchar_t> dest, const wchar_t* src) {
189 wcscpy(dest.start(), src);
190 }
191
192
193 char *OS::StrDup(const char* str) { 188 char *OS::StrDup(const char* str) {
194 return strdup(str); 189 return strdup(str);
195 } 190 }
196 191
197 192
198 double OS::nan_value() { 193 double OS::nan_value() {
199 return NAN; 194 return NAN;
200 } 195 }
201 196
202 197
(...skipping 485 matching lines...) Expand 10 before | Expand all | Expand 10 after
688 } 683 }
689 684
690 // This sampler is no longer the active sampler. 685 // This sampler is no longer the active sampler.
691 active_sampler_ = NULL; 686 active_sampler_ = NULL;
692 active_ = false; 687 active_ = false;
693 } 688 }
694 689
695 #endif // ENABLE_LOGGING_AND_PROFILING 690 #endif // ENABLE_LOGGING_AND_PROFILING
696 691
697 } } // namespace v8::internal 692 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/platform.h ('k') | src/platform-macos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698