Sophie

Sophie

distrib > Mandriva > 2009.1 > x86_64 > by-pkgid > 98bad4b4171170b863bb86fca4f8b939 > files > 4

lib64see-devel-3.0.1376-6mdv2009.1.x86_64.rpm

/* Copyright (c) 2003, David Leonard. All rights reserved. */
/* $Id: context.h 808 2005-11-25 12:44:25Z d $ */

#ifndef _SEE_h_context_
#define _SEE_h_context_

struct SEE_string;
struct SEE_object;
struct SEE_value;
struct SEE_scope;
struct SEE_interpreter;

/*
 * Execution context. 
 * (This structure is only of interest to debugger writers.)
 * -- 10
 */
struct SEE_context {
	struct SEE_interpreter *interpreter;
	struct SEE_object *activation;
	struct SEE_object *variable;
	int varattr;			/* default attrs for new vars */
	struct SEE_object *thisobj;
	struct SEE_scope *scope;
};

void SEE_context_eval(struct SEE_context *context, struct SEE_string *expr,
	struct SEE_value *res);

#endif /* _SEE_h_context_ */