/* -*- c -*- */
/* $Id: filter_eval.h,v 1.2 2002/12/13 19:32:52 cher Exp $ */

#ifndef __FILTER_EVAL_H__
#define __FILTER_EVAL_H__

/* Copyright (C) 2002 Alexander Chernov <cher@ispras.ru> */

/*
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 */

#include "prepare.h"
#include "runlog.h"
#include "filter_tree.h"

struct filter_env
{
  struct filter_tree_mem *mem;
  int maxlang;
  struct section_language_data **langs;
  int maxprob;
  struct section_problem_data **probs;
  int rtotal;
  struct run_header rhead;
  struct run_entry *rentries;
  int rid;
  struct run_entry *cur;
  time_t cur_time;
};

int filter_tree_bool_eval(struct filter_env *env, struct filter_tree *t);

#endif /* __FILTER_EVAL_H__ */
