Annotation of parser3/src/include/pa_exec.h, revision 1.15.4.1
1.1 paf 1: /** @file
2: Parser: program executing for different OS-es decls.
3:
1.15 paf 4: Copyright (c) 2000,2001-2004 ArtLebedev Group (http://www.artlebedev.com)
1.7 paf 5: Author: Alexandr Petrosian <paf@design.ru> (http://paf.design.ru)
1.1 paf 6: */
7:
8: #ifndef PA_EXEC_H
9: #define PA_EXEC_H
1.9 paf 10:
1.15.4.1! paf 11: static const char * const IDENT_EXEC_H="$Date: 2004/02/11 15:33:14 $";
1.1 paf 12:
13: #include "pa_string.h"
14: #include "pa_hash.h"
15: #include "pa_array.h"
1.13 paf 16: #include "pa_value.h"
17: #include "pa_charset.h"
18:
19: struct PA_exec_result {
20: int status; ///< exit code
1.15.4.1! paf 21: String* out;
! 22: String* err;
1.13 paf 23:
24: PA_exec_result(): status(0) {}
25: };
1.1 paf 26:
1.13 paf 27: PA_exec_result pa_exec(
1.8 paf 28: bool forced_allow, ///< allow execution regardles of --disable-execs
29: const String& file_spec,
1.13 paf 30: const HashStringString* env, ///< 0 | Hash of String
31: const ArrayString& argv, ///< 0 | Array of command line arguments
32: String& in);
1.1 paf 33:
34: #endif
E-mail: