Annotation of parser3/src/include/pa_exec.h, revision 1.22

1.1       paf         1: /** @file
                      2:        Parser: program executing for different OS-es decls.
                      3: 
1.21      moko        4:        Copyright (c) 2000-2015 Art. Lebedev Studio (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.22    ! moko       11: #define IDENT_PA_EXEC_H "$Id: pa_exec.h,v 1.21 2015/10/26 01:21:55 moko Exp $"
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.19      misha      21:        File_read_result out;
1.16      paf        22:        String& err;
1.13      paf        23: 
1.19      misha      24:        PA_exec_result(): status(0), out(), err(*new String) {}
1.13      paf        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
1.22    ! moko       32:                        String::C in);
1.1       paf        33: 
                     34: #endif

E-mail: