--- parser3/src/include/pa_exec.h 2003/02/06 14:24:50 1.11.2.5 +++ parser3/src/include/pa_exec.h 2003/11/20 16:34:24 1.14 @@ -8,25 +8,26 @@ #ifndef PA_EXEC_H #define PA_EXEC_H -static const char* IDENT_EXEC_H="$Date: 2003/02/06 14:24:50 $"; +static const char * const IDENT_EXEC_H="$Date: 2003/11/20 16:34:24 $"; #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 HashStringString& env, ///< 0 | Hash of String + const String& file_spec, + const HashStringString* env, ///< 0 | Hash of String const ArrayString& argv, ///< 0 | Array of command line arguments String& in);