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

Side by Side Diff: src/d8-posix.cc

Issue 7754022: Fix presubmit errors caused by updated depot tools (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 9 years, 3 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 | « src/d8.h ('k') | src/dateparser.h » ('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 2009 the V8 project authors. All rights reserved. 1 // Copyright 2009 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 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 if (exec_args_[i] == NULL) { 224 if (exec_args_[i] == NULL) {
225 return; 225 return;
226 } 226 }
227 delete [] exec_args_[i]; 227 delete [] exec_args_[i];
228 exec_args_[i] = 0; 228 exec_args_[i] = 0;
229 } 229 }
230 } 230 }
231 static const unsigned kMaxArgs = 1000; 231 static const unsigned kMaxArgs = 1000;
232 char** arg_array() { return exec_args_; } 232 char** arg_array() { return exec_args_; }
233 char* arg0() { return exec_args_[0]; } 233 char* arg0() { return exec_args_[0]; }
234
234 private: 235 private:
235 char* exec_args_[kMaxArgs + 1]; 236 char* exec_args_[kMaxArgs + 1];
236 }; 237 };
237 238
238 239
239 // Gets the optional timeouts from the arguments to the system() call. 240 // Gets the optional timeouts from the arguments to the system() call.
240 static bool GetTimeouts(const Arguments& args, 241 static bool GetTimeouts(const Arguments& args,
241 int* read_timeout, 242 int* read_timeout,
242 int* total_timeout) { 243 int* total_timeout) {
243 if (args.Length() > 3) { 244 if (args.Length() > 3) {
(...skipping 433 matching lines...) Expand 10 before | Expand all | Expand 10 after
677 os_templ->Set(String::New("chdir"), FunctionTemplate::New(ChangeDirectory)); 678 os_templ->Set(String::New("chdir"), FunctionTemplate::New(ChangeDirectory));
678 os_templ->Set(String::New("setenv"), FunctionTemplate::New(SetEnvironment)); 679 os_templ->Set(String::New("setenv"), FunctionTemplate::New(SetEnvironment));
679 os_templ->Set(String::New("unsetenv"), 680 os_templ->Set(String::New("unsetenv"),
680 FunctionTemplate::New(UnsetEnvironment)); 681 FunctionTemplate::New(UnsetEnvironment));
681 os_templ->Set(String::New("umask"), FunctionTemplate::New(SetUMask)); 682 os_templ->Set(String::New("umask"), FunctionTemplate::New(SetUMask));
682 os_templ->Set(String::New("mkdirp"), FunctionTemplate::New(MakeDirectory)); 683 os_templ->Set(String::New("mkdirp"), FunctionTemplate::New(MakeDirectory));
683 os_templ->Set(String::New("rmdir"), FunctionTemplate::New(RemoveDirectory)); 684 os_templ->Set(String::New("rmdir"), FunctionTemplate::New(RemoveDirectory));
684 } 685 }
685 686
686 } // namespace v8 687 } // namespace v8
OLDNEW
« no previous file with comments | « src/d8.h ('k') | src/dateparser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698