2007-07-16 17:30:04 +00:00
|
|
|
/* +------------------------------------+
|
|
|
|
* | Inspire Internet Relay Chat Daemon |
|
|
|
|
* +------------------------------------+
|
|
|
|
*
|
2009-01-02 18:16:05 +00:00
|
|
|
* InspIRCd: (C) 2002-2009 InspIRCd Development Team
|
2009-03-15 12:42:35 +00:00
|
|
|
* See: http://wiki.inspircd.org/Credits
|
2007-07-16 17:30:04 +00:00
|
|
|
*
|
|
|
|
* This program is free but copyrighted software; see
|
|
|
|
* the file COPYING for details.
|
|
|
|
*
|
|
|
|
* ---------------------------------------------------
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __TYPEDEF_H__
|
|
|
|
#define __TYPEDEF_H__
|
|
|
|
|
|
|
|
#ifndef WIN32
|
2008-06-12 19:29:42 +00:00
|
|
|
|
|
|
|
#ifdef HASHMAP_DEPRECATED
|
|
|
|
typedef nspace::hash_map<std::string, User*, nspace::insensitive, irc::StrHashComp> user_hash;
|
|
|
|
typedef nspace::hash_map<std::string, Channel*, nspace::insensitive, irc::StrHashComp> chan_hash;
|
|
|
|
#else
|
|
|
|
typedef nspace::hash_map<std::string, User*, nspace::hash<std::string>, irc::StrHashComp> user_hash;
|
|
|
|
typedef nspace::hash_map<std::string, Channel*, nspace::hash<std::string>, irc::StrHashComp> chan_hash;
|
|
|
|
#endif
|
2007-07-16 17:30:04 +00:00
|
|
|
#else
|
2008-06-12 19:29:42 +00:00
|
|
|
|
|
|
|
typedef nspace::hash_map<std::string, User*, nspace::hash_compare<std::string, std::less<std::string> > > user_hash;
|
|
|
|
typedef nspace::hash_map<std::string, Channel*, nspace::hash_compare<std::string, std::less<std::string> > > chan_hash;
|
2007-07-16 17:30:04 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
/** Server name cache
|
|
|
|
*/
|
|
|
|
typedef std::vector<std::string*> servernamelist;
|
|
|
|
|
|
|
|
/** A cached text file stored line by line.
|
|
|
|
*/
|
|
|
|
typedef std::deque<std::string> file_cache;
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|