--- parser3/src/include/pa_exec.h 2003/03/05 11:08:26 1.11.2.6 +++ parser3/src/include/pa_exec.h 2026/09/27 17:13:40 1.28 @@ -1,33 +1,35 @@ /** @file Parser: program executing for different OS-es decls. - Copyright (c) 2000,2001-2003 ArtLebedev Group (http://www.artlebedev.com) - Author: Alexandr Petrosian (http://paf.design.ru) + Copyright (c) 2000-2026 Art. Lebedev Studio (https://www.artlebedev.com) + Authors: Konstantin Morshnev , Alexandr Petrosian */ #ifndef PA_EXEC_H #define PA_EXEC_H -static const char* IDENT_EXEC_H="$Date: 2003/03/05 11:08:26 $"; +#define IDENT_PA_EXEC_H "$Id: pa_exec.h,v 1.28 2026/09/27 17:13:40 moko Exp $" #include "pa_string.h" #include "pa_hash.h" #include "pa_array.h" #include "pa_value.h" - -typedef Hash HashStringString; +#include "pa_charset.h" +#include "pa_file.h" struct PA_exec_result { int status; ///< exit code - StringPtr out; - StringPtr err; + File_read_result out; + String& err; + + PA_exec_result(): status(0), out(), err(*new String) {} }; -PA_exec_result pa_exec(Pool& pool, +PA_exec_result pa_exec( bool forced_allow, ///< allow execution regardles of --disable-execs - StringPtr file_spec, + const String& file_spec, const HashStringString* env, ///< 0 | Hash of String const ArrayString& argv, ///< 0 | Array of command line arguments - String& in); + String::C in); #endif