From ab01aaeeee9aed655df2eec2522072233fe3aa57 Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 15 May 2005 22:58:24 +0000 Subject: Changed to use __single_client_alloc, faster on most systems in a single thread Specified namespace std in *all* files git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1404 e03df62e-2008-0410-955e-edbf42e46eb7 --- include/channels.h | 10 +++++----- include/connection.h | 4 ++-- include/message.h | 2 -- include/modules.h | 2 +- include/users.h | 4 ++-- 5 files changed, 10 insertions(+), 12 deletions(-) (limited to 'include') diff --git a/include/channels.h b/include/channels.h index 7df2d665e..7771c292d 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 b84d39df9..c92934c3f 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/message.h b/include/message.h index f6865453c..d00cae30e 100644 --- a/include/message.h +++ b/include/message.h @@ -31,8 +31,6 @@ int common_channels(userrec *u, userrec *u2); void chop(char* str); void tidystring(char* str); -void safedelete(chanrec *p); -void safedelete(userrec *p); void Blocking(int s); void NonBlocking(int s); int CleanAndResolve (char *resolvedHost, const char *unresolvedHost); diff --git a/include/modules.h b/include/modules.h index da2bfe023..26fea050d 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 2dda51984..7077aaa56 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 -- cgit v1.3.1-10-gc9f91