From 55bd1494b060dba7c266b91824f3fcce64a4d7a8 Mon Sep 17 00:00:00 2001 From: brain Date: Mon, 16 May 2005 11:31:58 +0000 Subject: Removed __single_client_alloc again because gcc devs were smoking crack and removed it git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1406 e03df62e-2008-0410-955e-edbf42e46eb7 --- include/channels.h | 10 +++++----- include/connection.h | 4 ++-- include/modules.h | 2 +- include/users.h | 4 ++-- src/channels.cpp | 16 ++++++++-------- src/commands.cpp | 22 +++++++++++----------- src/connection.cpp | 6 +++--- src/dnsqueue.cpp | 17 ++++++++--------- src/helperfuncs.cpp | 32 ++++++++++++++++---------------- src/inspircd.cpp | 48 ++++++++++++++++++++++++------------------------ src/message.cpp | 4 ++-- src/mode.cpp | 6 +++--- src/modules.cpp | 26 +++++++++++++------------- src/xline.cpp | 16 ++++++++-------- 14 files changed, 106 insertions(+), 107 deletions(-) diff --git a/include/channels.h b/include/channels.h index 7771c292d..7df2d665e 100644 --- a/include/channels.h +++ b/include/channels.h @@ -84,15 +84,15 @@ class ModeParameter : public classbase /** Holds a complete ban list */ -typedef std::vector BanList; +typedef std::vector BanList; /** Holds a complete exempt list */ -typedef std::vector ExemptList; +typedef std::vector ExemptList; /** Holds a complete invite list */ -typedef std::vector InviteList; +typedef std::vector InviteList; /** Holds all relevent information for a channel. * This class represents a channel, and contains its name, modes, time created, topic, topic set time, @@ -112,7 +112,7 @@ class chanrec : public Extensible /** User list (casted to char*'s to stop forward declaration stuff) * (chicken and egg scenario!) */ - std::vector internal_userlist; + std::vector internal_userlist; /** Channel topic. * If this is an empty string, no channel topic is set. @@ -196,7 +196,7 @@ class chanrec : public Extensible * The resulting pointer to the vector should be considered * readonly and only modified via AddUser and DelUser. */ - std::vector *GetUsers(); + std::vector *GetUsers(); /** Creates a channel record and initialises it with default values */ diff --git a/include/connection.h b/include/connection.h index c92934c3f..b84d39df9 100644 --- a/include/connection.h +++ b/include/connection.h @@ -110,7 +110,7 @@ class ircd_connector : public Extensible * So for A->B->C, if this was the record for B it would contain A and C * whilever both servers are connected to B. */ - std::vector routes; + std::vector routes; /** Create an outbound connection to a listening socket @@ -273,7 +273,7 @@ class connection : public Extensible /** With a serverrec, this is a list of all established server connections. * With a userrec this is unused. */ - std::vector connectors; + std::vector connectors; /** Default constructor */ diff --git a/include/modules.h b/include/modules.h index 26fea050d..da2bfe023 100644 --- a/include/modules.h +++ b/include/modules.h @@ -69,7 +69,7 @@ typedef file_cache string_list; /** Holds a list of users in a channel */ -typedef std::deque chanuserlist; +typedef std::deque chanuserlist; // This #define allows us to call a method in all diff --git a/include/users.h b/include/users.h index 7077aaa56..2dda51984 100644 --- a/include/users.h +++ b/include/users.h @@ -91,13 +91,13 @@ class ConnectClass : public classbase /** Holds a complete list of all channels to which a user has been invited and has not yet joined. */ -typedef std::vector InvitedList; +typedef std::vector InvitedList; /** Holds a complete list of all allow and deny tags from the configuration file (connection classes) */ -typedef std::vector ClassVector; +typedef std::vector ClassVector; /** Holds all information about a user * This class stores all information about a user connected to the irc server. Everything about a diff --git a/src/channels.cpp b/src/channels.cpp index 4bbb69b9b..7d58bffd3 100644 --- a/src/channels.cpp +++ b/src/channels.cpp @@ -56,8 +56,8 @@ using namespace std; #endif extern int MODCOUNT; -extern std::vector modules; -extern std::vector factory; +extern std::vector modules; +extern std::vector factory; extern int LogLevel; extern char ServerName[MAXBUF]; @@ -83,7 +83,7 @@ extern int NetBufferSize; int MaxWhoResults; extern time_t nb_start; -extern std::vector module_names; +extern std::vector module_names; extern int boundPortCount; extern int portCount; @@ -102,7 +102,7 @@ extern time_t TIME; using namespace std; -std::vector custom_mode_params; +std::vector custom_mode_params; chanrec::chanrec() { @@ -158,7 +158,7 @@ void chanrec::SetCustomModeParam(char mode,char* parameter,bool mode_on) { if (custom_mode_params.size()) { - for (vector::iterator i = custom_mode_params.begin(); i < custom_mode_params.end(); i++) + for (vector::iterator i = custom_mode_params.begin(); i < custom_mode_params.end(); i++) { if ((i->mode == mode) && (!strcasecmp(this->name,i->channel))) { @@ -182,7 +182,7 @@ std::string chanrec::GetModeParameter(char mode) { if (custom_mode_params.size()) { - for (vector::iterator i = custom_mode_params.begin(); i < custom_mode_params.end(); i++) + for (vector::iterator i = custom_mode_params.begin(); i < custom_mode_params.end(); i++) { if ((i->mode == mode) && (!strcasecmp(this->name,i->channel))) { @@ -206,7 +206,7 @@ void chanrec::AddUser(char* castuser) void chanrec::DelUser(char* castuser) { - for (std::vector::iterator a = internal_userlist.begin(); a < internal_userlist.end(); a++) + for (std::vector::iterator a = internal_userlist.begin(); a < internal_userlist.end(); a++) { if (*a == castuser) { @@ -218,7 +218,7 @@ void chanrec::DelUser(char* castuser) log(DEBUG,"BUG BUG BUG! Attempt to remove an uncasted user from the internal list of %s!",name); } -std::vector *chanrec::GetUsers() +std::vector *chanrec::GetUsers() { return &internal_userlist; } diff --git a/src/commands.cpp b/src/commands.cpp index e3ff3f74c..5ffd870da 100644 --- a/src/commands.cpp +++ b/src/commands.cpp @@ -69,8 +69,8 @@ extern int kq; #endif extern int MODCOUNT; -extern std::vector modules; -extern std::vector factory; +extern std::vector modules; +extern std::vector factory; extern int LogLevel; extern char ServerName[MAXBUF]; @@ -100,7 +100,7 @@ extern bool nofork; extern time_t TIME; -extern std::vector module_names; +extern std::vector module_names; extern char MyExecutable[1024]; extern int boundPortCount; @@ -124,11 +124,11 @@ const long duration_d = duration_h * 24; const long duration_w = duration_d * 7; const long duration_y = duration_w * 52; -typedef nspace::hash_map, irc::StrHashComp, __single_client_alloc> user_hash; -typedef nspace::hash_map, irc::StrHashComp, __single_client_alloc> chan_hash; -typedef nspace::hash_map, irc::InAddr_HashComp, __single_client_alloc> address_cache; -typedef nspace::hash_map, irc::StrHashComp, __single_client_alloc> whowas_hash; -typedef std::deque command_table; +typedef nspace::hash_map, irc::StrHashComp> user_hash; +typedef nspace::hash_map, irc::StrHashComp> chan_hash; +typedef nspace::hash_map, irc::InAddr_HashComp> address_cache; +typedef nspace::hash_map, irc::StrHashComp> whowas_hash; +typedef std::deque command_table; extern user_hash clientlist; @@ -139,7 +139,7 @@ extern file_cache MOTD; extern file_cache RULES; extern address_cache IP; -extern std::vector all_opers; +extern std::vector all_opers; // This table references users by file descriptor. // its an array to make it VERY fast, as all lookups are referenced @@ -1033,7 +1033,7 @@ void handle_who(char **parameters, int pcnt, userrec *user) { if ((!strcmp(parameters[0],"0")) || (!strcmp(parameters[0],"*")) && (!strcmp(parameters[1],"o"))) { - for (std::vector::iterator i = all_opers.begin(); i != all_opers.end(); i++) + for (std::vector::iterator i = all_opers.begin(); i != all_opers.end(); i++) { // If i were a rich man.. I wouldn't need to me making these bugfixes.. // But i'm a poor bastard with nothing better to do. @@ -2575,7 +2575,7 @@ void handle_amp(char token,char* params,serverrec* source,serverrec* reply, char { if (me[i] != NULL) { - for (vector::iterator j = me[i]->connectors.begin(); j != me[i]->connectors.end(); j++) + for (vector::iterator j = me[i]->connectors.begin(); j != me[i]->connectors.end(); j++) { if (!strcasecmp(j->GetServerName().c_str(),params)) { diff --git a/src/connection.cpp b/src/connection.cpp index b627c2494..e08fcb4e1 100644 --- a/src/connection.cpp +++ b/src/connection.cpp @@ -33,10 +33,10 @@ using namespace std; #include "helperfuncs.h" -extern std::vector modules; -extern std::vector factory; +extern std::vector modules; +extern std::vector factory; -std::deque xsums; +std::deque xsums; extern int MODCOUNT; diff --git a/src/dnsqueue.cpp b/src/dnsqueue.cpp index 90365b5dc..116f09010 100644 --- a/src/dnsqueue.cpp +++ b/src/dnsqueue.cpp @@ -65,18 +65,17 @@ using namespace std; extern int MaxWhoResults; -extern std::vector modules; -extern std::vector module_names; -extern std::vector factory; -extern std::vector fd_reap; +extern std::vector modules; +extern std::vector module_names; +extern std::vector factory; extern int MODCOUNT; -typedef nspace::hash_map, irc::StrHashComp, __single_client_alloc> user_hash; -typedef nspace::hash_map, irc::StrHashComp, __single_client_alloc> chan_hash; -typedef nspace::hash_map, irc::InAddr_HashComp, __single_client_alloc> address_cache; -typedef nspace::hash_map, irc::StrHashComp, __single_client_alloc> whowas_hash; -typedef std::deque command_table; +typedef nspace::hash_map, irc::StrHashComp> user_hash; +typedef nspace::hash_map, irc::StrHashComp> chan_hash; +typedef nspace::hash_map, irc::InAddr_HashComp> address_cache; +typedef nspace::hash_map, irc::StrHashComp> whowas_hash; +typedef std::deque command_table; extern user_hash clientlist; extern chan_hash chanlist; diff --git a/src/helperfuncs.cpp b/src/helperfuncs.cpp index f418320e6..4c7a13a9f 100644 --- a/src/helperfuncs.cpp +++ b/src/helperfuncs.cpp @@ -51,7 +51,7 @@ using namespace std; #include "hashcomp.h" extern int MODCOUNT; -extern std::vector modules; +extern std::vector modules; extern time_t TIME; extern bool nofork; @@ -74,13 +74,13 @@ extern userrec* fd_ref_table[65536]; extern int statsAccept, statsRefused, statsUnknown, statsCollisions, statsDns, statsDnsGood, statsDnsBad, statsConnects, statsSent, statsRecv; static char already_sent[65536]; -extern std::vector all_opers; +extern std::vector all_opers; extern ClassVector Classes; -typedef nspace::hash_map, irc::StrHashComp, __single_client_alloc> user_hash; -typedef nspace::hash_map, irc::StrHashComp, __single_client_alloc> chan_hash; -typedef std::deque command_table; +typedef nspace::hash_map, irc::StrHashComp> user_hash; +typedef nspace::hash_map, irc::StrHashComp> chan_hash; +typedef std::deque command_table; extern user_hash clientlist; extern chan_hash chanlist; @@ -283,7 +283,7 @@ void WriteChannel(chanrec* Ptr, userrec* user, char* text, ...) vsnprintf(textbuffer, MAXBUF, text, argsPtr); va_end(argsPtr); - std::vector *ulist = Ptr->GetUsers(); + std::vector *ulist = Ptr->GetUsers(); for (int j = 0; j < ulist->size(); j++) { char* o = (*ulist)[j]; @@ -310,7 +310,7 @@ void WriteChannelLocal(chanrec* Ptr, userrec* user, char* text, ...) vsnprintf(textbuffer, MAXBUF, text, argsPtr); va_end(argsPtr); - std::vector *ulist = Ptr->GetUsers(); + std::vector *ulist = Ptr->GetUsers(); for (int j = 0; j < ulist->size(); j++) { char* o = (*ulist)[j]; @@ -343,7 +343,7 @@ void WriteChannelWithServ(char* ServName, chanrec* Ptr, char* text, ...) va_end(argsPtr); - std::vector *ulist = Ptr->GetUsers(); + std::vector *ulist = Ptr->GetUsers(); for (int j = 0; j < ulist->size(); j++) { char* o = (*ulist)[j]; @@ -369,7 +369,7 @@ void ChanExceptSender(chanrec* Ptr, userrec* user, char* text, ...) vsnprintf(textbuffer, MAXBUF, text, argsPtr); va_end(argsPtr); - std::vector *ulist = Ptr->GetUsers(); + std::vector *ulist = Ptr->GetUsers(); for (int j = 0; j < ulist->size(); j++) { char* o = (*ulist)[j]; @@ -428,7 +428,7 @@ void WriteCommon(userrec *u, char* text, ...) { if (u->chans[i].channel) { - std::vector *ulist = u->chans[i].channel->GetUsers(); + std::vector *ulist = u->chans[i].channel->GetUsers(); for (int j = 0; j < ulist->size(); j++) { char* o = (*ulist)[j]; @@ -478,7 +478,7 @@ void WriteCommonExcept(userrec *u, char* text, ...) { if (u->chans[i].channel) { - std::vector *ulist = u->chans[i].channel->GetUsers(); + std::vector *ulist = u->chans[i].channel->GetUsers(); for (int j = 0; j < ulist->size(); j++) { char* o = (*ulist)[j]; @@ -510,7 +510,7 @@ void WriteOpers(char* text, ...) vsnprintf(textbuffer, MAXBUF, text, argsPtr); va_end(argsPtr); - for (std::vector::iterator i = all_opers.begin(); i != all_opers.end(); i++) + for (std::vector::iterator i = all_opers.begin(); i != all_opers.end(); i++) { userrec* a = *i; if ((a) && (a->fd != FD_MAGIC_NUMBER)) @@ -538,7 +538,7 @@ void NoticeAllOpers(userrec *source, bool local_only, char* text, ...) vsnprintf(textbuffer, MAXBUF, text, argsPtr); va_end(argsPtr); - for (std::vector::iterator i = all_opers.begin(); i != all_opers.end(); i++) + for (std::vector::iterator i = all_opers.begin(); i != all_opers.end(); i++) { userrec* a = *i; if ((a) && (a->fd != FD_MAGIC_NUMBER)) @@ -564,7 +564,7 @@ bool ChanAnyOnThisServer(chanrec *c,char* servername) { log(DEBUG,"ChanAnyOnThisServer"); - std::vector *ulist = c->GetUsers(); + std::vector *ulist = c->GetUsers(); for (int j = 0; j < ulist->size(); j++) { char* o = (*ulist)[j]; @@ -585,7 +585,7 @@ bool CommonOnThisServer(userrec* u,const char* servername) { if (u->chans[i].channel) { - std::vector *ulist = u->chans[i].channel->GetUsers(); + std::vector *ulist = u->chans[i].channel->GetUsers(); for (int j = 0; j < ulist->size(); j++) { char* o = (*ulist)[j]; @@ -1102,7 +1102,7 @@ void userlist(userrec *user,chanrec *c) snprintf(list,MAXBUF,"353 %s = %s :", user->nick, c->name); - std::vector *ulist = c->GetUsers(); + std::vector *ulist = c->GetUsers(); for (int i = 0; i < ulist->size(); i++) { char* o = (*ulist)[i]; diff --git a/src/inspircd.cpp b/src/inspircd.cpp index e077c939a..4464be755 100644 --- a/src/inspircd.cpp +++ b/src/inspircd.cpp @@ -92,9 +92,9 @@ bool AllowHalfop = true; bool AllowProtect = true; bool AllowFounder = true; -extern std::vector modules; -std::vector module_names; -extern std::vector factory; +extern std::vector modules; +std::vector module_names; +extern std::vector factory; extern int MODCOUNT; int openSockfd[MAXSOCKS]; @@ -107,11 +107,11 @@ time_t TIME = time(NULL), OLDTIME = time(NULL); int kq, lkq, skq; #endif -typedef nspace::hash_map, irc::StrHashComp, __single_client_alloc> user_hash; -typedef nspace::hash_map, irc::StrHashComp, __single_client_alloc> chan_hash; -typedef nspace::hash_map, irc::InAddr_HashComp, __single_client_alloc> address_cache; -typedef nspace::hash_map, irc::StrHashComp, __single_client_alloc> whowas_hash; -typedef std::deque command_table; +typedef nspace::hash_map, irc::StrHashComp> user_hash; +typedef nspace::hash_map, irc::StrHashComp> chan_hash; +typedef nspace::hash_map, irc::InAddr_HashComp> address_cache; +typedef nspace::hash_map, irc::StrHashComp> whowas_hash; +typedef std::deque command_table; // This table references users by file descriptor. // its an array to make it VERY fast, as all lookups are referenced @@ -153,7 +153,7 @@ void AddWhoWas(userrec* u); std::vector auth_cookies; std::stringstream config_f(stringstream::in | stringstream::out); -std::vector all_opers; +std::vector all_opers; char lowermap[255]; @@ -165,7 +165,7 @@ void AddOper(userrec* user) void DeleteOper(userrec* user) { - for (std::vector::iterator a = all_opers.begin(); a < all_opers.end(); a++) + for (std::vector::iterator a = all_opers.begin(); a < all_opers.end(); a++) { if (*a == user) { @@ -385,10 +385,10 @@ void ReadConfig(bool bail, userrec* user) { log(DEFAULT,"Adding and removing modules due to rehash..."); - std::vector old_module_names, new_module_names, added_modules, removed_modules; + std::vector old_module_names, new_module_names, added_modules, removed_modules; // store the old module names - for (std::vector::iterator t = module_names.begin(); t != module_names.end(); t++) + for (std::vector::iterator t = module_names.begin(); t != module_names.end(); t++) { old_module_names.push_back(*t); } @@ -402,10 +402,10 @@ void ReadConfig(bool bail, userrec* user) // now create a list of new modules that are due to be loaded // and a seperate list of modules which are due to be unloaded - for (std::vector::iterator _new = new_module_names.begin(); _new != new_module_names.end(); _new++) + for (std::vector::iterator _new = new_module_names.begin(); _new != new_module_names.end(); _new++) { bool added = true; - for (std::vector::iterator old = old_module_names.begin(); old != old_module_names.end(); old++) + for (std::vector::iterator old = old_module_names.begin(); old != old_module_names.end(); old++) { if (*old == *_new) added = false; @@ -413,10 +413,10 @@ void ReadConfig(bool bail, userrec* user) if (added) added_modules.push_back(*_new); } - for (std::vector::iterator oldm = old_module_names.begin(); oldm != old_module_names.end(); oldm++) + for (std::vector::iterator oldm = old_module_names.begin(); oldm != old_module_names.end(); oldm++) { bool removed = true; - for (std::vector::iterator newm = new_module_names.begin(); newm != new_module_names.end(); newm++) + for (std::vector::iterator newm = new_module_names.begin(); newm != new_module_names.end(); newm++) { if (*newm == *oldm) removed = false; @@ -428,7 +428,7 @@ void ReadConfig(bool bail, userrec* user) // to be removed. int rem = 0, add = 0; if (!removed_modules.empty()) - for (std::vector::iterator removing = removed_modules.begin(); removing != removed_modules.end(); removing++) + for (std::vector::iterator removing = removed_modules.begin(); removing != removed_modules.end(); removing++) { if (UnloadModule(removing->c_str())) { @@ -442,7 +442,7 @@ void ReadConfig(bool bail, userrec* user) } } if (!added_modules.empty()) - for (std::vector::iterator adding = added_modules.begin(); adding != added_modules.end(); adding++) + for (std::vector::iterator adding = added_modules.begin(); adding != added_modules.end(); adding++) { if (LoadModule(adding->c_str())) { @@ -1668,7 +1668,7 @@ void DoSplitEveryone() { if (me[i] != NULL) { - for (vector::iterator j = me[i]->connectors.begin(); j != me[i]->connectors.end(); j++) + for (vector::iterator j = me[i]->connectors.begin(); j != me[i]->connectors.end(); j++) { if (strcasecmp(j->GetServerName().c_str(),ServerName)) { @@ -2267,7 +2267,7 @@ void DoSplit(const char* params) { if (me[i] != NULL) { - for (vector::iterator j = me[i]->connectors.begin(); j != me[i]->connectors.end(); j++) + for (vector::iterator j = me[i]->connectors.begin(); j != me[i]->connectors.end(); j++) { if (!strcasecmp(j->GetServerName().c_str(),params)) { @@ -2315,7 +2315,7 @@ void RemoveServer(const char* name) { if (me[i] != NULL) { - for (vector::iterator j = me[i]->connectors.begin(); j != me[i]->connectors.end(); j++) + for (vector::iterator j = me[i]->connectors.begin(); j != me[i]->connectors.end(); j++) { if (!strcasecmp(j->GetServerName().c_str(),name)) { @@ -2342,7 +2342,7 @@ char* ModuleError() void erase_factory(int j) { int v = 0; - for (std::vector::iterator t = factory.begin(); t != factory.end(); t++) + for (std::vector::iterator t = factory.begin(); t != factory.end(); t++) { if (v == j) { @@ -2357,7 +2357,7 @@ void erase_factory(int j) void erase_module(int j) { int v1 = 0; - for (std::vector::iterator m = modules.begin(); m!= modules.end(); m++) + for (std::vector::iterator m = modules.begin(); m!= modules.end(); m++) { if (v1 == j) { @@ -2369,7 +2369,7 @@ void erase_module(int j) v1++; } int v2 = 0; - for (std::vector::iterator v = module_names.begin(); v != module_names.end(); v++) + for (std::vector::iterator v = module_names.begin(); v != module_names.end(); v++) { if (v2 == j) { diff --git a/src/message.cpp b/src/message.cpp index 4fc32f79b..871f8b125 100644 --- a/src/message.cpp +++ b/src/message.cpp @@ -49,8 +49,8 @@ using namespace std; #include "helperfuncs.h" extern int MODCOUNT; -extern std::vector modules; -extern std::vector factory; +extern std::vector modules; +extern std::vector factory; extern char ServerName[MAXBUF]; diff --git a/src/mode.cpp b/src/mode.cpp index 285ec3e89..794e2fefd 100644 --- a/src/mode.cpp +++ b/src/mode.cpp @@ -48,9 +48,9 @@ using namespace std; #include "helperfuncs.h" extern int MODCOUNT; -extern std::vector modules; -extern std::vector factory; -extern std::vector module_names; +extern std::vector modules; +extern std::vector factory; +extern std::vector module_names; extern int LogLevel; diff --git a/src/modules.cpp b/src/modules.cpp index 414cce617..ffc6e0c8d 100644 --- a/src/modules.cpp +++ b/src/modules.cpp @@ -59,8 +59,8 @@ extern int kq; #endif extern int MODCOUNT; -extern std::vector modules; -extern std::vector factory; +extern std::vector modules; +extern std::vector factory; extern time_t TIME; @@ -88,7 +88,7 @@ extern int NetBufferSize; extern int MaxWhoResults; extern time_t nb_start; -extern std::vector module_names; +extern std::vector module_names; extern int boundPortCount; extern int portCount; @@ -105,11 +105,11 @@ extern FILE *log_file; extern userrec* fd_ref_table[65536]; -typedef nspace::hash_map, irc::StrHashComp, __single_client_alloc> user_hash; -typedef nspace::hash_map, irc::StrHashComp, __single_client_alloc> chan_hash; -typedef nspace::hash_map, irc::InAddr_HashComp, __single_client_alloc> address_cache; -typedef nspace::hash_map, irc::StrHashComp, __single_client_alloc> whowas_hash; -typedef std::deque command_table; +typedef nspace::hash_map, irc::StrHashComp> user_hash; +typedef nspace::hash_map, irc::StrHashComp> chan_hash; +typedef nspace::hash_map, irc::InAddr_HashComp> address_cache; +typedef nspace::hash_map, irc::StrHashComp> whowas_hash; +typedef std::deque command_table; extern user_hash clientlist; @@ -135,7 +135,7 @@ public: ExtMode(char mc, int ty, bool oper, int p_on, int p_off) : modechar(mc), type(ty), needsoper(oper), params_when_on(p_on), params_when_off(p_off) { }; }; -typedef std::vector ExtModeList; +typedef std::vector ExtModeList; typedef ExtModeList::iterator ExtModeListIter; @@ -391,8 +391,8 @@ chanuserlist Server::GetUsers(chanrec* chan) { chanuserlist userl; userl.clear(); - std::vector *list = chan->GetUsers(); - for (std::vector::iterator i = list->begin(); i != list->end(); i++) + std::vector *list = chan->GetUsers(); + for (std::vector::iterator i = list->begin(); i != list->end(); i++) { char* o = *i; userl.push_back((userrec*)o); @@ -989,8 +989,8 @@ int FileReader::FileSize() } -std::vector modules(255); -std::vector factory(255); +std::vector modules(255); +std::vector factory(255); int MODCOUNT = -1; diff --git a/src/xline.cpp b/src/xline.cpp index 5b681444a..febe6f425 100644 --- a/src/xline.cpp +++ b/src/xline.cpp @@ -50,8 +50,8 @@ using namespace std; #include "hashcomp.h" extern int MODCOUNT; -extern std::vector modules; -extern std::vector factory; +extern std::vector modules; +extern std::vector factory; extern int LogLevel; extern char ServerName[MAXBUF]; @@ -76,7 +76,7 @@ extern time_t startup_time; extern int NetBufferSize; extern time_t nb_start; -extern std::vector module_names; +extern std::vector module_names; extern int boundPortCount; extern int portCount; @@ -91,11 +91,11 @@ extern serverrec* me[32]; extern FILE *log_file; -typedef nspace::hash_map, irc::StrHashComp, __single_client_alloc> user_hash; -typedef nspace::hash_map, irc::StrHashComp, __single_client_alloc> chan_hash; -typedef nspace::hash_map, irc::InAddr_HashComp, __single_client_alloc> address_cache; -typedef nspace::hash_map, irc::StrHashComp, __single_client_alloc> whowas_hash; -typedef std::deque command_table; +typedef nspace::hash_map, irc::StrHashComp> user_hash; +typedef nspace::hash_map, irc::StrHashComp> chan_hash; +typedef nspace::hash_map, irc::InAddr_HashComp> address_cache; +typedef nspace::hash_map, irc::StrHashComp> whowas_hash; +typedef std::deque command_table; extern user_hash clientlist; -- cgit v1.2.3