]> git.netwichtig.de Git - user/henk/code/inspircd.git/blob - include/typedefs.h
OOPS! We try again, since I'm smoking craq. LF is 0x0a NOT CR.
[user/henk/code/inspircd.git] / include / typedefs.h
1 /*       +------------------------------------+
2  *       | Inspire Internet Relay Chat Daemon |
3  *       +------------------------------------+
4  *
5  *  InspIRCd: (C) 2002-2007 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 #include <string>
18 #include "inspircd_config.h"
19 #include "hash_map.h"
20 #include "users.h"
21 #include "channels.h"
22 #include "hashcomp.h"
23 #include "inspstring.h"
24 #include "ctables.h"
25 #include "modules.h"
26 #include "globals.h"
27
28 #ifndef WIN32
29 /** User hash (POSIX systems with GCC)
30  */
31 typedef nspace::hash_map<std::string, userrec*, nspace::hash<string>, irc::StrHashComp> user_hash;
32 /** Channel hash (POSIX systems with GCC)
33  */
34 typedef nspace::hash_map<std::string, chanrec*, nspace::hash<string>, irc::StrHashComp> chan_hash;
35 #else
36 /** User hash (windows systems with visual studio)
37  */
38 typedef nspace::hash_map<std::string, userrec*, nspace::hash_compare<string, less<string> > > user_hash;
39 /** Channel hash (windows systems with visual studio)
40  */
41 typedef nspace::hash_map<std::string, chanrec*, nspace::hash_compare<string, less<string> > > chan_hash;
42 #endif
43
44 /** Server name cache
45  */
46 typedef std::vector<std::string*> servernamelist;
47
48 /** A cached text file stored line by line.
49  */
50 typedef std::deque<std::string> file_cache;
51
52 #endif
53