File:  [parser3project] / parser3 / src / include / pa_exec.h
Revision 1.11.2.6.2.3: download - view: text, annotated - select for diffs - revision graph
Fri Mar 21 14:49:00 2003 UTC (23 years, 3 months ago) by paf
pa_charsets.C compiled

/** @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: