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 --- src/commands.cpp | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'src/commands.cpp') 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)) { -- cgit v1.3.1-10-gc9f91