]> git.netwichtig.de Git - user/henk/code/inspircd.git/blob - include/typedefs.h
Now builds ok on gcc 4.3, not tested fully. Also UGLY, oh we hate you GCC, why couldn...
[user/henk/code/inspircd.git] / include / typedefs.h
1 /*       +------------------------------------+
2  *       | Inspire Internet Relay Chat Daemon |
3  *       +------------------------------------+
4  *
5  *  InspIRCd: (C) 2002-2008 InspIRCd Development Team
6  * See: http://www.inspircd.org/wiki/index.php/Credits
7  *
8  * This program is free but copyrighted software; see
9  *            the file COPYING for details.
10  *
11  * ---------------------------------------------------
12  */
13
14 #ifndef __TYPEDEF_H__
15 #define __TYPEDEF_H__
16
17 #ifndef WIN32
18
19         #ifdef HASHMAP_DEPRECATED
20                 typedef nspace::hash_map<std::string, User*, nspace::insensitive, irc::StrHashComp> user_hash;
21                 typedef nspace::hash_map<std::string, Channel*, nspace::insensitive, irc::StrHashComp> chan_hash;
22         #else
23                 typedef nspace::hash_map<std::string, User*, nspace::hash<std::string>, irc::StrHashComp> user_hash;
24                 typedef nspace::hash_map<std::string, Channel*, nspace::hash<std::string>, irc::StrHashComp> chan_hash;
25         #endif
26 #else
27
28         typedef nspace::hash_map<std::string, User*, nspace::hash_compare<std::string, std::less<std::string> > > user_hash;
29         typedef nspace::hash_map<std::string, Channel*, nspace::hash_compare<std::string, std::less<std::string> > > chan_hash;
30 #endif
31
32 /** Server name cache
33  */
34 typedef std::vector<std::string*> servernamelist;
35
36 /** A cached text file stored line by line.
37  */
38 typedef std::deque<std::string> file_cache;
39
40 #endif
41