/** @file
Parser: program executing for different OS-es decls.
Copyright (c) 2000,2001-2003 ArtLebedev Group (http://www.artlebedev.com)
Author: Alexandr Petrosian <paf@design.ru> (http://paf.design.ru)
*/
#ifndef PA_EXEC_H
#define PA_EXEC_H
static const char* IDENT_EXEC_H="$Date: 2003/03/21 14:49:00 $";
#include "pa_string.h"
#include "pa_hash.h"
#include "pa_array.h"
#include "pa_value.h"
typedef Hash<const StringBody&, const StringBody*> HashStringString;
struct PA_exec_result {
int status; ///< exit code
const String& out;
const String& err;
};
PA_exec_result pa_exec(
bool forced_allow, ///< allow execution regardles of --disable-execs
const String& file_spec,
const HashStringString* env, ///< 0 | Hash of String
const ArrayString& argv, ///< 0 | Array of command line arguments
String& in);
#endif
E-mail: