--- parser3/src/include/pa_exec.h 2003/03/05 11:08:26 1.11.2.6 +++ parser3/src/include/pa_exec.h 2003/06/27 08:36:59 1.11.2.6.2.6 @@ -8,24 +8,25 @@ #ifndef PA_EXEC_H #define PA_EXEC_H -static const char* IDENT_EXEC_H="$Date: 2003/03/05 11:08:26 $"; +static const char* IDENT_EXEC_H="$Date: 2003/06/27 08:36:59 $"; #include "pa_string.h" #include "pa_hash.h" #include "pa_array.h" #include "pa_value.h" - -typedef Hash HashStringString; +#include "pa_charset.h" struct PA_exec_result { int status; ///< exit code - StringPtr out; - StringPtr err; + String out; + String err; + + PA_exec_result(): status(0) {} }; -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);