|
|
| version 1.5, 2001/12/15 21:28:19 | version 1.14, 2003/11/20 16:34:24 |
|---|---|
| Line 1 | Line 1 |
| /** @file | /** @file |
| Parser: program executing for different OS-es decls. | Parser: program executing for different OS-es decls. |
| Copyright (c) 2000,2001 ArtLebedev Group (http://www.artlebedev.com) | Copyright (c) 2000,2001-2003 ArtLebedev Group (http://www.artlebedev.com) |
| Author: Alexander Petrosyan <paf@design.ru> (http://paf.design.ru) | Author: Alexandr Petrosian <paf@design.ru> (http://paf.design.ru) |
| $Id$ | |
| */ | */ |
| #ifndef PA_EXEC_H | #ifndef PA_EXEC_H |
| #define PA_EXEC_H | #define PA_EXEC_H |
| static const char * const IDENT_EXEC_H="$Date$"; | |
| #include "pa_string.h" | #include "pa_string.h" |
| #include "pa_hash.h" | #include "pa_hash.h" |
| #include "pa_array.h" | #include "pa_array.h" |
| #include "pa_value.h" | |
| #include "pa_charset.h" | |
| /// @return exit code | struct PA_exec_result { |
| int pa_exec(const String& file_spec, | int status; ///< exit code |
| const Hash *env, ///< 0 | Hash of String | String out; |
| const Array *argv, ///< 0 | Array of command line arguments | String err; |
| const String& in, String& out, String& err); | |
| PA_exec_result(): status(0) {} | |
| }; | |
| PA_exec_result pa_exec( | |
| bool forced_allow, ///< allow execution regardles of --disable-execs | |
| const String& file_spec, | |
| const HashStringString* env, ///< 0 | Hash of String | |
| const ArrayString& argv, ///< 0 | Array of command line arguments | |
| String& in); | |
| #endif | #endif |