#ifndef POOL_H
#define POOL_H
// joycub V2 - an interpeter for the programming language Joy
// (c) 2004-2006 Sergey Zubkov 
//static char RCSID[] ="$Id: pool.h,v 1.2 2006/02/27 18:44:01 cubbi Exp $";

// used by main()
#include <ext/hash_map>
// used by main()
#include <vector>

#include "globals.h"
#include "object.h"

namespace __gnu_cxx {
template<> struct hash<const std::string>
{
  size_t operator()(const std::string s) const {
		return __stl_hash_string(s.data());
  }
};
}

typedef __gnu_cxx::hash_map<const std::string, JC_object*> Pool;
// Table of pools.
// Each pool is an array of references to objects
extern std::vector<Pool> POOL;

#endif
