| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef TOOLS_GN_FUNCTIONS_H_ | 5 #ifndef TOOLS_GN_FUNCTIONS_H_ |
| 6 #define TOOLS_GN_FUNCTIONS_H_ | 6 #define TOOLS_GN_FUNCTIONS_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 351 | 351 |
| 352 extern const char kToolchain[]; | 352 extern const char kToolchain[]; |
| 353 extern const char kToolchain_HelpShort[]; | 353 extern const char kToolchain_HelpShort[]; |
| 354 extern const char kToolchain_Help[]; | 354 extern const char kToolchain_Help[]; |
| 355 Value RunToolchain(Scope* scope, | 355 Value RunToolchain(Scope* scope, |
| 356 const FunctionCallNode* function, | 356 const FunctionCallNode* function, |
| 357 const std::vector<Value>& args, | 357 const std::vector<Value>& args, |
| 358 BlockNode* block, | 358 BlockNode* block, |
| 359 Err* err); | 359 Err* err); |
| 360 | 360 |
| 361 extern const char kToolchainArgs[]; | |
| 362 extern const char kToolchainArgs_HelpShort[]; | |
| 363 extern const char kToolchainArgs_Help[]; | |
| 364 Value RunToolchainArgs(Scope* scope, | |
| 365 const FunctionCallNode* function, | |
| 366 const std::vector<Value>& args, | |
| 367 BlockNode* block, | |
| 368 Err* err); | |
| 369 | |
| 370 extern const char kWriteFile[]; | 361 extern const char kWriteFile[]; |
| 371 extern const char kWriteFile_HelpShort[]; | 362 extern const char kWriteFile_HelpShort[]; |
| 372 extern const char kWriteFile_Help[]; | 363 extern const char kWriteFile_Help[]; |
| 373 Value RunWriteFile(Scope* scope, | 364 Value RunWriteFile(Scope* scope, |
| 374 const FunctionCallNode* function, | 365 const FunctionCallNode* function, |
| 375 const std::vector<Value>& args, | 366 const std::vector<Value>& args, |
| 376 Err* err); | 367 Err* err); |
| 377 | 368 |
| 378 // ----------------------------------------------------------------------------- | 369 // ----------------------------------------------------------------------------- |
| 379 | 370 |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 495 Scope* scope_; | 486 Scope* scope_; |
| 496 const FunctionCallNode* function_; | 487 const FunctionCallNode* function_; |
| 497 const char* type_description_; | 488 const char* type_description_; |
| 498 | 489 |
| 499 // Set to true when the key is added to the scope so we don't try to | 490 // Set to true when the key is added to the scope so we don't try to |
| 500 // delete nonexistant keys which will cause assertions. | 491 // delete nonexistant keys which will cause assertions. |
| 501 bool key_added_; | 492 bool key_added_; |
| 502 }; | 493 }; |
| 503 | 494 |
| 504 #endif // TOOLS_GN_FUNCTIONS_H_ | 495 #endif // TOOLS_GN_FUNCTIONS_H_ |
| OLD | NEW |