File:  [parser3project] / parser3 / src / include / pa_exec.h
Revision 1.11.2.6.2.5: download - view: text, annotated - select for diffs - revision graph
Mon Mar 24 13:16:12 2003 UTC (23 years, 3 months ago) by paf
empty run passed OK

/** @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/24 13:16:12 $";

#include "pa_string.h"
#include "pa_hash.h"
#include "pa_array.h"
#include "pa_value.h"

typedef Hash<const StringBody, StringBody> HashStringString;

struct PA_exec_result {
	int status; ///< exit code
	String out;
	String err;

	PA_exec_result(): status(0) {}
};

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: